AzerothCore 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
195: _owner(owner), _sindragosaGUID(sindragosaGUID) { }
ObjectGuid _sindragosaGUID
Definition: boss_sindragosa.cpp:206
Creature * _owner
Definition: boss_sindragosa.cpp:205

Member Function Documentation

◆ Execute()

bool FrostBombExplosion::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

198 {
199 _owner->CastSpell((Unit*)nullptr, SPELL_FROST_BOMB, false, nullptr, nullptr, _sindragosaGUID);
201 return true;
202 }
@ SPELL_FROST_BOMB_VISUAL
Definition: boss_sindragosa.cpp:74
@ SPELL_FROST_BOMB
Definition: boss_sindragosa.cpp:76
Definition: Unit.h:630
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:1167
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4909

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().