From 4a854f7fc17ff1da95faf698f9b3d0ea415dfd42 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 5 Feb 2022 01:16:29 -0500 Subject: [PATCH] [NEC] Implemented Myojin of Roaring Blades --- .../mage/cards/m/MyojinOfRoaringBlades.java | 59 +++++++++++++++++++ .../src/mage/sets/NeonDynastyCommander.java | 1 + 2 files changed, 60 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MyojinOfRoaringBlades.java diff --git a/Mage.Sets/src/mage/cards/m/MyojinOfRoaringBlades.java b/Mage.Sets/src/mage/cards/m/MyojinOfRoaringBlades.java new file mode 100644 index 0000000000..27e2fe9159 --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MyojinOfRoaringBlades.java @@ -0,0 +1,59 @@ +package mage.cards.m; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.condition.common.CastFromHandSourcePermanentCondition; +import mage.abilities.costs.common.RemoveCountersSourceCost; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.counters.CounterType; +import mage.target.common.TargetAnyTarget; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class MyojinOfRoaringBlades extends CardImpl { + + public MyojinOfRoaringBlades(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{R}{R}{R}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.SPIRIT); + this.power = new MageInt(7); + this.toughness = new MageInt(4); + + // Myojin of Roaring Blades enters the battlefield with an indestructible counter on it if you cast it from your hand. + this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect( + new AddCountersSourceEffect(CounterType.INDESTRUCTIBLE.createInstance()), + CastFromHandSourcePermanentCondition.instance, "" + ), "{this} enters the battlefield with an indestructible counter on it if you cast it from your hand")); + + // Remove an indestructible counter from Myojin of Roaring Blades: It deals 7 damage to each of up to three targets. + Ability ability = new SimpleActivatedAbility( + new DamageTargetEffect(7) + .setText("it deals 7 damage to each of up to three targets"), + new RemoveCountersSourceCost(CounterType.INDESTRUCTIBLE.createInstance()) + ); + ability.addTarget(new TargetAnyTarget(0, 3)); + this.addAbility(ability); + } + + private MyojinOfRoaringBlades(final MyojinOfRoaringBlades card) { + super(card); + } + + @Override + public MyojinOfRoaringBlades copy() { + return new MyojinOfRoaringBlades(this); + } +} diff --git a/Mage.Sets/src/mage/sets/NeonDynastyCommander.java b/Mage.Sets/src/mage/sets/NeonDynastyCommander.java index bd05e55dba..da76c0f6b2 100644 --- a/Mage.Sets/src/mage/sets/NeonDynastyCommander.java +++ b/Mage.Sets/src/mage/sets/NeonDynastyCommander.java @@ -21,5 +21,6 @@ public final class NeonDynastyCommander extends ExpansionSet { cards.add(new SetCardInfo("Chishiro, the Shattered Blade", 1, Rarity.MYTHIC, mage.cards.c.ChishiroTheShatteredBlade.class)); cards.add(new SetCardInfo("Kotori, Pilot Prodigy", 2, Rarity.MYTHIC, mage.cards.k.KotoriPilotProdigy.class)); + cards.add(new SetCardInfo("Myojin of Roaring Blades", 36, Rarity.RARE, mage.cards.m.MyojinOfRoaringBlades.class)); } }