New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In turn-based battles, non-blocking attacks delayed by X attacks will delay up to X turns #1118
Comments
I've found that the cause of the bug is here in
Replacing I added that FIXME comment a year and a half ago but because the comment above it so confidently claimed that this was correct I didn't want to change it. Also in r10640 (d82875b) I added a comment about attacks (in turn-based mode) getting "shunted" to the next round even if they don't have a turn delay, and fixed another resulting bug. I'm pretty sure I was referring to this behaviour. That fix might need revisiting too. |
Fixed r11813 (82a636c) |
…elay up to X turns Added "Non-turn attack delays can also cause turn delays" backcompat bit git-svn-id: https://rpg.hamsterrepublic.com/source/wip@11813 7d344553-34f0-0310-a9b1-970ce8f1c3a2
The "Delay/Advance attack by X attacks" setting (turn-based battles only) is meant to change the order in which attacks happen during a single turn, but it seems to cause a delay by that many turns instead if combined with a turn delay
Here's a testcase Feenick sent me; the hero's attack chains to an attack with a delay of 1 turn and 4 attacks: delaytest.zip
You can see the attacks build up in the queue.
Incidentally this "Delay/advance attack" setting is so confusingly named that I was initially very confused, and then really struggled to refer to it while writing this bug.
The text was updated successfully, but these errors were encountered: