Skip to content

Conversation

@Stubbjax
Copy link

Fixes #1874

This change allows undetected mines to be approached when using a disarm weapon.

In the retail game, a worker or dozer refuses to perform a mine disarming command if there are undetected mines at the targeted location. This is because there is no logic in the AIAttackApproachTargetState (entered when a weapon is out of range) to accommodate the special-case mine disarming behaviour, and the state returns a fail if the target is stealthed and undetected irrespective of the initial command's success.

Before

The worker does not proceed to disarm mines

MINE_FAIL.mp4

After

The worker proceeds to disarm mines

MINE_SUCCESS.mp4

@Stubbjax Stubbjax self-assigned this Nov 19, 2025
@Stubbjax Stubbjax added AI Is AI related Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour NoRetail This fix or change is not applicable with Retail game compatibility labels Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Is AI related Bug Something is not working right, typically is user facing Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker NoRetail This fix or change is not applicable with Retail game compatibility ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dozer stuck inside Command Center when Clear Mines is issued on mined location during exit

1 participant