From 1fd6b4cff535d0476079c91cdbec87604aafecc8 Mon Sep 17 00:00:00 2001 From: talamortis Date: Sat, 27 Oct 2018 21:03:34 +0100 Subject: [PATCH] [Core / Spell ] Warlock Life Tap Fixed an issue where warlock could kill itself using max rank till fizzled and then low rank. --- src/server/scripts/Spells/spell_warlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp index ba6f0fbb4..f1f64ca20 100644 --- a/src/server/scripts/Spells/spell_warlock.cpp +++ b/src/server/scripts/Spells/spell_warlock.cpp @@ -971,7 +971,7 @@ class spell_warl_life_tap : public SpellScriptLoader SpellCastResult CheckCast() { - if ((int32(GetCaster()->GetHealth()) > int32(GetSpellInfo()->Effects[EFFECT_0].CalcValue() + (6.3875 * GetSpellInfo()->BaseLevel)))) + if ((int32(GetCaster()->GetHealth()) > int32(GetSpellInfo()->Effects[EFFECT_0].CalcValue() + (6.3875 * GetSpellInfo()->BaseLevel) + (GetCaster()->GetStat(STAT_SPIRIT) * 1.5f) + 1.0f ))) return SPELL_CAST_OK; return SPELL_FAILED_FIZZLE; }