Core/Unit Do not allow addition of threat to units in evade mode
This commit is contained in:
1 parent
1bd85c1a9b
commit
712baeba27
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user