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

Public Member Functions

 BoomEvent (Creature *me)
 
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_me
 

Detailed Description

Constructor & Destructor Documentation

◆ BoomEvent()

BoomEvent::BoomEvent ( Creature me)
inline
699 : _me(me)
700 {
701 }
Creature * _me
Definition: boss_xt002.cpp:716

Member Function Documentation

◆ Execute()

bool BoomEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

704 {
705 // This hack is here because we suspect our implementation of spell effect execution on targets
706 // is done in the wrong order. We suspect that EFFECT_0 needs to be applied on all targets,
707 // then EFFECT_1, etc - instead of applying each effect on target1, then target2, etc.
708 // The above situation causes the visual for this spell to be bugged, so we remove the instakill
709 // effect and implement a script hack for that.
710
711 _me->CastSpell(_me, SPELL_BOOM, false);
712 return true;
713 }
@ SPELL_BOOM
Definition: boss_xt002.cpp:44
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

References _me, Unit::CastSpell(), and SPELL_BOOM.

Member Data Documentation

◆ _me

Creature* BoomEvent::_me
private

Referenced by Execute().