Opened 5 years ago
Closed 3 years ago
#5511 closed defect (fixed)
Units actually attacking an allied storehouse
Reported by: | elexis | Owned by: | Freagarach |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 25 |
Component: | Simulation | Keywords: | |
Cc: | Patch: | Phab:D3840 |
Description (last modified by )
Attachments (2)
Change History (9)
by , 5 years ago
Attachment: | commands.txt added |
---|
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
by , 4 years ago
Attachment: | commands.2.txt added |
---|
comment:2 by , 4 years ago
The problem is that an order to attack was given without allowing capture, thus the attacking entity will use melee, against an enemy structure. When the structure was captured by the ally it starts losing CP. In the check whether the attacking unit CanAttack the structure there is no check whether it can continue the current attack (i.e. one could pass the attack type currently used) but just whether it could, using all types possible, attack the entity. And it can, because there are enemy CP in the CP-array. Hence continueing the attack, although with melee.
Steps to reproduce:
- Have an ally and an enemy.
- Give the order to melee attack the building of an enemy.
- Use wololo to capture that building using your ally, make sure it will decay.
- Observe your unit attacking and damaging the structure of your ally.
comment:3 by , 4 years ago
Good job, reproducible with a23 too, sounds like it's there since the introduction of Capturing.
comment:4 by , 4 years ago
Thanks :)
Probably seen here as well https://trac.wildfiregames.com/ticket/3484#comment:13.
comment:5 by , 3 years ago
Milestone: | Backlog → Alpha 25 |
---|---|
Owner: | set to |
Patch: | → Phab:D3840 |
Recent replay.