Opened 6 years ago
Last modified 20 months ago
#4951 new defect
Long range capturing
Reported by: | temple | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Simulation | Keywords: | |
Cc: | Patch: | Phab:D2709 |
Description
If you attack as a formation with a formation that can attack as formation (currently phalanx, skirmish, syntagma, testudo, or wedge), and then while attacking switch to capturing, units will capture from where they stand rather than first moving to the proper range.
In the replay I show how the bug happens with the wedge formation but not close order.
Attachments (1)
Change History (9)
by , 6 years ago
Attachment: | commands.txt added |
---|
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Formation attack uses the formation controller's position to determine if units are within range, and that's not necessarily correct. For example, a unit could be trapped between buildings but if it's still considered part of a formation it can attack with them, even if they're on the other side of the map. It also doesn't take into account the attack type so it'll return the same range whether they're attacking or capturing. (The code hasn't been updated in four years.)
comment:4 by , 5 years ago
Component: | UI & Simulation → Simulation |
---|
Move tickets to Simulation
as UI & Simulation
got some sub components.
comment:5 by , 4 years ago
issue is in this function https://code.wildfiregames.com/rP14633#inline-4843
comment:6 by , 4 years ago
Milestone: | Backlog → Work In Progress |
---|---|
Owner: | set to |
Patch: | → Phab:D2709 |
comment:7 by , 3 years ago
Since r25235, they should only be able to attack once from too far away, since cmpAttack now checks for the range when actually attacking.
comment:8 by , 20 months ago
Milestone: | Work In Progress → Backlog |
---|---|
Owner: | removed |
Backlogging due to lack of progress and Silier retiring.
For the moment it might be best to disable attacking as formation, Phab:D1220.