From 59998cc175f9138b93e42e131aad4a25a9b7c73a Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 05:19:25 +0000 Subject: [PATCH] - Fixed bug where Retribution of the Meek recalculates Power in the middle of resolution. --- src/forge/CardFactory.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/forge/CardFactory.java b/src/forge/CardFactory.java index de59d3d1e9b..59bc7231d91 100644 --- a/src/forge/CardFactory.java +++ b/src/forge/CardFactory.java @@ -14065,11 +14065,16 @@ public class CardFactory implements NewConstants { CardList all = new CardList(); all.addAll(AllZone.Human_Play.getCards()); all.addAll(AllZone.Computer_Play.getCards()); + all = all.getType("Creature"); + + all = all.filter(new CardListFilter() { + public boolean addCard(Card c) { + return c.getNetAttack() >= 4; + } + }); for(int i = 0; i < all.size(); i++) { - Card c = all.get(i); - int power = c.getNetAttack(); - if(c.isCreature() && (power >= 4)) AllZone.GameAction.destroyNoRegeneration(c); + AllZone.GameAction.destroyNoRegeneration(all.get(i)); } }//resolve() @@ -14087,12 +14092,6 @@ public class CardFactory implements NewConstants { } }); - human = human.filter(new CardListFilter() { - public boolean addCard(Card c) { - return c.getNetAttack() >= 4; - } - }); - //the computer will at least destroy 2 more human creatures return computer.size() < human.size() - 1 || (AllZone.Computer_Life.getLife() < 7 && !human.isEmpty());