*Fix a bug that mobs do not stop chasing players.
--HG-- branch : trunk
This commit is contained in:
1 parent
bd25d2a33b
commit
afc6dc7c48
1 file changed
+5
-2
+5
-2
@@ -10448,8 +10448,11 @@ bool Unit::SelectHostilTarget()
|
||||
// search nearby enemy before enter evade mode
|
||||
if(Unit *target = ((Creature*)this)->SelectNearestTarget())
|
||||
{
|
||||
((Creature*)this)->AI()->AttackStart(target);
|
||||
return true;
|
||||
if(!((Creature*)this)->IsOutOfThreatArea(target))
|
||||
{
|
||||
((Creature*)this)->AI()->AttackStart(target);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if(m_invisibilityMask)
|
||||
|
||||
Reference in new issue
Block a user