[10990] Fix wrong threat assignment in Spell::EffectHealPct when m_caster and m_originalCaster differ.

This commit is contained in:
Lynx3d 2011-01-09 15:41:33 +01:00
parent 39e7b19267
commit f11ec97957
2 changed files with 3 additions and 3 deletions

View file

@ -1727,7 +1727,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
}
case EFFECT_INDEX_1: // additional data for dummy[0]
case EFFECT_INDEX_2:
return;
return;
}
return;
}
@ -3483,7 +3483,7 @@ void Spell::EffectHealPct(SpellEffectIndex /*eff_idx*/)
unitTarget->CalculateHealAbsorb(addhealth, &absorb);
int32 gain = caster->DealHeal(unitTarget, addhealth - absorb, m_spellInfo, false, absorb);
unitTarget->getHostileRefManager().threatAssist(m_caster, float(gain) * 0.5f, m_spellInfo);
unitTarget->getHostileRefManager().threatAssist(caster, float(gain) * 0.5f, m_spellInfo);
}
}