From ce3f69c5d96533953e8e819b34f50cee2f296571 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 1 Jun 2021 09:21:04 -0400 Subject: [PATCH] [MH2] Implemented Road // Ruin --- Mage.Sets/src/mage/cards/r/RoadRuin.java | 54 ++++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons2.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RoadRuin.java diff --git a/Mage.Sets/src/mage/cards/r/RoadRuin.java b/Mage.Sets/src/mage/cards/r/RoadRuin.java new file mode 100644 index 0000000000..24c67e0ac3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RoadRuin.java @@ -0,0 +1,54 @@ +package mage.cards.r; + +import mage.abilities.dynamicvalue.common.LandsYouControlCount; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect; +import mage.abilities.hint.common.LandsYouControlHint; +import mage.abilities.keyword.AftermathAbility; +import mage.cards.CardSetInfo; +import mage.cards.SplitCard; +import mage.constants.CardType; +import mage.constants.SpellAbilityType; +import mage.filter.StaticFilters; +import mage.target.common.TargetCardInLibrary; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class RoadRuin extends SplitCard { + public RoadRuin(UUID ownerId, CardSetInfo setInfo) { + super( + ownerId, setInfo, + new CardType[]{CardType.INSTANT}, new CardType[]{CardType.SORCERY}, + "{2}{G}", "{1}{R}{R}", SpellAbilityType.SPLIT_AFTERMATH + ); + + // Road + // Search your library for a basic land card, put it onto the battlefield tapped, then shuffle. + this.getLeftHalfCard().getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect( + new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true + )); + + // Ruin + // Aftermath + this.getRightHalfCard().addAbility(new AftermathAbility().setRuleAtTheTop(true)); + + // Ruin deals damage to target creature equal to the number of lands you control. + this.getRightHalfCard().getSpellAbility().addEffect(new DamageTargetEffect(LandsYouControlCount.instance) + .setText("{this} deals damage to target creature equal to the number of lands you control")); + this.getRightHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent()); + this.getRightHalfCard().getSpellAbility().addHint(LandsYouControlHint.instance); + } + + private RoadRuin(final RoadRuin card) { + super(card); + } + + @Override + public RoadRuin copy() { + return new RoadRuin(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons2.java b/Mage.Sets/src/mage/sets/ModernHorizons2.java index 631a1e1961..aa4f4bdf38 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons2.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons2.java @@ -143,6 +143,7 @@ public final class ModernHorizons2 extends ExpansionSet { cards.add(new SetCardInfo("Rift Sower", 170, Rarity.COMMON, mage.cards.r.RiftSower.class)); cards.add(new SetCardInfo("Riptide Laboratory", 303, Rarity.RARE, mage.cards.r.RiptideLaboratory.class)); cards.add(new SetCardInfo("Rishadan Dockhand", 59, Rarity.RARE, mage.cards.r.RishadanDockhand.class)); + cards.add(new SetCardInfo("Road // Ruin", 212, Rarity.UNCOMMON, mage.cards.r.RoadRuin.class)); cards.add(new SetCardInfo("Rustvale Bridge", 253, Rarity.COMMON, mage.cards.r.RustvaleBridge.class)); cards.add(new SetCardInfo("Sanctuary Raptor", 233, Rarity.UNCOMMON, mage.cards.s.SanctuaryRaptor.class)); cards.add(new SetCardInfo("Sanctum Prelate", 491, Rarity.MYTHIC, mage.cards.s.SanctumPrelate.class));