diff --git a/Mage.Sets/src/mage/cards/p/PinkHorror.java b/Mage.Sets/src/mage/cards/p/PinkHorror.java new file mode 100644 index 00000000000..4f219548b8f --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PinkHorror.java @@ -0,0 +1,54 @@ +package mage.cards.p; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.game.permanent.token.BlueHorrorToken; +import mage.target.common.TargetAnyTarget; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PinkHorror extends CardImpl { + + public PinkHorror(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{R}"); + + this.subtype.add(SubType.DEMON); + this.subtype.add(SubType.HORROR); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + // Coruscating Flames -- Whenever you cast an instant or sorcery spell, Pink Horror deals 2 damage to any target. + Ability ability = new SpellCastControllerTriggeredAbility( + new DamageTargetEffect(2), + StaticFilters.FILTER_SPELL_AN_INSTANT_OR_SORCERY, false + ); + ability.addTarget(new TargetAnyTarget()); + this.addAbility(ability.withFlavorWord("Coruscating Flames")); + + // Split -- When Pink Horror dies, create two 2/2 blue and red Demon Horror creature tokens named Blue Horror with "Whenever you cast an instant or sorcery spell, this creature deals 1 damage to any target." + this.addAbility(new DiesSourceTriggeredAbility( + new CreateTokenEffect(new BlueHorrorToken(), 2) + ).withFlavorWord("Split")); + } + + private PinkHorror(final PinkHorror card) { + super(card); + } + + @Override + public PinkHorror copy() { + return new PinkHorror(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Warhammer40000.java b/Mage.Sets/src/mage/sets/Warhammer40000.java index 805c0a429d3..baa011c7a2b 100644 --- a/Mage.Sets/src/mage/sets/Warhammer40000.java +++ b/Mage.Sets/src/mage/sets/Warhammer40000.java @@ -181,6 +181,7 @@ public final class Warhammer40000 extends ExpansionSet { cards.add(new SetCardInfo("Overgrowth", 219, Rarity.COMMON, mage.cards.o.Overgrowth.class)); cards.add(new SetCardInfo("Past in Flames", 206, Rarity.MYTHIC, mage.cards.p.PastInFlames.class)); cards.add(new SetCardInfo("Path of Ancestry", 287, Rarity.COMMON, mage.cards.p.PathOfAncestry.class)); + cards.add(new SetCardInfo("Pink Horror", 136, Rarity.RARE, mage.cards.p.PinkHorror.class)); cards.add(new SetCardInfo("Plains", 306, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Plasmancer", 48, Rarity.UNCOMMON, mage.cards.p.Plasmancer.class)); cards.add(new SetCardInfo("Polluted Mire", 288, Rarity.COMMON, mage.cards.p.PollutedMire.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/BlueHorrorToken.java b/Mage/src/main/java/mage/game/permanent/token/BlueHorrorToken.java new file mode 100644 index 00000000000..b202518d8ec --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/BlueHorrorToken.java @@ -0,0 +1,41 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.target.common.TargetAnyTarget; + +/** + * @author TheElk801 + */ +public final class BlueHorrorToken extends TokenImpl { + + public BlueHorrorToken() { + super("Blue Horror", "2/2 blue and red Demon Horror creature token named Blue Horror. It has \"Whenever you cast an instant or sorcery spell, this creature deals 1 damage to any target.\""); + cardType.add(CardType.CREATURE); + color.setBlue(true); + color.setRed(true); + subtype.add(SubType.DEMON); + subtype.add(SubType.HORROR); + power = new MageInt(2); + toughness = new MageInt(2); + Ability ability = new SpellCastControllerTriggeredAbility( + new DamageTargetEffect(1, "this creature"), + StaticFilters.FILTER_SPELL_AN_INSTANT_OR_SORCERY, false + ); + ability.addTarget(new TargetAnyTarget()); + this.addAbility(ability); + } + + public BlueHorrorToken(final BlueHorrorToken token) { + super(token); + } + + public BlueHorrorToken copy() { + return new BlueHorrorToken(this); + } +}