mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user