From afcd6e1ae6940de918794951252658a81016cb19 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Sat, 5 Feb 2022 10:01:12 -0600 Subject: [PATCH] [NEO] Implemented Ambitious Assault --- .../src/mage/cards/a/AmbitiousAssault.java | 51 +++++++++++++++++++ .../src/mage/sets/KamigawaNeonDynasty.java | 1 + 2 files changed, 52 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AmbitiousAssault.java diff --git a/Mage.Sets/src/mage/cards/a/AmbitiousAssault.java b/Mage.Sets/src/mage/cards/a/AmbitiousAssault.java new file mode 100644 index 0000000000..1992c9fd79 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AmbitiousAssault.java @@ -0,0 +1,51 @@ +package mage.cards.a; + +import java.util.UUID; + +import mage.abilities.condition.Condition; +import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.hint.ConditionHint; +import mage.abilities.hint.Hint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.permanent.ModifiedPredicate; + +/** + * + * @author weirddan455 + */ +public final class AmbitiousAssault extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("you control a modified creature"); + + static { + filter.add(ModifiedPredicate.instance); + } + + private static final Condition condition = new PermanentsOnTheBattlefieldCondition(filter); + private static final Hint hint = new ConditionHint(condition); + + public AmbitiousAssault(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}"); + + // Creatures you control get +2/+0 until end of turn. If you control a modified creature, draw a card. + this.getSpellAbility().addEffect(new BoostControlledEffect(2, 0, Duration.EndOfTurn)); + this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new DrawCardSourceControllerEffect(1), condition)); + this.getSpellAbility().addHint(hint); + } + + private AmbitiousAssault(final AmbitiousAssault card) { + super(card); + } + + @Override + public AmbitiousAssault copy() { + return new AmbitiousAssault(this); + } +} diff --git a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java index a50af60a38..00b2e5b035 100644 --- a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java +++ b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java @@ -29,6 +29,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet { cards.add(new SetCardInfo("Akki Ember-Keeper", 130, Rarity.COMMON, mage.cards.a.AkkiEmberKeeper.class)); cards.add(new SetCardInfo("Akki Ronin", 131, Rarity.COMMON, mage.cards.a.AkkiRonin.class)); cards.add(new SetCardInfo("Akki War Paint", 132, Rarity.COMMON, mage.cards.a.AkkiWarPaint.class)); + cards.add(new SetCardInfo("Ambitious Assault", 133, Rarity.COMMON, mage.cards.a.AmbitiousAssault.class)); cards.add(new SetCardInfo("Ancestral Katana", 1, Rarity.COMMON, mage.cards.a.AncestralKatana.class)); cards.add(new SetCardInfo("Anchor to Reality", 45, Rarity.UNCOMMON, mage.cards.a.AnchorToReality.class)); cards.add(new SetCardInfo("Animus of Night's Reach", 109, Rarity.UNCOMMON, mage.cards.a.AnimusOfNightsReach.class));