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

Public Member Functions

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

Member Function Documentation

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

Reimplemented from AreaTriggerScript.

159  {
160  // Only trigger once
161  if (InstanceScript* instance = player->GetInstanceScript())
162  {
163  if (Creature* xerestrasza = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_XERESTRASZA)))
164  xerestrasza->AI()->DoAction(ACTION_INTRO_BALTHARUS);
165 
166  if (Creature* baltharus = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_BALTHARUS_THE_WARBORN)))
167  baltharus->AI()->DoAction(ACTION_INTRO_BALTHARUS);
168  }
169 
170  return true;
171  }
Definition: ruby_sanctum.h:38
Definition: Creature.h:467
Definition: ruby_sanctum.h:31
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: InstanceScript.h:141
Definition: ruby_sanctum.h:56

+ Here is the call graph for this function:


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