Skip to content

The new script actions 10002 cannot correctly select the nearest target from AITargetTypes #2027

@xiongxionghai0

Description

@xiongxionghai0

Description

By using script actions 10002, the unit is supposed to eliminate the targets listed in AITargetTypes one by one from nearest to farthest. However, in practice, the unit does not select targets in the expected order.

Phobos Version

b48

Conditions to reproduce

Yuri's Revenge and Ares3.0

INI code

[AITargetTypes]
0=NATECH,GATECH,YATECH

[General]
AIAllToHunt=no
AIFireSale=no

Steps to reproduce

YURI.zip

1.1.Down the file and put it in Yuri's Revenge with Ares3.0 and phobosb48
2.Choose multiplayer games, and then set Player to Position 1 and Computer to Position 2 to start the game.
3.When the game starts, observing the behavior of the seal.
...

Expected behaviour

The seal destroyed two Yuri Battle Lab at first, and then destroyed two Allied Battle Lab, two Soviet Battle Lab should be destroyed at last.

Actual behaviour

The seal did not destroy the battle labs one by one in order from nearest to farthest.

Additional context

2026-01-06.13-33-24.mp4

Checklist

  • The issue happens on the latest official version of Phobos and wasn't fixed yet.
  • I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
  • I added a very descriptive title to this issue.
  • I used the GitHub search and read the issue list to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions