![]() |
TrinityCore
|
Inheritance diagram for spell_item_mana_drain:Private Member Functions | |
| PrepareAuraScript (spell_item_mana_drain) | |
| bool | Validate (SpellInfo const *) override |
| void | HandleProc (AuraEffect const *aurEff, ProcEventInfo &eventInfo) |
| void | Register () override |
Definition at line 3767 of file spell_item.cpp.
|
inlineprivate |
Definition at line 3780 of file spell_item.cpp.
References WorldObject::CastSpell(), ProcEventInfo::GetActionTarget(), ProcEventInfo::GetActor(), Unit::IsAlive(), AuraScript::PreventDefaultAction(), SPELL_MANA_DRAIN_ENERGIZE, and SPELL_MANA_DRAIN_LEECH.
Referenced by Register().
|
private |
|
inlineoverrideprivatevirtual |
Implements _SpellScript.
Definition at line 3794 of file spell_item.cpp.
References AuraEffectProcFn, EFFECT_0, HandleProc(), AuraScript::OnEffectProc, and SPELL_AURA_PROC_TRIGGER_SPELL.
|
inlineoverrideprivatevirtual |
Reimplemented from _SpellScript.
Definition at line 3771 of file spell_item.cpp.
References SPELL_MANA_DRAIN_ENERGIZE, SPELL_MANA_DRAIN_LEECH, and _SpellScript::ValidateSpellInfo().