Restore scry effect

This commit is contained in:
arcox 2020-06-26 01:44:12 -04:00
parent 7632cb417c
commit c03d0f07d6

View file

@ -3,6 +3,7 @@ package mage.cards.t;
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.keyword.ScryEffect;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
@ -23,6 +24,7 @@ public final class TrackDown extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}");
// Scry 3, then reveal the top card of your library. If it's a creature or land card, draw a card.
this.getSpellAbility().addEffect(new ScryEffect(3).setText("Scry 3,"));
this.getSpellAbility().addEffect(new TrackDownEffect());
}
@ -40,7 +42,7 @@ class TrackDownEffect extends OneShotEffect {
public TrackDownEffect() {
super(Outcome.DrawCard);
this.staticText = "Scry 3, then reveal the top card of your library. If it's a creature or land card, draw a card";
this.staticText = "then reveal the top card of your library. If it's a creature or land card, draw a card";
}
public TrackDownEffect(final TrackDownEffect effect) {
@ -65,8 +67,6 @@ class TrackDownEffect extends OneShotEffect {
return false;
}
controller.scry(3, source, game);
Card card = controller.getLibrary().getFromTop(game);
if (card == null) {
return false;