* 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.

This commit is contained in:
LevelX2 2015-01-21 22:48:32 +01:00
parent b12b044e36
commit 1340ebff49
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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;