[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:
parent
e715dd3f61
commit
4f2c6fcc31
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue