mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10990] Fix wrong threat assignment in Spell::EffectHealPct when m_caster and m_originalCaster differ.
This commit is contained in:
parent
39e7b19267
commit
f11ec97957
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue