mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Re-did the AI for spreading seas (It got removed in the last few commits)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user