mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Fixed bug where Retribution of the Meek recalculates Power in the middle of resolution.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user