Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
254 stars 83 forks source link

Interaction Issue about Ares Saboteur Logic #1257

Closed Cpj636 closed 1 month ago

Cpj636 commented 1 month ago

Description

There seems to be an interaction issue related to the Saboteur logic introduced by Ares. Without Phobos B39, an infantry with both "Saboteur=yes" and "Infiltrate=yes" can sabotage any buildings with "ImmuneToSaboteurs=no". However, together with Phobos B39, such logic cannot work properly for Spyable=no buildings.

Phobos Version

B39

Conditions to reproduce

Ares 3.0 + B39.

INI code

[InfantryType]
Saboteur=yes
Infiltrate=yes

[BuildingType]
Spyable=no
ImmuneToSaboteurs=no

Steps to reproduce

1.Build a Saboteur=yes infantry 2.Give command to sabotage a building

Expected behaviour

The saboteur should infiltrate the building and sabotage it.

Actual behaviour

The mouse cursor will change to "Sabotage", but the infantry stays in place.

Additional context

No response

Checklist