forked from External/mage
[DSC] Implement Deluge of Doom
This commit is contained in:
parent
9b308adf02
commit
6a5210afb3
2 changed files with 40 additions and 0 deletions
39
Mage.Sets/src/mage/cards/d/DelugeOfDoom.java
Normal file
39
Mage.Sets/src/mage/cards/d/DelugeOfDoom.java
Normal file
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue