From 4f2c6fcc319eab282afda8f659b510a71933cda4 Mon Sep 17 00:00:00 2001 From: d3tr0l Date: Thu, 20 Sep 2018 19:18:27 +0100 Subject: [PATCH] [Core/Script] Fixed the amount of mana gained from Life tap Patch 3.3.3: Life Tap: This spell no longer scales with spirit, and instead scales with spell power. --- src/server/scripts/Spells/spell_warlock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp index 5dbce0a99..ba6f0fbb4 100644 --- a/src/server/scripts/Spells/spell_warlock.cpp +++ b/src/server/scripts/Spells/spell_warlock.cpp @@ -944,7 +944,8 @@ class spell_warl_life_tap : public SpellScriptLoader if (Unit* target = GetHitUnit()) { int32 damage = GetEffectValue() + 1.0f + (caster->GetStat(STAT_SPIRIT) * 1.5f); - int32 mana = int32(damage + (caster->GetInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+SPELL_SCHOOL_SHADOW) * 0.5f)); + int32 damage2Mana = GetEffectValue(); + int32 mana = int32(damage2Mana + (caster->GetInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+SPELL_SCHOOL_SHADOW) * 0.5f)); // Shouldn't Appear in Combat Log target->ModifyHealth(-damage);