tobymao / 18xx

A platform for playing 18xx games online!
https://18xx.games
Other
281 stars 183 forks source link

Auto actions persist when cloning game, no option to disable #9158

Open davidlaughlin opened 1 year ago

davidlaughlin commented 1 year ago

Game: https://18xx.games/game/117307

Data: https://gist.github.com/davidlaughlin/374255c8779680b7bcd89ef70375dc6e

Action: https://18xx.games/game/117307?action=563

How to Reproduce the Bug?

What steps cause the unexpected behavior?

Which Browser / Platform?

benjaminxscott commented 1 year ago

repro'd, the behavior certainly an annoyance - it's across all games fwiw

It's due to auto-actions being an 'action' as part of the game state, so they get 'executed' in sequence

The workaround would be to disable them before cloning the game (which may or may not be possible if they are set by other players)

We'll look into stripping them from the game state when cloning, which would fix this issue