mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
*Fix a bug that mobs do not stop chasing players.
--HG-- branch : trunk
This commit is contained in:
@@ -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