Core/Spell: Fix spell effect SPELL_EFFECT_HEAL_MAX_HEALTH calculation
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user