[WOE] Implement Beluna's Gatekeeper

This commit is contained in:
theelk801 2023-08-24 18:22:18 -04:00
parent 719f44bbcb
commit 862eb85264
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,53 @@
package mage.cards.b;
import mage.MageInt;
import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.cards.AdventureCard;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.constants.SubType;
import mage.constants.TargetController;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.ManaValuePredicate;
import mage.target.TargetPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class BelunasGatekeeper extends AdventureCard {
private static final FilterPermanent filter
= new FilterCreaturePermanent("creature you don't control with mana value 3 or less");
static {
filter.add(TargetController.NOT_YOU.getControllerPredicate());
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 4));
}
public BelunasGatekeeper(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.SORCERY}, "{5}{U}", "Entry Denied", "{1}{U}");
this.subtype.add(SubType.GIANT);
this.subtype.add(SubType.SOLDIER);
this.power = new MageInt(6);
this.toughness = new MageInt(5);
// Entry Denied
// Return target creature you don't control with mana value 3 or less to its owner's hand.
this.getSpellCard().getSpellAbility().addEffect(new ReturnToHandTargetEffect());
this.getSpellCard().getSpellAbility().addTarget(new TargetPermanent(filter));
}
private BelunasGatekeeper(final BelunasGatekeeper card) {
super(card);
}
@Override
public BelunasGatekeeper copy() {
return new BelunasGatekeeper(this);
}
}

View file

@ -35,6 +35,7 @@ public final class WildsOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Belligerent of the Ball", 120, Rarity.UNCOMMON, mage.cards.b.BelligerentOfTheBall.class));
cards.add(new SetCardInfo("Bellowing Bruiser", 121, Rarity.COMMON, mage.cards.b.BellowingBruiser.class));
cards.add(new SetCardInfo("Beluna Grandsquall", 220, Rarity.MYTHIC, mage.cards.b.BelunaGrandsquall.class));
cards.add(new SetCardInfo("Beluna's Gatekeeper", 43, Rarity.COMMON, mage.cards.b.BelunasGatekeeper.class));
cards.add(new SetCardInfo("Beseech the Mirror", 82, Rarity.MYTHIC, mage.cards.b.BeseechTheMirror.class));
cards.add(new SetCardInfo("Besotted Knight", 4, Rarity.COMMON, mage.cards.b.BesottedKnight.class));
cards.add(new SetCardInfo("Bestial Bloodline", 162, Rarity.COMMON, mage.cards.b.BestialBloodline.class));