AzerothCore 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
 
uint16 GetTotalAvailableHooks ()
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ at_baltharus_plateau()

at_baltharus_plateau::at_baltharus_plateau ( )
inline
462: AreaTriggerScript("at_baltharus_plateau") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

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

Reimplemented from AreaTriggerScript.

465 {
466 if (InstanceScript* instance = player->GetInstanceScript())
467 {
468 if (Creature* xerestrasza = ObjectAccessor::GetCreature(*player, instance->GetGuidData(NPC_XERESTRASZA)))
469 xerestrasza->AI()->DoAction(ACTION_INTRO_BALTHARUS);
470
471 if (Creature* baltharus = ObjectAccessor::GetCreature(*player, instance->GetGuidData(NPC_BALTHARUS_THE_WARBORN)))
472 baltharus->AI()->DoAction(ACTION_INTRO_BALTHARUS);
473 }
474
475 return true;
476 }
@ ACTION_INTRO_BALTHARUS
Definition: boss_baltharus_the_warborn.cpp:84
@ NPC_BALTHARUS_THE_WARBORN
Definition: ruby_sanctum.h:53
@ NPC_XERESTRASZA
Definition: ruby_sanctum.h:55
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
Definition: Creature.h:43
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
Definition: InstanceScript.h:142

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