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

Public Member Functions

 FrostBombExplosion (Creature *owner, ObjectGuid sindragosaGUID)
 
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 _sindragosaGUID
 

Detailed Description

Constructor & Destructor Documentation

◆ FrostBombExplosion()

FrostBombExplosion::FrostBombExplosion ( Creature owner,
ObjectGuid  sindragosaGUID 
)
inline
191: _owner(owner), _sindragosaGUID(sindragosaGUID) { }
ObjectGuid _sindragosaGUID
Definition: boss_sindragosa.cpp:202
Creature * _owner
Definition: boss_sindragosa.cpp:201

Member Function Documentation

◆ Execute()

bool FrostBombExplosion::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

194 {
195 _owner->CastSpell((Unit*)nullptr, SPELL_FROST_BOMB, false, nullptr, nullptr, _sindragosaGUID);
197 return true;
198 }
@ SPELL_FROST_BOMB_VISUAL
Definition: boss_sindragosa.cpp:69
@ SPELL_FROST_BOMB
Definition: boss_sindragosa.cpp:71
Definition: Unit.h:1290
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:1428
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:5624

References _owner, _sindragosaGUID, Unit::CastSpell(), Unit::RemoveAurasDueToSpell(), SPELL_FROST_BOMB, and SPELL_FROST_BOMB_VISUAL.

Member Data Documentation

◆ _owner

Creature* FrostBombExplosion::_owner
private

Referenced by Execute().

◆ _sindragosaGUID

ObjectGuid FrostBombExplosion::_sindragosaGUID
private

Referenced by Execute().