mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
[MH2] Implemented Road // Ruin
This commit is contained in:
parent
e1d462e180
commit
ce3f69c5d9
2 changed files with 55 additions and 0 deletions
54
Mage.Sets/src/mage/cards/r/RoadRuin.java
Normal file
54
Mage.Sets/src/mage/cards/r/RoadRuin.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue