From 53f3b133e6e5e538ba17b015c2885532cc81a13b Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 26 Jun 2019 07:46:10 -0400 Subject: [PATCH] Implemented Chandra's Flame Wave --- .../src/mage/cards/c/ChandrasFlameWave.java | 49 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2020.java | 1 + 2 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/ChandrasFlameWave.java diff --git a/Mage.Sets/src/mage/cards/c/ChandrasFlameWave.java b/Mage.Sets/src/mage/cards/c/ChandrasFlameWave.java new file mode 100644 index 0000000000..e5559e4b0f --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/ChandrasFlameWave.java @@ -0,0 +1,49 @@ +package mage.cards.c; + +import mage.abilities.effects.common.DamageAllControlledTargetEffect; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.search.SearchLibraryGraveyardPutInHandEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.FilterCard; +import mage.filter.StaticFilters; +import mage.filter.predicate.mageobject.NamePredicate; +import mage.target.TargetPlayer; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ChandrasFlameWave extends CardImpl { + + private static final FilterCard filter = new FilterCard("Chandra, Flame's Fury"); + + static { + filter.add(new NamePredicate("Chandra, Flame's Fury")); + } + + public ChandrasFlameWave(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}{R}"); + + // Chandra's Flame Wave deals 2 damage to target player and each creature that player controls. Search your library and/or graveyard for a card named Chandra, Flame's Fury, reveal it, and put it into your hand. If you search your library this way, shuffle it. + this.getSpellAbility().addEffect(new DamageTargetEffect(2)); + this.getSpellAbility().addEffect(new DamageAllControlledTargetEffect( + 2, StaticFilters.FILTER_PERMANENT_CREATURE + ).setText("and each creature that player controls")); + this.getSpellAbility().addEffect( + new SearchLibraryGraveyardPutInHandEffect(filter, false, false) + ); + this.getSpellAbility().addTarget(new TargetPlayer()); + } + + private ChandrasFlameWave(final ChandrasFlameWave card) { + super(card); + } + + @Override + public ChandrasFlameWave copy() { + return new ChandrasFlameWave(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2020.java b/Mage.Sets/src/mage/sets/CoreSet2020.java index 349452e23e..cda1371a3a 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2020.java +++ b/Mage.Sets/src/mage/sets/CoreSet2020.java @@ -87,6 +87,7 @@ public final class CoreSet2020 extends ExpansionSet { cards.add(new SetCardInfo("Centaur Courser", 168, Rarity.COMMON, mage.cards.c.CentaurCourser.class)); cards.add(new SetCardInfo("Cerulean Drake", 53, Rarity.UNCOMMON, mage.cards.c.CeruleanDrake.class)); cards.add(new SetCardInfo("Chandra's Embercat", 129, Rarity.COMMON, mage.cards.c.ChandrasEmbercat.class)); + cards.add(new SetCardInfo("Chandra's Flame Wave", 295, Rarity.RARE, mage.cards.c.ChandrasFlameWave.class)); cards.add(new SetCardInfo("Chandra's Outrage", 130, Rarity.COMMON, mage.cards.c.ChandrasOutrage.class)); cards.add(new SetCardInfo("Chandra's Regulator", 131, Rarity.RARE, mage.cards.c.ChandrasRegulator.class)); cards.add(new SetCardInfo("Chandra's Spitfire", 132, Rarity.UNCOMMON, mage.cards.c.ChandrasSpitfire.class));