[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:
parent
879553ddf8
commit
1fd6b4cff5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue