forked from External/mage
46 lines
1.3 KiB
Java
46 lines
1.3 KiB
Java
|
|
package mage.cards.s;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
|
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.filter.StaticFilters;
|
|
import mage.target.TargetPermanent;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
*
|
|
* @author Loki
|
|
*/
|
|
public final class SternProctor extends CardImpl {
|
|
|
|
public SternProctor(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{U}{U}");
|
|
this.subtype.add(SubType.HUMAN);
|
|
this.subtype.add(SubType.WIZARD);
|
|
|
|
this.power = new MageInt(1);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// When Stern Proctor enters the battlefield, return target artifact or enchantment to its owner's hand.
|
|
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), false);
|
|
TargetPermanent target = new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT);
|
|
ability.addTarget(target);
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
public SternProctor(final SternProctor card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public SternProctor copy() {
|
|
return new SternProctor(this);
|
|
}
|
|
}
|