forked from External/mage
36 lines
1 KiB
Java
36 lines
1 KiB
Java
|
|
package mage.cards.s;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
|
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.target.common.TargetCreaturePermanent;
|
|
|
|
/**
|
|
*
|
|
* @author nigelzor
|
|
*/
|
|
public final class SymbolOfUnsummoning extends CardImpl {
|
|
|
|
public SymbolOfUnsummoning(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{U}");
|
|
|
|
// Return target creature to its owner's hand.
|
|
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
|
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
|
|
// Draw a card.
|
|
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
|
|
}
|
|
|
|
public SymbolOfUnsummoning(final SymbolOfUnsummoning card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public SymbolOfUnsummoning copy() {
|
|
return new SymbolOfUnsummoning(this);
|
|
}
|
|
}
|