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

Public Member Functions

 at_q24545_frostmourne_cavern ()
 
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_q24545_frostmourne_cavern()

at_q24545_frostmourne_cavern::at_q24545_frostmourne_cavern ( )
inline
1340: AreaTriggerScript("at_q24545_frostmourne_cavern") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

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

Reimplemented from AreaTriggerScript.

1343 {
1344 if (player->GetPhaseMask() & 2)
1345 if (Creature* c = player->FindNearestCreature(NPC_SAC_LICH_KING, 60.0f, true))
1346 c->AI()->SetGUID(player->GetGUID());
1347
1348 return true;
1349 }
@ NPC_SAC_LICH_KING
Definition: zone_dragonblight.cpp:985
Definition: Creature.h:46
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
uint32 GetPhaseMask() const
Definition: Object.h:446
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446

References WorldObject::FindNearestCreature(), Object::GetGUID(), WorldObject::GetPhaseMask(), and NPC_SAC_LICH_KING.