implement [MH3] Razorgrass Ambush // Razorgrass Field

This commit is contained in:
Susucre 2024-05-25 14:51:08 +02:00
parent 909a595635
commit f73ff133c7
2 changed files with 58 additions and 0 deletions

View file

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

View file

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