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

Public Member Functions

 at_lady_deathwhisper_entrance ()
 
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
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ at_lady_deathwhisper_entrance()

at_lady_deathwhisper_entrance::at_lady_deathwhisper_entrance ( )
inline
1175: AreaTriggerScript("at_lady_deathwhisper_entrance") { }
Definition: ScriptMgr.h:800

Member Function Documentation

◆ OnTrigger()

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

Reimplemented from AreaTriggerScript.

1178 {
1179 if (InstanceScript* instance = player->GetInstanceScript())
1180 if (instance->GetBossState(DATA_LADY_DEATHWHISPER) != DONE)
1181 if (!player->IsGameMaster())
1182 if (Creature* ladyDeathwhisper = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_LADY_DEATHWHISPER)))
1183 ladyDeathwhisper->AI()->DoAction(ACTION_START_INTRO);
1184 return true;
1185 }
@ DONE
Definition: InstanceScript.h:59
@ ACTION_START_INTRO
Definition: boss_lady_deathwhisper.cpp:190
@ DATA_LADY_DEATHWHISPER
Definition: icecrown_citadel.h:92
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:215
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1194
bool IsGameMaster() const
Definition: Player.h:1136
Definition: InstanceScript.h:140

References ACTION_START_INTRO, DATA_LADY_DEATHWHISPER, DONE, ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), and Player::IsGameMaster().