mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Reimplemented Rust Tick
This commit is contained in:
parent
9a458ae9f2
commit
11fab4b4e9
1 changed files with 2 additions and 11 deletions
|
|
@ -179,17 +179,8 @@ class RustTickSelfRestrictionEffect extends RestrictionEffect<RustTickSelfRestri
|
|||
|
||||
@Override
|
||||
public boolean canBeUntapped(Permanent permanent, Game game) {
|
||||
Choice abilityChoice = new ChoiceImpl();
|
||||
abilityChoice.setMessage("Untap Rust Tick?");
|
||||
Set<String> abilities = new HashSet<String>();
|
||||
abilities.add("Yes");
|
||||
abilities.add("No");
|
||||
abilityChoice.setChoices(abilities);
|
||||
|
||||
Player playerControls = game.getPlayer(permanent.getControllerId());
|
||||
playerControls.choose(Constants.Outcome.Neutral, abilityChoice, game);
|
||||
|
||||
return abilityChoice.getChoice() != null && abilityChoice.getChoice().equals("Yes");
|
||||
Player player = game.getPlayer(permanent.getControllerId());
|
||||
return player != null && player.chooseUse(Constants.Outcome.Benefit, "Untap Rust Tick?", game);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue