Skip to content

Commit

Permalink
Smoother targeting of Zimone's option turn-face-up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grath committed Sep 28, 2024
1 parent 43b2833 commit efed3a3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Mage.Sets/src/mage/cards/z/ZimoneMysteryUnraveler.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,9 @@ public boolean apply(Game game, Ability source) {
FilterControlledPermanent filter = new FilterControlledPermanent("a permanent you control");
filter.add(FaceDownPredicate.instance);
if (controller != null) {
TargetControlledPermanent target = new TargetControlledPermanent(filter);
if (controller.chooseUse(Outcome.Benefit, "Turn a permanent you control face up?", source, game) && controller.choose(Outcome.BoostCreature, target, source, game)) {
Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) {
return permanent.turnFaceUp(source, game, source.getControllerId());
}
}
TargetControlledPermanent target = new TargetControlledPermanent(0, 1, filter, true);
Permanent permanent = game.getPermanent(target.getFirstTarget());
return permanent != null && permanent.turnFaceUp(source, game, source.getControllerId());
}
return false;
}
Expand Down

0 comments on commit efed3a3

Please sign in to comment.