openfrontio / openfrontio/OpenFrontIO
[BUG] Double-tap for attack with high attack-ratio MIGHT transform into a full-send.
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 1.4k
- Avg merge
- 17h 43m
- Merged PRs (30d)
- 310
Description
**Description**
**Sometimes**, when double-clicking with a high attack-ratio (e.g. 50%), all available troops are sent in the attack, instead of sending the expected percentage (in this case 75%).
Enzo and Deshack both have video footage of the bug.
**To Reproduce**
I do not manage to reproduce it on my side (current hypothesis is that I do not double-click fast enough). However I collected these proofs:
[Video](https://youtu.be/1UXRLtcpOe8?si=LSHkBCgIMR8SwbTV&t=845) and [Game link](https://openfront.io/w14/game/yPtZwsW4) (in game time 13:39, player Tortuga) from Enzo.
[Video](https://youtu.be/Lbjnkcjp4YA?si=QCzue0d3-_DIrCP_&t=282) and [Game link](https://openfront.io/w14/game/6FqQuGTj) (in game time 04:51, player [ITA] deshack) from Deshack.
**Expected behavior**
When double-clicking with an attack-ratio of r, the percentage of available troops sent should be r², not 2r.
**Additional context**
If you assign this issue to me, **I will create a test that tries to mimic this bug** by sending two attack orders within the same tick.
If this doesn't work, I'll try replaying these games and inspecting the game state (I do not know yet if this is possible).
Contributor guide
Assessment
This issue has not been assessed yet.