forked from External/mage
33 lines
975 B
Java
33 lines
975 B
Java
package mage.cards.h;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.effects.common.CounterTargetWithReplacementEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.PutCards;
|
|
import mage.target.TargetSpell;
|
|
|
|
/**
|
|
*
|
|
* @author North
|
|
*/
|
|
public final class Hinder extends CardImpl {
|
|
|
|
public Hinder(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{U}{U}");
|
|
|
|
// Counter target spell. If that spell is countered this way, put that card on the top or bottom of its owner's library instead of into that player's graveyard.
|
|
this.getSpellAbility().addEffect(new CounterTargetWithReplacementEffect(PutCards.TOP_OR_BOTTOM));
|
|
this.getSpellAbility().addTarget(new TargetSpell());
|
|
}
|
|
|
|
private Hinder(final Hinder card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public Hinder copy() {
|
|
return new Hinder(this);
|
|
}
|
|
}
|