diff --git a/Mage.Sets/src/mage/cards/d/DelugeOfDoom.java b/Mage.Sets/src/mage/cards/d/DelugeOfDoom.java new file mode 100644 index 00000000000..a8cf96890c3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DelugeOfDoom.java @@ -0,0 +1,39 @@ +package mage.cards.d; + +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.CardTypesInGraveyardCount; +import mage.abilities.dynamicvalue.common.SignInversionDynamicValue; +import mage.abilities.effects.common.continuous.BoostAllEffect; +import mage.abilities.hint.common.CardTypesInGraveyardHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DelugeOfDoom extends CardImpl { + + private static final DynamicValue xValue = new SignInversionDynamicValue(CardTypesInGraveyardCount.YOU); + + public DelugeOfDoom(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}"); + + // All creatures get -X/-X until end of turn, where X is the number of card types among cards in your graveyard. + this.getSpellAbility().addEffect(new BoostAllEffect(xValue, xValue, Duration.EndOfTurn) + .setText("all creatures get -X/-X until end of turn, where X is the number of card types among cards in your graveyard")); + this.getSpellAbility().addHint(CardTypesInGraveyardHint.YOU); + } + + private DelugeOfDoom(final DelugeOfDoom card) { + super(card); + } + + @Override + public DelugeOfDoom copy() { + return new DelugeOfDoom(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorrorCommander.java b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorrorCommander.java index d9dd4655865..c569f356e27 100644 --- a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorrorCommander.java +++ b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorrorCommander.java @@ -62,6 +62,7 @@ public final class DuskmournHouseOfHorrorCommander extends ExpansionSet { cards.add(new SetCardInfo("Damn", 369, Rarity.MYTHIC, mage.cards.d.Damn.class)); cards.add(new SetCardInfo("Deathmist Raptor", 176, Rarity.MYTHIC, mage.cards.d.DeathmistRaptor.class)); cards.add(new SetCardInfo("Deathreap Ritual", 86, Rarity.UNCOMMON, mage.cards.d.DeathreapRitual.class)); + cards.add(new SetCardInfo("Deluge of Doom", 18, Rarity.RARE, mage.cards.d.DelugeOfDoom.class)); cards.add(new SetCardInfo("Demolisher Spawn", 31, Rarity.RARE, mage.cards.d.DemolisherSpawn.class)); cards.add(new SetCardInfo("Demon of Fate's Design", 137, Rarity.RARE, mage.cards.d.DemonOfFatesDesign.class)); cards.add(new SetCardInfo("Diabolic Vision", 87, Rarity.UNCOMMON, mage.cards.d.DiabolicVision.class));