[FIN] Implement Battle Menu

This commit is contained in:
theelk801 2025-05-26 10:37:14 -04:00
parent 6fed5da391
commit 7f9abee1a3
2 changed files with 63 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));