Core/Unit Do not allow addition of threat to units in evade mode

This commit is contained in:
sirikfoll
2016-05-26 00:23:29 -03:00
committed by Aokromes
parent 1bd85c1a9b
commit 712baeba27

View File

@@ -11103,7 +11103,7 @@ float Unit::ApplyTotalThreatModifier(float fThreat, SpellSchoolMask schoolMask)
void Unit::AddThreat(Unit* victim, float fThreat, SpellSchoolMask schoolMask, SpellInfo const* threatSpell)
{
// Only mobs can manage threat lists
if (CanHaveThreatList())
if (CanHaveThreatList() && !HasUnitState(UNIT_STATE_EVADE))
m_ThreatManager.addThreat(victim, fThreat, schoolMask, threatSpell);
}