diff options
| author | megamage <none@none> | 2008-12-08 13:11:45 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-12-08 13:11:45 -0600 |
| commit | 5321be4c0aa48daaf84ffd602d47e650e53403ef (patch) | |
| tree | 8783d617c1e0bc4b94dda883f9a4370aa4689960 /src | |
| parent | 34a13dce4204617a1631d4304d40599013301869 (diff) | |
*Fix the bug that swiftmend heals too much.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/SpellEffects.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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); |
