forked from External/mage
Fixed player leaving/conceding handling.
This commit is contained in:
parent
79d4c07d20
commit
58d3fc2328
21 changed files with 553 additions and 463 deletions
|
|
@ -264,7 +264,7 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
player.selectAttackers(game, attackingPlayerId);
|
||||
}
|
||||
firstTime = false;
|
||||
if (game.isPaused() || game.gameOver(null) || game.executingRollback()) {
|
||||
if (game.isPaused() || game.checkIfGameIsOver() || game.executingRollback()) {
|
||||
return;
|
||||
}
|
||||
// because of possible undo during declare attackers it's neccassary to call here the methods with "game.getCombat()." to get the current combat object!!!
|
||||
|
|
@ -461,7 +461,7 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
}
|
||||
while (choose) {
|
||||
controller.selectBlockers(game, defenderId);
|
||||
if (game.isPaused() || game.gameOver(null) || game.executingRollback()) {
|
||||
if (game.isPaused() || game.checkIfGameIsOver() || game.executingRollback()) {
|
||||
return;
|
||||
}
|
||||
if (!game.getCombat().checkBlockRestrictions(defender, game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue