mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
* 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:
parent
b12b044e36
commit
1340ebff49
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue