mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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;
|
||||
|
||||
import mage.abilities.condition.common.AddendumCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
|
@ -16,15 +19,15 @@ public final class ArrestersAdmonition extends CardImpl {
|
|||
public ArrestersAdmonition(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
|
||||
|
||||
|
||||
// Return target creature to its owner's hand.
|
||||
this.getSpellAbility().addEffect(new ReturnToHandTargetPermanentEffect());
|
||||
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// Addendum — If you cast this spell during your main phase, draw a card.
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1)
|
||||
.setText("<br><i>Addendum</i> — If you cast this spell during your main phase, draw a card.")
|
||||
);
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue