forked from External/mage
Turn under control reworked:
- game: added support when a human is take control over a computer player (related to #12878); - game: fixed game freezes while controlling player leaves/disconnect on active priority/choose of another player;
This commit is contained in:
parent
49b90820e0
commit
0505f5159e
12 changed files with 534 additions and 32 deletions
|
|
@ -845,6 +845,10 @@ public abstract class GameImpl implements Game {
|
|||
// concede for itself
|
||||
// stop current player dialog and execute concede
|
||||
currentPriorityPlayer.signalPlayerConcede(true);
|
||||
} else if (currentPriorityPlayer.getTurnControlledBy().equals(playerId)) {
|
||||
// concede for itself while controlling another player
|
||||
// stop current player dialog and execute concede
|
||||
currentPriorityPlayer.signalPlayerConcede(true);
|
||||
} else {
|
||||
// concede for another player
|
||||
// allow current player to continue and check concede on any next priority
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue