Turn under control reworked:

- game: fixed game freezes when computer try to take control over another computer or human (added game logs, related to #12878);
 - cheats: improved take and give control commands, now you can give control under yourself to another player;
 - cheats: improved take and give control commands, now you can return control to computer in the same priority;
 - cheats: deleted useless and unused command to activate opponent's ability;
This commit is contained in:
Oleg Agafonov 2025-01-11 22:21:58 +04:00
parent a5c354f960
commit 1f1d1088a1
6 changed files with 50 additions and 73 deletions

View file

@ -3080,8 +3080,8 @@ public class TestPlayer implements Player {
}
@Override
public void controlPlayersTurn(Game game, UUID playerUnderControlId, String info) {
computerPlayer.controlPlayersTurn(game, playerUnderControlId, info);
public boolean controlPlayersTurn(Game game, UUID playerUnderControlId, String info) {
return computerPlayer.controlPlayersTurn(game, playerUnderControlId, info);
}
@Override