From fd02dfc8d6b3798b08b0e1e5e496844d9c1dca79 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 23 May 2019 18:57:28 -0400 Subject: [PATCH] Implemented Pyrophobia --- Mage.Sets/src/mage/cards/p/Pyrophobia.java | 39 +++++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 40 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/Pyrophobia.java diff --git a/Mage.Sets/src/mage/cards/p/Pyrophobia.java b/Mage.Sets/src/mage/cards/p/Pyrophobia.java new file mode 100644 index 0000000000..db9bb0b096 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/Pyrophobia.java @@ -0,0 +1,39 @@ +package mage.cards.p; + +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.combat.CantBlockAllEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.common.FilterCreaturePermanent; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Pyrophobia extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.COWARD, "Cowards"); + + public Pyrophobia(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}"); + + // Pyrophobia deals 3 damage to target creature. Cowards can't block this turn. + this.getSpellAbility().addEffect(new DamageTargetEffect(3)); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + this.getSpellAbility().addEffect(new CantBlockAllEffect(filter, Duration.EndOfTurn)); + } + + private Pyrophobia(final Pyrophobia card) { + super(card); + } + + @Override + public Pyrophobia copy() { + return new Pyrophobia(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 5cf554896a..467229d7ab 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -70,6 +70,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Pondering Mage", 63, Rarity.COMMON, mage.cards.p.PonderingMage.class)); cards.add(new SetCardInfo("Prismatic Vista", 244, Rarity.RARE, mage.cards.p.PrismaticVista.class)); cards.add(new SetCardInfo("Prohibit", 64, Rarity.COMMON, mage.cards.p.Prohibit.class)); + cards.add(new SetCardInfo("Pyrophobia", 141, Rarity.COMMON, mage.cards.p.Pyrophobia.class)); cards.add(new SetCardInfo("Ranger-Captain of Eos", 21, Rarity.MYTHIC, mage.cards.r.RangerCaptainOfEos.class)); cards.add(new SetCardInfo("Ravenous Giant", 143, Rarity.UNCOMMON, mage.cards.r.RavenousGiant.class)); cards.add(new SetCardInfo("Regrowth", 175, Rarity.UNCOMMON, mage.cards.r.Regrowth.class));