From 38ff0c2024449831ef48d5fe4723d965804d10bf Mon Sep 17 00:00:00 2001 From: Filipe Cordeiro Date: Fri, 16 Dec 2016 21:09:04 +0000 Subject: [PATCH] Fixes bug in Jaddi Lifestrider Fixes #2469 --- Mage.Sets/src/mage/cards/j/JaddiLifestrider.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Mage.Sets/src/mage/cards/j/JaddiLifestrider.java b/Mage.Sets/src/mage/cards/j/JaddiLifestrider.java index fb6834d281..3974fa6090 100644 --- a/Mage.Sets/src/mage/cards/j/JaddiLifestrider.java +++ b/Mage.Sets/src/mage/cards/j/JaddiLifestrider.java @@ -95,19 +95,14 @@ class JaddiLifestriderEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { int tappedAmount = 0; Player you = game.getPlayer(source.getControllerId()); - TargetCreaturePermanent target = new TargetCreaturePermanent(filter); - while (true) { - target.clearChosen(); - if (target.canChoose(source.getControllerId(), game) && target.choose(Outcome.Tap, source.getControllerId(), source.getSourceId(), game)) { - UUID creature = target.getFirstTarget(); + TargetCreaturePermanent target = new TargetCreaturePermanent(0, Integer.MAX_VALUE, filter, true); + if (target.canChoose(source.getControllerId(), game) && target.choose(Outcome.Tap, source.getControllerId(), source.getSourceId(), game)) { + for (UUID creature : target.getTargets()) { if (creature != null) { game.getPermanent(creature).tap(game); tappedAmount++; } } - else { - break; - } } if (tappedAmount > 0) { you.gainLife(tappedAmount * 2, game);