diff --git a/Mage.Sets/src/mage/cards/c/CalamitousCaveIn.java b/Mage.Sets/src/mage/cards/c/CalamitousCaveIn.java new file mode 100644 index 00000000000..392090748d2 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CalamitousCaveIn.java @@ -0,0 +1,40 @@ +package mage.cards.c; + +import mage.abilities.dynamicvalue.common.CavesControlledAndInGraveCount; +import mage.abilities.effects.common.DamageAllEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author Susucr + */ +public final class CalamitousCaveIn extends CardImpl { + + public CalamitousCaveIn(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}"); + + // Calamitous Cave-In deals X damage to each creature and each planeswalker, where X is the number of Caves you control plus the number of Cave cards in your graveyard. + this.getSpellAbility().addEffect( + new DamageAllEffect( + CavesControlledAndInGraveCount.WHERE_X, + StaticFilters.FILTER_PERMANENT_CREATURE_OR_PLANESWALKER + ).setText("{this} deals X damage to each creature and each planeswalker, " + + "where X is the number of Caves you control plus the number of " + + "Cave cards in your graveyard") + ); + this.getSpellAbility().addHint(CavesControlledAndInGraveCount.getHint()); + } + + private CalamitousCaveIn(final CalamitousCaveIn card) { + super(card); + } + + @Override + public CalamitousCaveIn copy() { + return new CalamitousCaveIn(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java index bc75d12be41..9112aa160fc 100644 --- a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java +++ b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java @@ -35,6 +35,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet { cards.add(new SetCardInfo("Bonehoard Dracosaur", 134, Rarity.MYTHIC, mage.cards.b.BonehoardDracosaur.class)); cards.add(new SetCardInfo("Breeches, Eager Pillager", 137, Rarity.RARE, mage.cards.b.BreechesEagerPillager.class)); cards.add(new SetCardInfo("Broodrage Mycoid", 95, Rarity.COMMON, mage.cards.b.BroodrageMycoid.class)); + cards.add(new SetCardInfo("Calamitous Cave-In", 139, Rarity.UNCOMMON, mage.cards.c.CalamitousCaveIn.class)); cards.add(new SetCardInfo("Captain Storm, Cosmium Raider", 227, Rarity.UNCOMMON, mage.cards.c.CaptainStormCosmiumRaider.class)); cards.add(new SetCardInfo("Careening Mine Cart", 247, Rarity.UNCOMMON, mage.cards.c.CareeningMineCart.class)); cards.add(new SetCardInfo("Cavern of Souls", 269, Rarity.MYTHIC, mage.cards.c.CavernOfSouls.class));