CardUtil use common decks

This commit is contained in:
Rob Schnautz
2023-06-22 11:28:10 -05:00
parent 4a1a19a4c9
commit 545b8486db
918 changed files with 1 additions and 13211 deletions

View File

@@ -640,7 +640,7 @@ public class CardUtil {
public static Deck getDeck(String path, boolean forAI, boolean isFantasyMode, String colors, boolean isTheme, boolean useGeneticAI, CardEdition starterEdition, boolean discourageDuplicates)
{
if(path.endsWith(".dck"))
return DeckSerializer.fromFile(new File(Config.instance().getFilePath(path)));
return DeckSerializer.fromFile(new File(Config.instance().getCommonFilePath(path)));
if(forAI && (isFantasyMode||useGeneticAI)) {
Deck deck = DeckgenUtil.getRandomOrPreconOrThemeDeck(colors, forAI, isTheme, useGeneticAI);