mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
[MH2] Implemented Unholy Heat
This commit is contained in:
parent
cff89f6bfc
commit
bcd35b9d46
2 changed files with 43 additions and 0 deletions
42
Mage.Sets/src/mage/cards/u/UnholyHeat.java
Normal file
42
Mage.Sets/src/mage/cards/u/UnholyHeat.java
Normal file
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.u;
|
||||
|
||||
import mage.abilities.condition.common.DeliriumCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.hint.common.CardTypesInGraveyardHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetCreatureOrPlaneswalker;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class UnholyHeat extends CardImpl {
|
||||
|
||||
public UnholyHeat(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{R}");
|
||||
|
||||
// Unholy Heat deals 2 damage to target creature or planeswalker.
|
||||
// Delirium — Unholy Heat deals 6 damage instead if there are four or more card types among cards in your graveyard.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new DamageTargetEffect(6), new DamageTargetEffect(2),
|
||||
DeliriumCondition.instance, "{this} deals 2 damage to target creature " +
|
||||
"or planeswalker.<br><i>Delirium</i> — {this} deals 6 damage instead " +
|
||||
"if there are four or more card types among cards in your graveyard."
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
|
||||
this.getSpellAbility().addHint(CardTypesInGraveyardHint.YOU);
|
||||
}
|
||||
|
||||
private UnholyHeat(final UnholyHeat card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UnholyHeat copy() {
|
||||
return new UnholyHeat(this);
|
||||
}
|
||||
}
|
|
@ -249,6 +249,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Tormod's Cryptkeeper", 239, Rarity.COMMON, mage.cards.t.TormodsCryptkeeper.class));
|
||||
cards.add(new SetCardInfo("Tourach's Canticle", 103, Rarity.COMMON, mage.cards.t.TourachsCanticle.class));
|
||||
cards.add(new SetCardInfo("Underworld Hermit", 105, Rarity.UNCOMMON, mage.cards.u.UnderworldHermit.class));
|
||||
cards.add(new SetCardInfo("Unholy Heat", 145, Rarity.COMMON, mage.cards.u.UnholyHeat.class));
|
||||
cards.add(new SetCardInfo("Unmarked Grave", 106, Rarity.RARE, mage.cards.u.UnmarkedGrave.class));
|
||||
cards.add(new SetCardInfo("Upheaval", 270, Rarity.RARE, mage.cards.u.Upheaval.class));
|
||||
cards.add(new SetCardInfo("Urban Daggertooth", 181, Rarity.COMMON, mage.cards.u.UrbanDaggertooth.class));
|
||||
|
|
Loading…
Reference in a new issue