- Momir Basic: when auto-generating the deck, only update the original deck instead of fully overwriting it. Allows the Momir Basic variant to be used in conjunction with other variants, such as Planechase, without crashing Forge.

This commit is contained in:
Agetian
2017-08-17 04:51:43 +00:00
parent b31ca263fd
commit cb89c96dac

View File

@@ -399,7 +399,13 @@ public abstract class GameLobby implements IHasGameType {
}
}
else if (autoGenerateVariant != null) {
deck = autoGenerateVariant.autoGenerateDeck(rp);
Deck autoDeck = autoGenerateVariant.autoGenerateDeck(rp);
for (DeckSection d : DeckSection.values()) {
if (autoDeck.has(d)) {
deck.getOrCreate(d).clear();
deck.get(d).addAll(autoDeck.get(d));
}
}
}
// Initialise variables for other variants