From 97606fc50dc44940e85070022abcee147a06aa7a Mon Sep 17 00:00:00 2001 From: L_J Date: Sat, 28 Apr 2018 13:59:28 +0000 Subject: [PATCH] Drain Power while loop logic fix --- Mage.Sets/src/mage/cards/d/DrainPower.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/d/DrainPower.java b/Mage.Sets/src/mage/cards/d/DrainPower.java index 8aa9047668..dd74c601ca 100644 --- a/Mage.Sets/src/mage/cards/d/DrainPower.java +++ b/Mage.Sets/src/mage/cards/d/DrainPower.java @@ -101,7 +101,7 @@ class DrainPowerEffect extends OneShotEffect { List ignorePermanents = new ArrayList<>(); TargetPermanent target = null; - do { + while (true) { Map> manaAbilitiesMap = new HashMap<>(); for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filter, targetPlayer.getId(), game)) { if (!ignorePermanents.contains(permanent)) { @@ -162,7 +162,7 @@ class DrainPowerEffect extends OneShotEffect { } } } - } while (target != null && target.canChoose(targetPlayer.getId(), game)); + } // 106.12. One card (Drain Power) causes one player to lose unspent mana and another to add “the mana lost this way.” (Note that these may be the same player.) // This empties the former player’s mana pool and causes the mana emptied this way to be put into the latter player’s mana pool. Which permanents, spells, and/or