- Fixed bug where Retribution of the Meek recalculates Power in the middle of resolution.

This commit is contained in:
jendave
2011-08-06 05:19:25 +00:00
parent e2d38f5f60
commit 59998cc175

View File

@@ -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());