- Fixed a bug that caused the deck not to reset properly after playing Momir/MoJhoSto.

This commit is contained in:
Agetian
2018-04-15 13:19:15 +03:00
parent 802d084070
commit ec2e04f401

View File

@@ -437,6 +437,7 @@ public abstract class GameLobby implements IHasGameType {
} }
else if (autoGenerateVariant != null) { else if (autoGenerateVariant != null) {
Deck autoDeck = autoGenerateVariant.autoGenerateDeck(rp); Deck autoDeck = autoGenerateVariant.autoGenerateDeck(rp);
deck = new Deck("Autogenerated Deck");
for (DeckSection d : DeckSection.values()) { for (DeckSection d : DeckSection.values()) {
if (autoDeck.has(d)) { if (autoDeck.has(d)) {
deck.getOrCreate(d).clear(); deck.getOrCreate(d).clear();