From 5321be4c0aa48daaf84ffd602d47e650e53403ef Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 8 Dec 2008 13:11:45 -0600 Subject: *Fix the bug that swiftmend heals too much. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 88d5dbcc982..0cf8a059d74 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2351,11 +2351,14 @@ void Spell::EffectHeal( uint32 /*i*/ ) idx++; } - int32 tickheal = caster->SpellHealingBonus(targetAura->GetSpellProto(), targetAura->GetModifier()->m_amount, DOT, unitTarget); + //int32 tickheal = caster->SpellHealingBonus(targetAura->GetSpellProto(), targetAura->GetModifier()->m_amount, DOT, unitTarget); + int32 tickheal = targetAura->GetSpellProto()->EffectBasePoints[idx] + 1; int32 tickcount = GetSpellDuration(targetAura->GetSpellProto()) / targetAura->GetSpellProto()->EffectAmplitude[idx]; + //TODO: do not remove all auras unitTarget->RemoveAurasDueToSpell(targetAura->GetId()); addhealth += tickheal * tickcount; + addhealth = caster->SpellHealingBonus(m_spellInfo, addhealth,HEAL, unitTarget); } else addhealth = caster->SpellHealingBonus(m_spellInfo, addhealth,HEAL, unitTarget); -- cgit v1.2.3