AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
at_icc_start_frostwing_gauntlet Class Reference
Inheritance diagram for at_icc_start_frostwing_gauntlet:
AreaTriggerScript ScriptObject

Public Member Functions

 at_icc_start_frostwing_gauntlet ()
 
bool OnTrigger (Player *player, AreaTrigger const *) override
 
- Public Member Functions inherited from AreaTriggerScript
bool IsDatabaseBound () const override
 
virtual bool OnTrigger (Player *, AreaTrigger const *)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Additional Inherited Members

- Protected Member Functions inherited from AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ at_icc_start_frostwing_gauntlet()

at_icc_start_frostwing_gauntlet::at_icc_start_frostwing_gauntlet ( )
inline
2253: AreaTriggerScript("at_icc_start_frostwing_gauntlet") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

bool at_icc_start_frostwing_gauntlet::OnTrigger ( Player player,
AreaTrigger const *   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

2256 {
2257 if (InstanceScript* instance = player->GetInstanceScript())
2258 if (instance->GetBossState(DATA_SISTER_SVALNA) != DONE)
2259 if (Creature* crok = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_CROK_SCOURGEBANE)))
2260 {
2261 if (!crok->IsAlive())
2262 {
2265 Cell::VisitGridObjects(crok, worker, 333.0f);
2266 return true;
2267 }
2268 else
2269 crok->AI()->DoAction(ACTION_START_GAUNTLET);
2270 }
2271 return true;
2272 }
@ ACTION_START_GAUNTLET
Definition: icecrown_citadel.cpp:266
@ DATA_SISTER_SVALNA
Definition: icecrown_citadel.h:95
@ DATA_CROK_SCOURGEBANE
Definition: icecrown_citadel.h:121
@ DONE
Definition: InstanceScript.h:60
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
Definition: Creature.h:43
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
static void VisitGridObjects(WorldObject const *obj, T &visitor, float radius, bool dont_load=true)
Definition: CellImpl.h:178
Definition: GridNotifiers.h:489
Definition: InstanceScript.h:142
Definition: icecrown_citadel.cpp:319

References ACTION_START_GAUNTLET, DATA_CROK_SCOURGEBANE, DATA_SISTER_SVALNA, DONE, ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), and Cell::VisitGridObjects().