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

Public Member Functions

 at_battleguard_sartura ()
 
bool OnTrigger (Player *player, const AreaTrigger *) 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_battleguard_sartura()

at_battleguard_sartura::at_battleguard_sartura ( )
inline
548: AreaTriggerScript("at_battleguard_sartura") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

bool at_battleguard_sartura::OnTrigger ( Player player,
const AreaTrigger  
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

551 {
552 if (InstanceScript* instance = player->GetInstanceScript())
553 {
554 if (Creature* sartura = instance->GetCreature(DATA_SARTURA))
555 {
556 if (sartura->IsAlive())
557 {
558 sartura->SetInCombatWith(player);
559 }
560 }
561 }
562 return true;
563 }
@ DATA_SARTURA
Definition: temple_of_ahnqiraj.h:30
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Definition: InstanceScript.h:142

References DATA_SARTURA, and WorldObject::GetInstanceScript().