UnitAI: keep chasing on forced orders.

Following 38b33b0484, units on aggressive stance no longer chase beyond
their own vision, including on player-forced orders. This fixes that
regression.
(Note that approaching and chasing are a bit inconsistent).
This commit is contained in:
Lancelot de Ferrière
2026-08-18 15:01:39 +02:00
committed by wraitii
parent cb6f46db71
commit 63b0f05b43
@@ -5608,8 +5608,7 @@ UnitAI.prototype.ShouldChaseTargetedEntity = function(target, force)
// Check if we should chase based on stance
if (this.GetStance().respondChase)
{
// If we're allowed to chase beyond vision, always chase
if (this.GetStance().respondChaseBeyondVision)
if (force || this.GetStance().respondChaseBeyondVision)
return true;
// Otherwise, only chase if the target is within our personal vision