forked from External/mage
37 lines
967 B
Java
37 lines
967 B
Java
|
|
package mage.cards.c;
|
|
|
|
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.TargetCardInGraveyard;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author Loki
|
|
*/
|
|
public final class Cremate extends CardImpl {
|
|
|
|
public Cremate(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{B}");
|
|
|
|
// Exile target card from a graveyard.
|
|
this.getSpellAbility().addEffect(new ExileTargetEffect());
|
|
this.getSpellAbility().addTarget(new TargetCardInGraveyard());
|
|
|
|
// Draw a card.
|
|
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
|
|
}
|
|
|
|
public Cremate(final Cremate card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public Cremate copy() {
|
|
return new Cremate(this);
|
|
}
|
|
}
|