From 5e13502ae0f1fe2f8f4272f574a7886a7fa5b81e Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 11 Sep 2018 08:36:25 -0400 Subject: [PATCH] Implemented Deafening Clarion --- .../src/mage/cards/d/DeafeningClarion.java | 50 +++++++++++++++++++ Mage.Sets/src/mage/sets/GuildsOfRavnica.java | 1 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DeafeningClarion.java diff --git a/Mage.Sets/src/mage/cards/d/DeafeningClarion.java b/Mage.Sets/src/mage/cards/d/DeafeningClarion.java new file mode 100644 index 0000000000..70dbbd52c8 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DeafeningClarion.java @@ -0,0 +1,50 @@ +package mage.cards.d; + +import java.util.UUID; +import mage.abilities.Mode; +import mage.abilities.effects.common.DamageAllEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.LifelinkAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.StaticFilters; + +/** + * + * @author TheElk801 + */ +public final class DeafeningClarion extends CardImpl { + + public DeafeningClarion(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}{W}"); + + // Choose one or both — + this.getSpellAbility().getModes().setMinModes(1); + this.getSpellAbility().getModes().setMaxModes(2); + + // • Deafening Clarion deals 3 damage to each creature. + this.getSpellAbility().addEffect(new DamageAllEffect( + 3, StaticFilters.FILTER_PERMANENT_CREATURE + )); + + // • Creatures you control gain lifelink until end of turn. + Mode mode = new Mode(); + mode.getEffects().add(new GainAbilityControlledEffect( + LifelinkAbility.getInstance(), + Duration.EndOfTurn, + StaticFilters.FILTER_PERMANENT_CREATURES + )); + this.getSpellAbility().addMode(mode); + } + + public DeafeningClarion(final DeafeningClarion card) { + super(card); + } + + @Override + public DeafeningClarion copy() { + return new DeafeningClarion(this); + } +} diff --git a/Mage.Sets/src/mage/sets/GuildsOfRavnica.java b/Mage.Sets/src/mage/sets/GuildsOfRavnica.java index 0fdd130e7d..16df99a469 100644 --- a/Mage.Sets/src/mage/sets/GuildsOfRavnica.java +++ b/Mage.Sets/src/mage/sets/GuildsOfRavnica.java @@ -32,6 +32,7 @@ public final class GuildsOfRavnica extends ExpansionSet { cards.add(new SetCardInfo("Chromatic Lantern", 233, Rarity.RARE, mage.cards.c.ChromaticLantern.class)); cards.add(new SetCardInfo("Conclave Tribunal", 6, Rarity.UNCOMMON, mage.cards.c.ConclaveTribunal.class)); cards.add(new SetCardInfo("Deadly Visit", 68, Rarity.COMMON, mage.cards.d.DeadlyVisit.class)); + cards.add(new SetCardInfo("Deafening Clarion", 165, Rarity.RARE, mage.cards.d.DeafeningClarion.class)); cards.add(new SetCardInfo("Dimir Informant", 36, Rarity.COMMON, mage.cards.d.DimirInformant.class)); cards.add(new SetCardInfo("Direct Current", 96, Rarity.COMMON, mage.cards.d.DirectCurrent.class)); cards.add(new SetCardInfo("Dream Eater", 38, Rarity.MYTHIC, mage.cards.d.DreamEater.class));