Core/Spell: Fix spell effect SPELL_EFFECT_HEAL_MAX_HEALTH calculation

This commit is contained in:
Vincent-Michael
2012-05-21 00:11:58 +02:00
parent 69a4ac2209
commit 6b8d4ce123
+2 -6
View File
@@ -3565,7 +3565,7 @@ void Spell::EffectHealMaxHealth(SpellEffIndex /*effIndex*/)
if (!unitTarget || !unitTarget->isAlive()) if (!unitTarget || !unitTarget->isAlive())
return; return;
int32 addhealth; int32 addhealth = 0;
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_PALADIN) // Lay on Hands if (m_spellInfo->SpellFamilyName == SPELLFAMILY_PALADIN) // Lay on Hands
{ {
if (m_caster->GetGUID() == unitTarget->GetGUID()) if (m_caster->GetGUID() == unitTarget->GetGUID())
@@ -3582,11 +3582,7 @@ void Spell::EffectHealMaxHealth(SpellEffIndex /*effIndex*/)
else else
addhealth = unitTarget->GetMaxHealth() - unitTarget->GetHealth(); addhealth = unitTarget->GetMaxHealth() - unitTarget->GetHealth();
if (m_originalCaster) m_healing += addhealth;
{
uint32 heal = m_originalCaster->SpellHealingBonusDone(unitTarget, m_spellInfo, addhealth, HEAL);
m_healing += unitTarget->SpellHealingBonusTaken(m_originalCaster, m_spellInfo, heal, HEAL);
}
} }
void Spell::EffectInterruptCast(SpellEffIndex effIndex) void Spell::EffectInterruptCast(SpellEffIndex effIndex)