From 1340ebff49afd549c58f4fd8a85e0fd6e3fad684 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 21 Jan 2015 22:48:32 +0100 Subject: [PATCH] * Untap restricting effects - Fixed that the selection of the permanent to untap was wrongly handled targeted. So something with protection from red could not be untapped while e.g. Smoke was into play. --- .../abilities/effects/RestrictionUntapNotMoreThanEffect.java | 2 +- Mage/src/mage/players/PlayerImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage/src/mage/abilities/effects/RestrictionUntapNotMoreThanEffect.java b/Mage/src/mage/abilities/effects/RestrictionUntapNotMoreThanEffect.java index 324998f2b60..9bda2189408 100644 --- a/Mage/src/mage/abilities/effects/RestrictionUntapNotMoreThanEffect.java +++ b/Mage/src/mage/abilities/effects/RestrictionUntapNotMoreThanEffect.java @@ -42,7 +42,7 @@ import mage.players.Player; */ public abstract class RestrictionUntapNotMoreThanEffect extends ContinuousEffectImpl { - private int number; + private final int number; private FilterControlledPermanent filter; public RestrictionUntapNotMoreThanEffect(Duration duration, int number, FilterControlledPermanent filter) { diff --git a/Mage/src/mage/players/PlayerImpl.java b/Mage/src/mage/players/PlayerImpl.java index 6d5d6abb9c5..6663eecc517 100644 --- a/Mage/src/mage/players/PlayerImpl.java +++ b/Mage/src/mage/players/PlayerImpl.java @@ -1374,7 +1374,7 @@ public abstract class PlayerImpl implements Player, Serializable { } sb.append(")"); filter.setMessage(sb.toString()); - Target target = new TargetPermanent(filter); + Target target = new TargetPermanent(1, 1, filter, true); if (!this.chooseTarget(Outcome.Untap, target, ability, game)) { // player canceled, go on with the next effect (if no other effect available, this effect will be active again) playerCanceledSelection = true;