Vinifera
Vinifera copied to clipboard
[Vanilla Bug] Objects with Sensors=yes cause nearby cloaked allied objects to uncloak
Description:
An object with Sensors=yes causes cloaked objects to uncloak. This is good and works otherwise, but it also causes objects of your allies to uncloak. When checking if an object should be uncloaked due to a nearby unit with sensors, the game checks whether the object with sensors and the cloaked object share the same owner; it does not check if the owners of the objects are allies.
Steps To Reproduce:
- Give Sensors=yes to an infantry or a unit type
- Have an ally with a densely built cloaked base
- Move through the base with your unit and you'll notice your unit uncloaking everything as it moves
Additional Files:
Bugfix code in CnCNet ts-patches: https://github.com/CnCNet/ts-patches/blob/master/src/fix_allied_decloaking.asm