mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
*Fix the bug that swiftmend heals too much.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user