PuzzleScriptPlus
PuzzleScriptPlus copied to clipboard
If `again` and `win` are triggered together, the `win` is lost
Here is the repro case. Press Right 3 times. On vanilla PS and P:S this triggers a win, but not on PS+.
The bug seems to be during again processing. I haven't nailed it yet.
Finally nailed it!!! At engine.js:3324 the return is taken before changes to the level have been restored. So the combo of again, win and changes to the level will trigger the bug.
The fix is to delete those 3 lines.😎