From f73ff133c787f013de167a51aaf110f2166cf663 Mon Sep 17 00:00:00 2001 From: Susucre <34709007+Susucre@users.noreply.github.com> Date: Sat, 25 May 2024 14:51:08 +0200 Subject: [PATCH] implement [MH3] Razorgrass Ambush // Razorgrass Field --- .../src/mage/cards/r/RazorgrassAmbush.java | 57 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons3.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RazorgrassAmbush.java diff --git a/Mage.Sets/src/mage/cards/r/RazorgrassAmbush.java b/Mage.Sets/src/mage/cards/r/RazorgrassAmbush.java new file mode 100644 index 00000000000..4893f2df47a --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RazorgrassAmbush.java @@ -0,0 +1,57 @@ +package mage.cards.r; + +import mage.abilities.common.AsEntersBattlefieldAbility; +import mage.abilities.costs.common.PayLifeCost; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.TapSourceUnlessPaysEffect; +import mage.abilities.mana.WhiteManaAbility; +import mage.cards.CardSetInfo; +import mage.cards.ModalDoubleFacedCard; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetAttackingOrBlockingCreature; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class RazorgrassAmbush extends ModalDoubleFacedCard { + + public RazorgrassAmbush(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, + new CardType[]{CardType.INSTANT}, new SubType[]{}, "{1}{W}", + "Razorgrass Field", new CardType[]{CardType.LAND}, new SubType[]{}, "" + ); + + // 1. + // Razorgrass Ambush + // Instant + + // Razorgrass Ambush deals 3 damage to target attacking or blocking creature. + this.getLeftHalfCard().getSpellAbility().addTarget(new TargetAttackingOrBlockingCreature()); + this.getLeftHalfCard().getSpellAbility().addEffect(new DamageTargetEffect(3)); + + // 2. + // Razorgrass Field + // Land + + // As Razorgrass Field enters the battlefield, you may pay 3 life. If you don't, it enters the battlefield tapped. + this.getRightHalfCard().addAbility(new AsEntersBattlefieldAbility( + new TapSourceUnlessPaysEffect(new PayLifeCost(3)), + "you may pay 3 life. If you don't, it enters the battlefield tapped" + )); + + // {T}: Add {W}. + this.getRightHalfCard().addAbility(new WhiteManaAbility()); + } + + private RazorgrassAmbush(final RazorgrassAmbush card) { + super(card); + } + + @Override + public RazorgrassAmbush copy() { + return new RazorgrassAmbush(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons3.java b/Mage.Sets/src/mage/sets/ModernHorizons3.java index a1f74d3af6c..2067442889b 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons3.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons3.java @@ -108,6 +108,7 @@ public final class ModernHorizons3 extends ExpansionSet { cards.add(new SetCardInfo("Psychic Frog", 199, Rarity.RARE, mage.cards.p.PsychicFrog.class)); cards.add(new SetCardInfo("Ral, Leyline Prodigy", 247, Rarity.MYTHIC, mage.cards.r.RalLeylineProdigy.class)); cards.add(new SetCardInfo("Ral, Monsoon Mage", 247, Rarity.MYTHIC, mage.cards.r.RalMonsoonMage.class)); + cards.add(new SetCardInfo("Razorgrass Ambush", 238, Rarity.UNCOMMON, mage.cards.r.RazorgrassAmbush.class)); cards.add(new SetCardInfo("Reckless Pyrosurfer", 133, Rarity.UNCOMMON, mage.cards.r.RecklessPyrosurfer.class)); cards.add(new SetCardInfo("Recruiter of the Guard", 266, Rarity.MYTHIC, mage.cards.r.RecruiterOfTheGuard.class)); cards.add(new SetCardInfo("Reef Worm", 271, Rarity.UNCOMMON, mage.cards.r.ReefWorm.class));