mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
CardUtil use common decks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user