AzerothCore 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
544 : _owner(owner), _counter(13)
545 {
546 }
uint32 _counter
Definition: boss_the_lich_king.cpp:563
Creature * _owner
Definition: boss_the_lich_king.cpp:562

Member Function Documentation

◆ Execute()

bool TriggerWickedSpirit::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

549 {
551
552 if (--_counter)
553 {
555 return false;
556 }
557
558 return true;
559 }
@ SPELL_TRIGGER_VILE_SPIRIT_HEROIC
Definition: boss_the_lich_king.cpp:181
@ SPELLVALUE_MAX_TARGETS
Definition: SpellDefines.h:117
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.h:103
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:159
EventProcessor m_Events
Definition: Object.h:642
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:1224

References _counter, _owner, EventProcessor::AddEvent(), EventProcessor::CalculateTime(), Unit::CastCustomSpell(), WorldObject::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().