AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
VileSpiritActivateEvent Class Reference
Inheritance diagram for VileSpiritActivateEvent:
BasicEvent

Public Member Functions

 VileSpiritActivateEvent (Creature *owner)
 
bool Execute (uint64, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()=default
 
virtual ~BasicEvent ()=default
 
virtual bool Execute (uint64, uint32)
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 
void ScheduleAbort ()
 

Private Attributes

Creature_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ VileSpiritActivateEvent()

VileSpiritActivateEvent::VileSpiritActivateEvent ( Creature owner)
inlineexplicit
526: _owner(owner) {}
Creature * _owner
Definition: boss_the_lich_king.cpp:537

Member Function Documentation

◆ Execute()

bool VileSpiritActivateEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

529 {
533 return true;
534 }
@ SPELL_VILE_SPIRIT_MOVE_SEARCH
Definition: boss_the_lich_king.cpp:155
@ SPELL_VILE_SPIRIT_DAMAGE_SEARCH
Definition: boss_the_lich_king.cpp:156
@ REACT_AGGRESSIVE
Definition: Unit.h:550
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:94
Definition: Unit.h:630
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167

References _owner, Unit::CastSpell(), REACT_AGGRESSIVE, Creature::SetReactState(), SPELL_VILE_SPIRIT_DAMAGE_SEARCH, and SPELL_VILE_SPIRIT_MOVE_SEARCH.

Referenced by spell_the_lich_king_trigger_vile_spirit::ActivateSpirit().

Member Data Documentation

◆ _owner

Creature* VileSpiritActivateEvent::_owner
private

Referenced by Execute().