From 7f9abee1a34bc56e7028d83198c49f9f50232ec2 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 26 May 2025 10:37:14 -0400 Subject: [PATCH] [FIN] Implement Battle Menu --- Mage.Sets/src/mage/cards/b/BattleMenu.java | 62 ++++++++++++++++++++++ Mage.Sets/src/mage/sets/FinalFantasy.java | 1 + 2 files changed, 63 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BattleMenu.java diff --git a/Mage.Sets/src/mage/cards/b/BattleMenu.java b/Mage.Sets/src/mage/cards/b/BattleMenu.java new file mode 100644 index 00000000000..16649937a09 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BattleMenu.java @@ -0,0 +1,62 @@ +package mage.cards.b; + +import mage.abilities.Mode; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.PowerPredicate; +import mage.game.permanent.token.WaylayToken; +import mage.target.TargetPermanent; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BattleMenu extends CardImpl { + + private static final FilterPermanent filter = new FilterCreaturePermanent("creature with power 4 or greater"); + + static { + filter.add(new PowerPredicate(ComparisonType.MORE_THAN, 3)); + } + + public BattleMenu(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}"); + + // Choose one -- + // * Attack -- Create a 2/2 white Knight creature token. + this.getSpellAbility().addEffect(new CreateTokenEffect(new WaylayToken())); + this.getSpellAbility().withFirstModeFlavorWord("Attack"); + + // * Ability -- Target creature gets +0/+4 until end of turn. + this.getSpellAbility().addMode(new Mode(new BoostTargetEffect(0, 4)) + .addTarget(new TargetCreaturePermanent()) + .withFlavorWord("Ability")); + + // * Magic -- Destroy target creature with power 4 or greater. + this.getSpellAbility().addMode(new Mode(new DestroyTargetEffect()) + .addTarget(new TargetPermanent(filter)) + .withFlavorWord("Magic")); + + // * Item -- You gain 4 life. + this.getSpellAbility().addMode(new Mode(new GainLifeEffect(4)).withFlavorWord("Item")); + } + + private BattleMenu(final BattleMenu card) { + super(card); + } + + @Override + public BattleMenu copy() { + return new BattleMenu(this); + } +} diff --git a/Mage.Sets/src/mage/sets/FinalFantasy.java b/Mage.Sets/src/mage/sets/FinalFantasy.java index b3b5ac47152..f96deb105db 100644 --- a/Mage.Sets/src/mage/sets/FinalFantasy.java +++ b/Mage.Sets/src/mage/sets/FinalFantasy.java @@ -64,6 +64,7 @@ public final class FinalFantasy extends ExpansionSet { cards.add(new SetCardInfo("Barret Wallace", 584, Rarity.UNCOMMON, mage.cards.b.BarretWallace.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Bartz and Boko", 175, Rarity.RARE, mage.cards.b.BartzAndBoko.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Bartz and Boko", 469, Rarity.RARE, mage.cards.b.BartzAndBoko.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Battle Menu", 9, Rarity.UNCOMMON, mage.cards.b.BattleMenu.class)); cards.add(new SetCardInfo("Beatrix, Loyal General", 426, Rarity.RARE, mage.cards.b.BeatrixLoyalGeneral.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Beatrix, Loyal General", 554, Rarity.RARE, mage.cards.b.BeatrixLoyalGeneral.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Black Mage's Rod", 90, Rarity.COMMON, mage.cards.b.BlackMagesRod.class));