From 862eb85264727f50d7a8904d5e1cf29aa3645ebd Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 24 Aug 2023 18:22:18 -0400 Subject: [PATCH] [WOE] Implement Beluna's Gatekeeper --- .../src/mage/cards/b/BelunasGatekeeper.java | 53 +++++++++++++++++++ Mage.Sets/src/mage/sets/WildsOfEldraine.java | 1 + 2 files changed, 54 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BelunasGatekeeper.java diff --git a/Mage.Sets/src/mage/cards/b/BelunasGatekeeper.java b/Mage.Sets/src/mage/cards/b/BelunasGatekeeper.java new file mode 100644 index 00000000000..11d309f2c8f --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BelunasGatekeeper.java @@ -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); + } +} diff --git a/Mage.Sets/src/mage/sets/WildsOfEldraine.java b/Mage.Sets/src/mage/sets/WildsOfEldraine.java index 0ef519fdef6..f548da0e8ab 100644 --- a/Mage.Sets/src/mage/sets/WildsOfEldraine.java +++ b/Mage.Sets/src/mage/sets/WildsOfEldraine.java @@ -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));