mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +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() {
|
public boolean canPlayAI() {
|
||||||
CardList list = new CardList(AllZone.Human_Play.getCards());
|
CardList list = new CardList(AllZone.Human_Play.getCards());
|
||||||
list = list.getType("Land");
|
list = list.getType("Land");
|
||||||
|
list = list.filter(new CardListFilter() {
|
||||||
|
public boolean addCard(Card c) {
|
||||||
|
return !c.getType().contains("Island");
|
||||||
|
}
|
||||||
|
});
|
||||||
if(list.isEmpty()) return false;
|
if(list.isEmpty()) return false;
|
||||||
|
|
||||||
setTargetCard(list.get(0));
|
setTargetCard(list.get(0));
|
||||||
|
|||||||
Reference in New Issue
Block a user