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
480: 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.

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

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