TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
at_lady_deathwhisper_entrance Class Reference

Public Member Functions

 at_lady_deathwhisper_entrance ()
 
bool OnTrigger (Player *player, AreaTriggerEntry const *, bool) override
 
- Public Member Functions inherited from ScriptObject
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 ()
 

Constructor & Destructor Documentation

at_lady_deathwhisper_entrance::at_lady_deathwhisper_entrance ( )
inline
1041 : AreaTriggerScript("at_lady_deathwhisper_entrance") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

bool at_lady_deathwhisper_entrance::OnTrigger ( Player player,
AreaTriggerEntry const ,
bool   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

1044  {
1045  if (InstanceScript* instance = player->GetInstanceScript())
1046  if (instance->GetBossState(DATA_LADY_DEATHWHISPER) != DONE)
1047  if (Creature* ladyDeathwhisper = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_LADY_DEATHWHISPER)))
1048  ladyDeathwhisper->AI()->DoAction(ACTION_START_INTRO);
1049 
1050  return true;
1051  }
Definition: inflate.h:49
Definition: Creature.h:467
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: icecrown_citadel.h:76
Definition: boss_lady_deathwhisper.cpp:179
Definition: InstanceScript.h:141

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: