Re-did the AI for spreading seas (It got removed in the last few commits)

This commit is contained in:
jendave
2011-08-06 04:47:45 +00:00
parent 187625a8f7
commit 29f2db5ae9

View File

@@ -621,7 +621,11 @@ class CardFactory_Auras {
public boolean canPlayAI() {
CardList list = new CardList(AllZone.Human_Play.getCards());
list = list.getType("Land");
list = list.filter(new CardListFilter() {
public boolean addCard(Card c) {
return !c.getType().contains("Island");
}
});
if(list.isEmpty()) return false;
setTargetCard(list.get(0));