mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Prismatic Piper and same cards - fixed game error on disconnected player before game begin
This commit is contained in:
parent
d6171e20a2
commit
c148e2f5d7
1 changed files with 5 additions and 2 deletions
|
|
@ -80,11 +80,14 @@ public abstract class GameCommanderImpl extends GameImpl {
|
|||
true, "Choose a color for " + commander.getName()
|
||||
);
|
||||
player.choose(Outcome.Neutral, choiceColor, this);
|
||||
color = choiceColor.getColor();
|
||||
color = choiceColor.getColor(); // can be null on disconnect
|
||||
} else {
|
||||
color = iterator.next();
|
||||
}
|
||||
commander.getColor().addColor(color);
|
||||
|
||||
if (color != null) {
|
||||
commander.getColor().addColor(color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue