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

This commit is contained in:
sirikfoll authored and Aokromes committed 2016-07-20 13:29:22 +02:00
1 parent 1bd85c1a9b
commit 712baeba27
1 file changed
+1 -1
+1 -1
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);
}