mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fixed Arrester's Admonition
This commit is contained in:
parent
1b55cbd44c
commit
0a9adedede
1 changed files with 8 additions and 5 deletions
|
@ -1,6 +1,9 @@
|
||||||
package mage.cards.a;
|
package mage.cards.a;
|
||||||
|
|
||||||
|
import mage.abilities.condition.common.AddendumCondition;
|
||||||
|
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
|
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
@ -16,15 +19,15 @@ public final class ArrestersAdmonition extends CardImpl {
|
||||||
public ArrestersAdmonition(UUID ownerId, CardSetInfo setInfo) {
|
public ArrestersAdmonition(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
|
||||||
|
|
||||||
|
|
||||||
// Return target creature to its owner's hand.
|
// Return target creature to its owner's hand.
|
||||||
this.getSpellAbility().addEffect(new ReturnToHandTargetPermanentEffect());
|
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
|
||||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||||
|
|
||||||
// Addendum — If you cast this spell during your main phase, draw a card.
|
// Addendum — If you cast this spell during your main phase, draw a card.
|
||||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1)
|
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||||
.setText("<br><i>Addendum</i> — If you cast this spell during your main phase, draw a card.")
|
new DrawCardSourceControllerEffect(1), AddendumCondition.instance,
|
||||||
);
|
"<br><i>Addendum</i> — If you cast this spell during your main phase, draw a card."
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
private ArrestersAdmonition(final ArrestersAdmonition card) {
|
private ArrestersAdmonition(final ArrestersAdmonition card) {
|
||||||
|
|
Loading…
Reference in a new issue