mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Ensuring that non-AI cards are excluded from the list of card-based decks that can be selected for an AI player
This commit is contained in:
@@ -17,6 +17,10 @@ public class CardThemedDeckGenerator extends DeckProxy implements Comparable<Car
|
|||||||
public static List<DeckProxy> getMatrixDecks(GameFormat format, boolean isForAi){
|
public static List<DeckProxy> getMatrixDecks(GameFormat format, boolean isForAi){
|
||||||
final List<DeckProxy> decks = new ArrayList<DeckProxy>();
|
final List<DeckProxy> decks = new ArrayList<DeckProxy>();
|
||||||
for(String card: CardRelationMatrixGenerator.cardPools.get(format.getName()).keySet()) {
|
for(String card: CardRelationMatrixGenerator.cardPools.get(format.getName()).keySet()) {
|
||||||
|
//exclude non AI playables as keycards for AI decks
|
||||||
|
if(isForAi&&FModel.getMagicDb().getCommonCards().getUniqueByName(card).getRules().getAiHints().getRemAIDecks()){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
decks.add(new CardThemedDeckGenerator(card, format, isForAi));
|
decks.add(new CardThemedDeckGenerator(card, format, isForAi));
|
||||||
}
|
}
|
||||||
return decks;
|
return decks;
|
||||||
|
|||||||
Reference in New Issue
Block a user