mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
update Slate of Ancestry to exercise new AllZoneUtil functions.
This commit is contained in:
@@ -18549,14 +18549,8 @@ public class CardFactory implements NewConstants {
|
|||||||
for(int i = 0; i < c.length; i++)
|
for(int i = 0; i < c.length; i++)
|
||||||
AllZone.GameAction.discard(c[i]);
|
AllZone.GameAction.discard(c[i]);
|
||||||
|
|
||||||
PlayerZone play = AllZone.getZone(Constant.Zone.Play, player);
|
|
||||||
CardList creatures = new CardList(play.getCards());
|
|
||||||
creatures = creatures.filter(new CardListFilter() {
|
|
||||||
public boolean addCard(Card c) {
|
|
||||||
return c.isCreature();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// Draw a card for each creature
|
// Draw a card for each creature
|
||||||
|
CardList creatures = AllZoneUtil.getCreaturesInPlay(player);
|
||||||
for(int i = 0; i < creatures.size(); i++)
|
for(int i = 0; i < creatures.size(); i++)
|
||||||
AllZone.GameAction.drawCard(player);
|
AllZone.GameAction.drawCard(player);
|
||||||
|
|
||||||
@@ -18564,16 +18558,9 @@ public class CardFactory implements NewConstants {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlayAI() {
|
public boolean canPlayAI() {
|
||||||
PlayerZone play = AllZone.getZone(Constant.Zone.Play, Constant.Player.Computer);
|
CardList creatures = AllZoneUtil.getCreaturesInPlay(Constant.Player.Computer);
|
||||||
CardList creatures = new CardList(play.getCards());
|
CardList hand = AllZoneUtil.getPlayerHand(Constant.Player.Computer);
|
||||||
creatures = creatures.filter(new CardListFilter() {
|
return creatures.size() > hand.size();
|
||||||
public boolean addCard(Card c) {
|
|
||||||
return c.isCreature();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, Constant.Player.Computer);
|
|
||||||
CardList handList = new CardList(hand.getCards());
|
|
||||||
return creatures.size() > handList.size();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};//Ability_Tap
|
};//Ability_Tap
|
||||||
|
|||||||
Reference in New Issue
Block a user