From b3d69674b680bf66f6bd7238ee650648a67e80dd Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 17 Jun 2019 17:56:05 -0400 Subject: [PATCH] Implemented Kykar, Wind's Fury --- .../src/mage/cards/k/KykarWindsFury.java | 65 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2020.java | 1 + 2 files changed, 66 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/k/KykarWindsFury.java diff --git a/Mage.Sets/src/mage/cards/k/KykarWindsFury.java b/Mage.Sets/src/mage/cards/k/KykarWindsFury.java new file mode 100644 index 0000000000..dd0f84d93e --- /dev/null +++ b/Mage.Sets/src/mage/cards/k/KykarWindsFury.java @@ -0,0 +1,65 @@ +package mage.cards.k; + +import mage.MageInt; +import mage.Mana; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.costs.common.SacrificeTargetCost; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.mana.BasicManaEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.mana.SimpleManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.constants.Zone; +import mage.filter.StaticFilters; +import mage.filter.common.FilterControlledPermanent; +import mage.game.permanent.token.SpiritWhiteToken; +import mage.target.common.TargetControlledPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class KykarWindsFury extends CardImpl { + + private static final FilterControlledPermanent filter + = new FilterControlledPermanent(SubType.SPIRIT, "a Spirit"); + + public KykarWindsFury(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{R}{W}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.BIRD); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Whenever you cast a noncreature spell, create a 1/1 white Spirit creature token with flying. + this.addAbility(new SpellCastControllerTriggeredAbility( + new CreateTokenEffect(new SpiritWhiteToken()), + StaticFilters.FILTER_SPELL_A_NON_CREATURE, false + )); + + // Sacrifice a Spirit: Add {R}. + this.addAbility(new SimpleManaAbility( + Zone.BATTLEFIELD, new BasicManaEffect(Mana.RedMana(1)), + new SacrificeTargetCost(new TargetControlledPermanent(filter)) + )); + } + + private KykarWindsFury(final KykarWindsFury card) { + super(card); + } + + @Override + public KykarWindsFury copy() { + return new KykarWindsFury(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2020.java b/Mage.Sets/src/mage/sets/CoreSet2020.java index 31525a5d62..e287672b86 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2020.java +++ b/Mage.Sets/src/mage/sets/CoreSet2020.java @@ -39,6 +39,7 @@ public final class CoreSet2020 extends ExpansionSet { cards.add(new SetCardInfo("Dread Presence", 96, Rarity.RARE, mage.cards.d.DreadPresence.class)); cards.add(new SetCardInfo("Empyrean Eagle", 208, Rarity.UNCOMMON, mage.cards.e.EmpyreanEagle.class)); cards.add(new SetCardInfo("Infuriate", 145, Rarity.COMMON, mage.cards.i.Infuriate.class)); + cards.add(new SetCardInfo("Kykar, Wind's Fury", 212, Rarity.MYTHIC, mage.cards.k.KykarWindsFury.class)); cards.add(new SetCardInfo("Leyline of Sanctity", 26, Rarity.RARE, mage.cards.l.LeylineOfSanctity.class)); cards.add(new SetCardInfo("Octoprophet", 70, Rarity.COMMON, mage.cards.o.Octoprophet.class)); cards.add(new SetCardInfo("Unsummon", 78, Rarity.COMMON, mage.cards.u.Unsummon.class));