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

Public Member Functions

 at_hor_uther_quel_delar_start ()
 
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_hor_uther_quel_delar_start::at_hor_uther_quel_delar_start ( )
inline
2706 : AreaTriggerScript("at_hor_uther_quel_delar_start") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

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

Reimplemented from AreaTriggerScript.

2709  {
2710  if (player->IsGameMaster())
2711  return true;
2712 
2713  InstanceScript* _instance = player->GetInstanceScript();
2714 
2715  if (_instance->GetData(DATA_QUEL_DELAR_EVENT) == IN_PROGRESS)
2716  if (Creature* uther = ObjectAccessor::GetCreature(*player, _instance->GetGuidData(DATA_UTHER_QUEL_DELAR)))
2717  uther->AI()->DoAction(ACTION_UTHER_START_SCREAM);
2718 
2719  return true;
2720  }
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
Definition: halls_of_reflection.h:54
Definition: Creature.h:467
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: InstanceScript.h:59
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: halls_of_reflection.h:52
Definition: InstanceScript.h:141
Definition: halls_of_reflection.cpp:2357

+ Here is the call graph for this function:


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