fix(Core/SmartAI): Ranged Creatures should have relaxed stances while outside melee range (#24623)

This commit is contained in:
Gultask
2026-02-06 18:05:37 -03:00
committed by GitHub
parent c1cbc8bfed
commit c74e1567d7

View File

@@ -859,7 +859,7 @@ void SmartAI::AttackStart(Unit* who)
return; return;
} }
if (who && me->Attack(who, me->IsWithinMeleeRange(who) || _currentRangeMode)) if (who && me->Attack(who, me->IsWithinMeleeRange(who)))
{ {
if (!me->HasUnitState(UNIT_STATE_NO_COMBAT_MOVEMENT)) if (!me->HasUnitState(UNIT_STATE_NO_COMBAT_MOVEMENT))
{ {