Bug Report
Expected behavior:
attacking an allied city in the same turn that the ally left the game, shouldn't be possible even after refreshing the game. (that's my understanding of how it should be... correct me if I'm wrong)
Actual behavior:
but if you refresh the game in such a case then you can attack the cities of the ally that just left. All those moves will get canceled if you end turn.
Steps to reproduce the behavior
1. create a game with atleast 3 players
2. player 1 and 2 ally
3. player 2 leaves the game a turn after he allied player 1
4. player 1 refreshes / reconnects the game in the same turn that player 2 left the game and tries to attack his city which the game allows you now.
5. all players end turn
6. and the attacks from player 1 on player 2's cities will all be canceled
Information:
Browser: Firefox
Browser version: 97.0.1 (64-bit)
OS: Win10 x64
Any other relevant information:
Attachments:
player 1 (blue) and player 2 (green) are allied
player 2 leaves the game
that's how attacking player 2 looks before the refresh
that's how attacking after a refresh / reconnect looks
all those attacks will get canceled and the units are back to their initial positions