1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-07 17:00:08 -09:00

fixed emblems not being removed when a player leaves a multiplayer game

This commit is contained in:
Evan Kranzler 2017-09-28 19:12:53 -04:00
parent 6abb829b8f
commit f177ce14d2

View file

@ -2359,6 +2359,13 @@ public abstract class GameImpl implements Game, Serializable {
}
}
//Remove all emblems the player controls
for (Iterator<CommandObject> it = this.getState().getCommand().iterator(); it.hasNext();) {
if (it.next().getControllerId().equals(playerId)) {
it.remove();
}
}
Iterator<Entry<UUID, Card>> it = gameCards.entrySet().iterator();
while (it.hasNext()) {