From 2349982fd1c99ef17c004eb150b47af4884ad36a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 17 Jan 2021 10:02:08 -0500 Subject: [PATCH] [KHM] Implemented Demon Bolt --- Mage.Sets/src/mage/cards/d/DemonBolt.java | 36 +++++++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + Utils/mtg-cards-data.txt | 2 +- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/d/DemonBolt.java diff --git a/Mage.Sets/src/mage/cards/d/DemonBolt.java b/Mage.Sets/src/mage/cards/d/DemonBolt.java new file mode 100644 index 0000000000..6a6d1153bc --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DemonBolt.java @@ -0,0 +1,36 @@ +package mage.cards.d; + +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.keyword.ForetellAbility; +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 DemonBolt extends CardImpl { + + public DemonBolt(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}"); + + // Demon Bolt deals 4 damage to target creature or planeswalker. + this.getSpellAbility().addEffect(new DamageTargetEffect(4)); + this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker()); + + // Foretell {R} + this.addAbility(new ForetellAbility(this, "{R}")); + } + + private DemonBolt(final DemonBolt card) { + super(card); + } + + @Override + public DemonBolt copy() { + return new DemonBolt(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index 3417d3f8e8..59c2de36c2 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -108,6 +108,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Cyclone Summoner", 52, Rarity.RARE, mage.cards.c.CycloneSummoner.class)); cards.add(new SetCardInfo("Darkbore Pathway", 254, Rarity.RARE, mage.cards.d.DarkborePathway.class)); cards.add(new SetCardInfo("Deathknell Berserker", 83, Rarity.COMMON, mage.cards.d.DeathknellBerserker.class)); + cards.add(new SetCardInfo("Demon Bolt", 129, Rarity.COMMON, mage.cards.d.DemonBolt.class)); cards.add(new SetCardInfo("Disdainful Stroke", 54, Rarity.COMMON, mage.cards.d.DisdainfulStroke.class)); cards.add(new SetCardInfo("Divine Gambit", 8, Rarity.UNCOMMON, mage.cards.d.DivineGambit.class)); cards.add(new SetCardInfo("Dogged Pursuit", 85, Rarity.COMMON, mage.cards.d.DoggedPursuit.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 205426d57b..00e1a8df10 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -40121,7 +40121,7 @@ Breakneck Berserker|Kaldheim|124|C|{2}{R}|Creature - Dwarf Berserker|3|2|Haste| Calamity Bearer|Kaldheim|125|R|{2}{R}{R}|Creature - Giant Berserker|3|4|If a Giant source you control would deal damage to a permanent or player, it deals double that damage to that permanent or player instead.| Cinderheart Giant|Kaldheim|126|C|{5}{R}{R}|Creature - Giant Berserker|7|6|Trample$When Cinderheart Giant dies, it deals 7 damage to a creature an opponent controls chosen at random.| Crush the Weak|Kaldheim|128|U|{2}{R}|Sorcery|||Crush the Weak deals 2 damage to each creature. If a creature dealt damage this way would die this turn, exile it instead.$Foretell {R}| -Demom Bolt|Kaldheim|129|C|{2}{R}|Instant|||Demom Bolt deals 4 damage to target creature or planeswalker.$Foretell {R}| +Demon Bolt|Kaldheim|129|C|{2}{R}|Instant|||Demon Bolt deals 4 damage to target creature or planeswalker.$Foretell {R}| Doomskar Titan|Kaldheim|130|U|{4}{R}{R}|Creature - Giant Berserker|4|4|When Doomskar Titan enters the battlefield, creatures you control get +1/+0 and gain haste until end of turn.$Foretell {4}{R}| Dual Strike|Kaldheim|132|U|{R}{R}|Instant|||When you cast your next instant or sorcery spell with converted mana cost 4 or less this turn, copy that spell. You may choose new targets for the copy.$Foretell {R}| Dwarven Reinforcements|Kaldheim|134|C|{3}{R}|Sorcery|||Create two 2/1 red Dwarf Berserker creature tokens.$Foretell {1}{R}|