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

Public Member Functions

 at_baltharus_plateau ()
 
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_baltharus_plateau()

at_baltharus_plateau::at_baltharus_plateau ( )
inline
464: AreaTriggerScript("at_baltharus_plateau") { }
Definition: ScriptMgr.h:800

Member Function Documentation

◆ OnTrigger()

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

Reimplemented from AreaTriggerScript.

467 {
468 if (InstanceScript* instance = player->GetInstanceScript())
469 {
470 if (Creature* xerestrasza = ObjectAccessor::GetCreature(*player, instance->GetGuidData(NPC_XERESTRASZA)))
471 xerestrasza->AI()->DoAction(ACTION_INTRO_BALTHARUS);
472
473 if (Creature* baltharus = ObjectAccessor::GetCreature(*player, instance->GetGuidData(NPC_BALTHARUS_THE_WARBORN)))
474 baltharus->AI()->DoAction(ACTION_INTRO_BALTHARUS);
475 }
476
477 return true;
478 }
@ ACTION_INTRO_BALTHARUS
Definition: boss_baltharus_the_warborn.cpp:80
@ NPC_BALTHARUS_THE_WARBORN
Definition: ruby_sanctum.h:58
@ NPC_XERESTRASZA
Definition: ruby_sanctum.h:60
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:215
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1194
Definition: InstanceScript.h:140

References ACTION_INTRO_BALTHARUS, ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), NPC_BALTHARUS_THE_WARBORN, and NPC_XERESTRASZA.