From 8feaf0795f91b81316bccc5a326f99fb50dd0349 Mon Sep 17 00:00:00 2001 From: swordshine Date: Sun, 14 Jan 2018 10:53:21 +0800 Subject: [PATCH] - Simplified the code --- .../java/forge/game/ability/effects/ChooseCardEffect.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge-game/src/main/java/forge/game/ability/effects/ChooseCardEffect.java b/forge-game/src/main/java/forge/game/ability/effects/ChooseCardEffect.java index 61e6dd8aed8..9a8df7b8343 100644 --- a/forge-game/src/main/java/forge/game/ability/effects/ChooseCardEffect.java +++ b/forge-game/src/main/java/forge/game/ability/effects/ChooseCardEffect.java @@ -91,9 +91,9 @@ public class ChooseCardEffect extends SpellAbilityEffect { } } else if (sa.hasParam("WithTotalPower")){ final int totP = AbilityUtils.calculateAmount(host, sa.getParam("WithTotalPower"), sa); - CardCollection negativeCreats = new CardCollection(CardLists.getValidCards(p.getCreaturesInPlay(), "Card.powerLT0", host.getController(), host)); + CardCollection negativeCreats = CardLists.filterLEPower(p.getCreaturesInPlay(), -1); int negativeNum = Aggregates.sum(negativeCreats, CardPredicates.Accessors.fnGetNetPower); - CardCollection creature = new CardCollection(CardLists.filterLEPower(p.getCreaturesInPlay(), totP - negativeNum)); + CardCollection creature = CardLists.filterLEPower(p.getCreaturesInPlay(), totP - negativeNum); CardCollection chosenPool = new CardCollection(); int chosenP = 0; while (!creature.isEmpty()) {