cheats: added default commands to take and remove control over another player (related to #12878)

This commit is contained in:
Oleg Agafonov 2025-01-07 19:47:25 +04:00
parent c076f4925f
commit 5626c5f932
4 changed files with 46 additions and 4 deletions

View file

@ -248,7 +248,6 @@ public class Turn implements Serializable {
// add new under control
TurnMod newControllerMod = game.getState().getTurnMods().useNextNewController(activePlayerId);
if (newControllerMod != null && !newControllerMod.getNewControllerId().equals(activePlayerId)) {
// set player under new control
// game logs added in child's call (controlPlayersTurn)
game.getPlayer(newControllerMod.getNewControllerId()).controlPlayersTurn(game, activePlayerId, newControllerMod.getInfo());
}