Phobos
Phobos copied to clipboard
AI Script 10000-10001,10005-10006,10010-10011,10014-10015 may attack disguised infantry/units
Description
If a task force carries out the above instructions (like 10000,1), they will attack disguised infantry (spy) and disgusied vehicle (mirage tank), even this task force has no member with "DetectDisguise=yes".
Phobos Version
Build 38
Conditions to reproduce
Ares 3.0
INI code
[SomeScript]
0=10000,1
Steps to reproduce
- Train some spies, make them disguised into enemy infantry
- Wait for AI train task forces carries out AIScript with 10000-10001,...
- These taks forces will actively attack these spies, even this task force has no member have "DetectDisguise=yes".
Expected behaviour
They shouldn't attack disguised units.
Actual behaviour
They attack disguised units. This makes it very difficult to infiltrate AI buildings.
Additional context
No response
Checklist
- [X] The issue happens on the latest official version of Phobos and wasn't fixed yet.
- [X] I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
- [X] I added a very descriptive title to this issue.
- [X] I used the GitHub search and read the issue list to find a similar issue and didn't find it.
- [X] I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).
PR #1169 fixes that with probabilities. https://github.com/Phobos-developers/Phobos/pull/1169