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

Public Member Functions

 at_karazhan_atiesh_aran ()
 
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_karazhan_atiesh_aran()

at_karazhan_atiesh_aran::at_karazhan_atiesh_aran ( )
inline
479: AreaTriggerScript("at_karazhan_atiesh_aran") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

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

Reimplemented from AreaTriggerScript.

482 {
483 if (InstanceScript* instance = player->GetInstanceScript())
484 {
485 if (player->HasAura(SPELL_ATIESH_VISUAL))
486 {
487 if (Creature* aran = instance->GetCreature(DATA_ARAN))
488 {
489 aran->AI()->SetGUID(player->GetGUID(), ACTION_ATIESH_REACT);
490 }
491 }
492 }
493
494 return true;
495 }
@ ACTION_ATIESH_REACT
Definition: boss_shade_of_aran.cpp:102
@ SPELL_ATIESH_VISUAL
Definition: boss_shade_of_aran.cpp:76
@ DATA_ARAN
Definition: karazhan.h:36
Definition: Creature.h:46
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669
Definition: InstanceScript.h:142

References ACTION_ATIESH_REACT, DATA_ARAN, Object::GetGUID(), WorldObject::GetInstanceScript(), Unit::HasAura(), and SPELL_ATIESH_VISUAL.