Implemented Chandra's Flame Wave

This commit is contained in:
Evan Kranzler 2019-06-26 07:46:10 -04:00
parent deed6cb76a
commit 53f3b133e6
2 changed files with 50 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));