mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user