[VOW] Implemented Alchemist's Retrieval

This commit is contained in:
Evan Kranzler 2021-11-05 19:19:07 -04:00
parent a892028b28
commit a931a4dd81
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mage.cards.a;
import mage.abilities.Ability;
import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.abilities.keyword.CleaveAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.TargetController;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterNonlandPermanent;
import mage.target.TargetPermanent;
import mage.target.common.TargetNonlandPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class AlchemistsRetrieval extends CardImpl {
private static final FilterPermanent filter = new FilterNonlandPermanent("nonland permanent [you control]");
static {
filter.add(TargetController.YOU.getControllerPredicate());
}
public AlchemistsRetrieval(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}");
// Cleave {1}{U}
Ability ability = new CleaveAbility(this, new ReturnToHandTargetEffect(), "{1}{U}");
ability.addTarget(new TargetNonlandPermanent());
this.addAbility(ability);
// Return target nonland permanent [you control] to its owner's hand.
this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
this.getSpellAbility().addTarget(new TargetPermanent(filter));
}
private AlchemistsRetrieval(final AlchemistsRetrieval card) {
super(card);
}
@Override
public AlchemistsRetrieval copy() {
return new AlchemistsRetrieval(this);
}
}

View file

@ -34,6 +34,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
cards.add(new SetCardInfo("Abrade", 139, Rarity.COMMON, mage.cards.a.Abrade.class));
cards.add(new SetCardInfo("Adamant Will", 1, Rarity.COMMON, mage.cards.a.AdamantWill.class));
cards.add(new SetCardInfo("Aim for the Head", 92, Rarity.COMMON, mage.cards.a.AimForTheHead.class));
cards.add(new SetCardInfo("Alchemist's Retrieval", 47, Rarity.COMMON, mage.cards.a.AlchemistsRetrieval.class));
cards.add(new SetCardInfo("Ancestor's Embrace", 22, Rarity.COMMON, mage.cards.a.AncestorsEmbrace.class));
cards.add(new SetCardInfo("Ancient Lumberknot", 230, Rarity.UNCOMMON, mage.cards.a.AncientLumberknot.class));
cards.add(new SetCardInfo("Angelic Quartermaster", 2, Rarity.UNCOMMON, mage.cards.a.AngelicQuartermaster.class));