* Hidden Strings - Simpified Tap/Untap effect only asking for the possible effect.

This commit is contained in:
LevelX2 2014-05-22 16:51:51 +02:00
parent a0da39e5b5
commit 8dd29c6fe7

View file

@ -98,10 +98,14 @@ class HiddenStringsEffect extends OneShotEffect<HiddenStringsEffect> {
for (UUID targetId : source.getTargets().get(0).getTargets()) {
Permanent permanent = game.getPermanent(targetId);
if (permanent != null) {
if (player.chooseUse(Outcome.Tap, new StringBuilder("Tap ").append(permanent.getName()).append("?").toString(), game)) {
permanent.tap(game);
} else if (player.chooseUse(Outcome.Untap, new StringBuilder("Untap ").append(permanent.getName()).append("?").toString(), game)) {
permanent.untap(game);
if (permanent.isTapped()) {
if (player.chooseUse(Outcome.Untap, new StringBuilder("Untap ").append(permanent.getName()).append("?").toString(), game)) {
permanent.untap(game);
}
} else {
if (player.chooseUse(Outcome.Tap, new StringBuilder("Tap ").append(permanent.getName()).append("?").toString(), game)) {
permanent.tap(game);
}
}
}
}