mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
fix(Core/AI): Fixed mobs attacking in defensive state. (#14947)
This commit is contained in:
@@ -704,7 +704,7 @@ void SmartAI::MoveInLineOfSight(Unit* who)
|
||||
if (me->HasReactState(REACT_PASSIVE) || AssistPlayerInCombatAgainst(who))
|
||||
return;
|
||||
|
||||
if (me->CanStartAttack(who))
|
||||
if (me->HasReactState(REACT_AGGRESSIVE) && me->CanStartAttack(who))
|
||||
{
|
||||
if (me->HasUnitState(UNIT_STATE_DISTRACTED))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user