- A more appropriate measure for the AI complaints about non-AI friendly cards in sideboard: in Limited modes, the AI will currently not complain (because the non-AI friendly cards end up in the sideboard anyway), but in Constructed modes, the AI will complain if any unplayable cards are included in the sideboard.

This commit is contained in:
Agetian
2012-12-15 15:14:21 +00:00
parent 93a3e9aa5a
commit 34905b2887

View File

@@ -119,11 +119,18 @@ public class GameNew {
sideboard.add(card);
}
// TODO: Enable the code below for Limited modes only when the AI can play all the
// cards in the sideboard (probably means all cards in Forge because in Limited mode,
// any cards can end up in the AI sideboard?)
// mark card as difficult for AI to play
if (player.isComputer() && card.getSVar("RemAIDeck").equals("True") && !rAICards.contains(card.getName()) && !player.getZone(ZoneType.Sideboard).contains(card)) {
rAICards.add(card.getName());
// get card picture so that it is in the image cache
// ImageCache.getImage(card);
if (player.isComputer() && card.getSVar("RemAIDeck").equals("True") && !rAICards.contains(card.getName())) {
if (Singletons.getModel().getMatch().getGameType() != GameType.Draft &&
Singletons.getModel().getMatch().getGameType() != GameType.Sealed) {
rAICards.add(card.getName());
// get card picture so that it is in the image cache
// ImageCache.getImage(card);
}
}
}
}