foul-magics/Mage.Sets/src/mage/cards/s/SecondThoughts.java
2018-06-02 17:59:49 +02:00

37 lines
1,013 B
Java

package mage.cards.s;
import java.util.UUID;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.ExileTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.common.TargetAttackingCreature;
/**
*
* @author cbt33
*/
public final class SecondThoughts extends CardImpl {
public SecondThoughts(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{4}{W}");
// Exile target attacking creature.
this.getSpellAbility().addEffect(new ExileTargetEffect());
this.getSpellAbility().addTarget(new TargetAttackingCreature());
// Draw a card.
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}
public SecondThoughts(final SecondThoughts card) {
super(card);
}
@Override
public SecondThoughts copy() {
return new SecondThoughts(this);
}
}