update Slate of Ancestry to exercise new AllZoneUtil functions.

This commit is contained in:
jendave
2011-08-06 04:10:55 +00:00
parent ac53b131e0
commit 7e2195c404

View File

@@ -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