[Core / Spell ] Warlock Life Tap

Fixed an issue where warlock could kill itself using max rank till fizzled and then low rank.
This commit is contained in:
talamortis
2018-10-27 21:03:34 +01:00
parent 879553ddf8
commit 1fd6b4cff5

View File

@@ -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;
}