diff options
| author | Lucas Nascimento <keader.android@gmail.com> | 2021-10-09 10:16:55 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-09 10:16:55 -0300 |
| commit | 708db54673d381dcf03500d3cd4b544a62682b68 (patch) | |
| tree | 5091878f842404a5bee408290bf3b7ac42faf10c /src | |
| parent | 83ae8fc5197f90ba97de2e961f7c98e3c567837b (diff) | |
Scripts/Spells: Fixed Life Tap (#27003)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Spells/spell_warlock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp index c34d52109c9..a55e4ecb42a 100644 --- a/src/server/scripts/Spells/spell_warlock.cpp +++ b/src/server/scripts/Spells/spell_warlock.cpp @@ -721,10 +721,10 @@ class spell_warl_life_tap : public SpellScript return ValidateSpellInfo({ SPELL_WARLOCK_LIFE_TAP_ENERGIZE, SPELL_WARLOCK_LIFE_TAP_ENERGIZE_2 }); } - void HandleDummy(SpellEffIndex /*effIndex*/) + void HandleDummy(SpellEffIndex effIndex) { Unit* caster = GetCaster(); - int32 base = GetEffectValue(); + int32 base = GetEffectInfo(effIndex).CalcValue(); float penalty = caster->CalculateSpellpowerCoefficientLevelPenalty(GetSpellInfo()); float fmana = (float)base + caster->GetUInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS + SPELL_SCHOOL_SHADOW) * 0.5f * penalty; |
