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

Public Member Functions

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

Additional Inherited Members

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

Constructor & Destructor Documentation

BoomEvent::BoomEvent ( Creature me)
inline
636  : _me(me)
637  {
638  }
Creature * _me
Definition: boss_xt002.cpp:653

Member Function Documentation

bool BoomEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

641  {
642  // This hack is here because we suspect our implementation of spell effect execution on targets
643  // is done in the wrong order. We suspect that EFFECT_0 needs to be applied on all targets,
644  // then EFFECT_1, etc - instead of applying each effect on target1, then target2, etc.
645  // The above situation causes the visual for this spell to be bugged, so we remove the instakill
646  // effect and implement a script hack for that.
647 
648  _me->CastSpell(_me, SPELL_BOOM, false);
649  return true;
650  }
Creature * _me
Definition: boss_xt002.cpp:653
Definition: boss_xt002.cpp:87
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869

+ Here is the call graph for this function:

Member Data Documentation

Creature* BoomEvent::_me
private

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