mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
fixed emblems not being removed when a player leaves a multiplayer game
This commit is contained in:
parent
6abb829b8f
commit
f177ce14d2
1 changed files with 7 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue