![]() |
TrinityCore
|
Inheritance diagram for spell_warl_drain_soul:Private Member Functions | |
| PrepareAuraScript (spell_warl_drain_soul) | |
| bool | Validate (SpellInfo const *) override |
| bool | CheckProc (ProcEventInfo &eventInfo) |
| void | HandleProc (AuraEffect const *aurEff, ProcEventInfo &eventInfo) |
| void | HandleTick (AuraEffect const *aurEff) |
| void | Register () override |
Definition at line 438 of file spell_warlock.cpp.
|
inlineprivate |
Definition at line 454 of file spell_warlock.cpp.
References ProcEventInfo::GetActionTarget(), ProcEventInfo::GetActor(), Unit::GetAuraApplicationOfRankedSpell(), Object::GetGUID(), and SPELL_WARLOCK_DRAIN_SOUL_R1.
Referenced by Register().
|
inlineprivate |
Definition at line 464 of file spell_warlock.cpp.
References CastSpellExtraArgs::AddSpellBP0(), CalculatePct(), SpellEffectInfo::CalcValue(), WorldObject::CastSpell(), EFFECT_2, ProcEventInfo::GetActor(), Unit::GetAuraOfRankedSpell(), SpellInfo::GetEffect(), Object::GetGUID(), Unit::GetMaxPower(), Aura::GetSpellInfo(), POWER_MANA, AuraScript::PreventDefaultAction(), SPELL_WARLOCK_IMPROVED_DRAIN_SOUL_PROC, and SPELL_WARLOCK_IMPROVED_DRAIN_SOUL_R1.
Referenced by Register().
|
inlineprivate |
Definition at line 480 of file spell_warlock.cpp.
References WorldObject::CastSpell(), EFFECT_0, Unit::GetAuraEffect(), AuraScript::GetCaster(), AuraScript::GetTarget(), Object::GetTypeId(), Player::isHonorOrXPTarget(), roll_chance_i(), SPELL_WARLOCK_CREATE_SOULSHARD, SPELL_WARLOCK_GLYPH_OF_DRAIN_SOUL_AURA, SPELL_WARLOCK_GLYPH_OF_DRAIN_SOUL_PROC, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by Register().
|
private |
|
inlineoverrideprivatevirtual |
Implements _SpellScript.
Definition at line 497 of file spell_warlock.cpp.
References AuraCheckProcFn, AuraEffectPeriodicFn, AuraEffectProcFn, CheckProc(), AuraScript::DoCheckProc, EFFECT_1, EFFECT_2, HandleProc(), HandleTick(), AuraScript::OnEffectPeriodic, AuraScript::OnEffectProc, SPELL_AURA_PERIODIC_DAMAGE, and SPELL_AURA_PROC_TRIGGER_SPELL.
|
inlineoverrideprivatevirtual |
Reimplemented from _SpellScript.
Definition at line 442 of file spell_warlock.cpp.
References SPELL_WARLOCK_CREATE_SOULSHARD, SPELL_WARLOCK_GLYPH_OF_DRAIN_SOUL_AURA, SPELL_WARLOCK_GLYPH_OF_DRAIN_SOUL_PROC, SPELL_WARLOCK_IMPROVED_DRAIN_SOUL_PROC, SPELL_WARLOCK_IMPROVED_DRAIN_SOUL_R1, and _SpellScript::ValidateSpellInfo().