forked from External/mage
37 lines
1,013 B
Java
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);
|
|
}
|
|
}
|