This commit is contained in:
jeffwadsworth 2020-02-19 17:34:20 -06:00
parent f6079c4fd6
commit b59c8b663d

View file

@ -27,6 +27,7 @@ import mage.players.Player;
import mage.target.TargetPermanent; import mage.target.TargetPermanent;
import java.util.UUID; import java.util.UUID;
import mage.game.permanent.PermanentToken;
/** /**
* @author TheElk801 * @author TheElk801
@ -62,7 +63,8 @@ public final class AthreosShroudVeiled extends CardImpl {
ability.addTarget(new TargetPermanent(filter)); ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability); this.addAbility(ability);
// Whenever a creature with a coin counter on it dies or is put into exile, return that card to the battlefield under your control. // Whenever a creature with a coin counter on it dies or is put into exile,
// return that card to the battlefield under your control.
this.addAbility(new AthreosShroudVeiledTriggeredAbility()); this.addAbility(new AthreosShroudVeiledTriggeredAbility());
} }
@ -118,8 +120,8 @@ class AthreosShroudVeiledTriggeredAbility extends TriggeredAbilityImpl {
@Override @Override
public String getRule() { public String getRule() {
return "Whenever a creature with a coin counter on it dies or is put into exile, " + return "Whenever a creature with a coin counter on it dies or is put into exile, "
"return that card to the battlefield under your control."; + "return that card to the battlefield under your control.";
} }
} }
@ -149,7 +151,8 @@ class AthreosShroudVeiledEffect extends OneShotEffect {
return false; return false;
} }
Card card = game.getCard(mor.getSourceId()); Card card = game.getCard(mor.getSourceId());
return card.getZoneChangeCounter(game) - 1 == mor.getZoneChangeCounter() return card != null
&& card.getZoneChangeCounter(game) - 1 == mor.getZoneChangeCounter()
&& player.moveCards(card, Zone.BATTLEFIELD, source, game); && player.moveCards(card, Zone.BATTLEFIELD, source, game);
} }
} }