Phobos icon indicating copy to clipboard operation
Phobos copied to clipboard

AI Script 10000-10001,10005-10006,10010-10011,10014-10015 may attack disguised infantry/units

Open Flactine opened this issue 1 year ago • 1 comments

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

  1. Train some spies, make them disguised into enemy infantry
  2. Wait for AI train task forces carries out AIScript with 10000-10001,...
  3. 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).

Flactine avatar Dec 30 '23 03:12 Flactine

PR #1169 fixes that with probabilities. https://github.com/Phobos-developers/Phobos/pull/1169

FS-21 avatar Dec 30 '23 08:12 FS-21