TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TriggerWickedSpirit Class Reference

Public Member Functions

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

Private Attributes

Creature_owner
 
uint32 _counter
 

Additional Inherited Members

- Public Attributes inherited from BasicEvent
bool to_Abort
 
uint64 m_addTime
 
uint64 m_execTime
 

Constructor & Destructor Documentation

TriggerWickedSpirit::TriggerWickedSpirit ( Creature owner)
inlineexplicit
456  : _owner(owner), _counter(13)
457  {
458  }
uint32 _counter
Definition: boss_the_lich_king.cpp:475
Creature * _owner
Definition: boss_the_lich_king.cpp:474

Member Function Documentation

bool TriggerWickedSpirit::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

461  {
463 
464  if (--_counter)
465  {
467  return false;
468  }
469 
470  return true;
471  }
EventProcessor m_Events
Definition: Unit.h:1948
Definition: Unit.h:163
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.cpp:88
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: boss_the_lich_king.cpp:141
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:95
uint32 _counter
Definition: boss_the_lich_king.cpp:475
Creature * _owner
Definition: boss_the_lich_king.cpp:474
void CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:920

+ Here is the call graph for this function:

Member Data Documentation

uint32 TriggerWickedSpirit::_counter
private
Creature* TriggerWickedSpirit::_owner
private

The documentation for this class was generated from the following file: