mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
*Change react state of guardian back to aggressive. Instead check threat radius in canstartattack to prevent them attack too far target.
--HG-- branch : trunk
This commit is contained in:
@@ -11187,11 +11187,8 @@ Unit* Creature::SelectVictim()
|
||||
|
||||
// search nearby enemy before enter evade mode
|
||||
if(HasReactState(REACT_AGGRESSIVE))
|
||||
{
|
||||
target = SelectNearestTarget();
|
||||
if(target && !IsOutOfThreatArea(target))
|
||||
if(target = SelectNearestTarget())
|
||||
return target;
|
||||
}
|
||||
|
||||
if(m_invisibilityMask)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user