![]() |
TrinityCore
|
Inheritance diagram for spell_dk_corpse_explosion:Private Member Functions | |
| PrepareSpellScript (spell_dk_corpse_explosion) | |
| bool | Validate (SpellInfo const *spellInfo) override |
| void | CheckTarget (WorldObject *&target) |
| void | CheckTargets (std::list< WorldObject * > &targets) |
| void | HandleDamage (SpellEffIndex effIndex, Unit *target) |
| void | HandleCorpseExplosion (SpellEffIndex effIndex) |
| void | Register () override |
Private Attributes | |
| WorldObject * | _target = nullptr |
Definition at line 544 of file spell_dk.cpp.
|
inlineprivate |
Definition at line 559 of file spell_dk.cpp.
References _target, and SpellScript::GetCaster().
Referenced by Register().
|
inlineprivate |
Definition at line 567 of file spell_dk.cpp.
References _target, SpellScript::FinishCast(), SpellScript::GetCaster(), Trinity::Containers::SelectRandomContainerElement(), and SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW.
Referenced by Register().
|
inlineprivate |
Definition at line 601 of file spell_dk.cpp.
References WorldObject::CastSpell(), SpellScript::GetCaster(), SpellScript::GetHitUnit(), HandleDamage(), SPELL_DK_CORPSE_EXPLOSION_TRIGGERED, SPELL_DK_CORPSE_EXPLOSION_VISUAL, and SPELL_DK_GHOUL_EXPLODE.
Referenced by Register().
|
inlineprivate |
Definition at line 586 of file spell_dk.cpp.
References CastSpellExtraArgs::AddSpellBP0(), WorldObject::CastSpell(), EFFECT_0, EFFECT_1, SpellScript::GetCaster(), SpellScript::GetEffectInfo(), SpellScript::GetEffectValue(), SpellScript::GetSpell(), and TRIGGERED_FULL_MASK.
Referenced by HandleCorpseExplosion().
|
private |
|
inlineoverrideprivatevirtual |
Implements _SpellScript.
Definition at line 621 of file spell_dk.cpp.
References CheckTarget(), CheckTargets(), EFFECT_0, EFFECT_1, HandleCorpseExplosion(), SpellScript::OnEffectHitTarget, SpellScript::OnObjectAreaTargetSelect, SpellScript::OnObjectTargetSelect, SPELL_EFFECT_DUMMY, SpellEffectFn, SpellObjectAreaTargetSelectFn, SpellObjectTargetSelectFn, TARGET_UNIT_DEST_AREA_ENTRY, and TARGET_UNIT_TARGET_ANY.
|
inlineoverrideprivatevirtual |
Reimplemented from _SpellScript.
Definition at line 548 of file spell_dk.cpp.
References EFFECT_1, SpellInfo::GetEffect(), SPELL_DK_CORPSE_EXPLOSION_TRIGGERED, SPELL_DK_CORPSE_EXPLOSION_VISUAL, SPELL_DK_GHOUL_EXPLODE, and _SpellScript::ValidateSpellInfo().
|
private |
Definition at line 629 of file spell_dk.cpp.
Referenced by CheckTarget(), and CheckTargets().