mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Improved the AI of Quicksilver Amulet.
This commit is contained in:
@@ -7596,7 +7596,7 @@ public class CardFactory implements NewConstants {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlayAI() {
|
public boolean canPlayAI() {
|
||||||
return getCreature().size() != 0;
|
return (getCreature().size() > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -7609,6 +7609,11 @@ public class CardFactory implements NewConstants {
|
|||||||
CardList getCreature() {
|
CardList getCreature() {
|
||||||
CardList list = new CardList(AllZone.Computer_Hand.getCards());
|
CardList list = new CardList(AllZone.Computer_Hand.getCards());
|
||||||
list = list.getType("Creature");
|
list = list.getType("Creature");
|
||||||
|
list = list.filter(new CardListFilter() {
|
||||||
|
public boolean addCard(Card c) {
|
||||||
|
return (c.getCMC() > 4);
|
||||||
|
}
|
||||||
|
});
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user