update Consume the Meek to exercise new AllZoneUtil functions

This commit is contained in:
jendave
2011-08-06 04:10:50 +00:00
parent 54eb0aa6e8
commit ac53b131e0

View File

@@ -18778,12 +18778,11 @@ public class CardFactory implements NewConstants {
@Override @Override
public void resolve() { public void resolve() {
CardList all = new CardList(); CardList all = new CardList();
all.addAll(getHumanCreatures().toArray()); all.add(getHumanCreatures());
all.addAll(getComputerCreatures().toArray()); all.add(getComputerCreatures());
for(int i = 0; i < all.size(); i++) { for(int i = 0; i < all.size(); i++) {
Card c = all.get(i); Card c = all.get(i);
System.out.println("Consume the Meek: " + c);
AllZone.GameAction.destroyNoRegeneration(c); AllZone.GameAction.destroyNoRegeneration(c);
} }
}// resolve() }// resolve()
@@ -18795,17 +18794,13 @@ public class CardFactory implements NewConstants {
}; };
private CardList getHumanCreatures() { private CardList getHumanCreatures() {
CardList human = new CardList(); CardList human = AllZoneUtil.getPlayerCardsInPlay(Constant.Player.Human);
human.addAll(AllZone.Human_Play.getCards()); return human.filter(filter);
human = human.filter(filter);
return human;
} }
private CardList getComputerCreatures() { private CardList getComputerCreatures() {
CardList comp = new CardList(); CardList comp = AllZoneUtil.getPlayerCardsInPlay(Constant.Player.Computer);
comp.addAll(AllZone.Computer_Play.getCards()); return comp.filter(filter);
comp = comp.filter(filter);
return comp;
} }
@Override @Override