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

Public Member Functions

 TriggerWickedSpirit (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
 
uint32 _counter
 

Detailed Description

Constructor & Destructor Documentation

◆ TriggerWickedSpirit()

TriggerWickedSpirit::TriggerWickedSpirit ( Creature owner)
inlineexplicit
538 : _owner(owner), _counter(13)
539 {
540 }
uint32 _counter
Definition: boss_the_lich_king.cpp:557
Creature * _owner
Definition: boss_the_lich_king.cpp:556

Member Function Documentation

◆ Execute()

bool TriggerWickedSpirit::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

543 {
545
546 if (--_counter)
547 {
549 return false;
550 }
551
552 return true;
553 }
@ SPELLVALUE_MAX_TARGETS
Definition: SpellDefines.h:118
@ SPELL_TRIGGER_VILE_SPIRIT_HEROIC
Definition: boss_the_lich_king.cpp:177
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.cpp:114
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:136
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1225
EventProcessor m_Events
Definition: Unit.h:2092

References _counter, _owner, EventProcessor::AddEvent(), EventProcessor::CalculateTime(), Unit::CastCustomSpell(), Unit::m_Events, SPELL_TRIGGER_VILE_SPIRIT_HEROIC, and SPELLVALUE_MAX_TARGETS.

Member Data Documentation

◆ _counter

uint32 TriggerWickedSpirit::_counter
private

Referenced by Execute().

◆ _owner

Creature* TriggerWickedSpirit::_owner
private

Referenced by Execute().