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

Public Member Functions

 DealDebrisDamage (Creature &creature, ObjectGuid targetGUID)
 
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
 
ObjectGuid _targetGUID
 

Detailed Description

Constructor & Destructor Documentation

◆ DealDebrisDamage()

DealDebrisDamage::DealDebrisDamage ( Creature creature,
ObjectGuid  targetGUID 
)
inline
84: _owner(creature), _targetGUID(targetGUID) { }
ObjectGuid _targetGUID
Definition: boss_magtheridon.cpp:95
Creature & _owner
Definition: boss_magtheridon.cpp:94

Member Function Documentation

◆ Execute()

bool DealDebrisDamage::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

87 {
89 target->CastSpell(target, SPELL_DEBRIS_DAMAGE, true, nullptr, nullptr, _owner.GetGUID());
90 return true;
91 }
@ SPELL_DEBRIS_DAMAGE
Definition: boss_magtheridon.cpp:55
Unit * GetUnit(WorldObject const &, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:204
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
Definition: Unit.h:1290

References _owner, _targetGUID, Object::GetGUID(), ObjectAccessor::GetUnit(), and SPELL_DEBRIS_DAMAGE.

Member Data Documentation

◆ _owner

Creature& DealDebrisDamage::_owner
private

Referenced by Execute().

◆ _targetGUID

ObjectGuid DealDebrisDamage::_targetGUID
private

Referenced by Execute().