[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.
This commit is contained in:
d3tr0l
2018-09-20 19:18:27 +01:00
committed by talamortis
parent e715dd3f61
commit 4f2c6fcc31

View File

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