mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Hidden Strings - Simpified Tap/Untap effect only asking for the possible effect.
This commit is contained in:
parent
a0da39e5b5
commit
8dd29c6fe7
1 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue