mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
- Fixed #6289
This commit is contained in:
parent
f6079c4fd6
commit
b59c8b663d
1 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue