From c8660cb86c84cb4cdcc5e019666a3ae5403bcb1d Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 5 Feb 2022 11:00:23 -0500 Subject: [PATCH] [NEO] Implemented Kami of Terrible Secrets --- .../mage/cards/k/KamiOfTerribleSecrets.java | 48 +++++++++++++++++++ .../src/mage/sets/KamigawaNeonDynasty.java | 1 + 2 files changed, 49 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/k/KamiOfTerribleSecrets.java diff --git a/Mage.Sets/src/mage/cards/k/KamiOfTerribleSecrets.java b/Mage.Sets/src/mage/cards/k/KamiOfTerribleSecrets.java new file mode 100644 index 0000000000..fc75ec9187 --- /dev/null +++ b/Mage.Sets/src/mage/cards/k/KamiOfTerribleSecrets.java @@ -0,0 +1,48 @@ +package mage.cards.k; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.condition.common.ControlArtifactAndEnchantmentCondition; +import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.hint.common.ControlArtifactAndEnchantmentHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class KamiOfTerribleSecrets extends CardImpl { + + public KamiOfTerribleSecrets(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}"); + + this.subtype.add(SubType.SPIRIT); + this.power = new MageInt(3); + this.toughness = new MageInt(4); + + // When Kami of Terrible Secrets enters the battlefield, if you control an artifact and an enchantment, you draw a card and you gain 1 life. + Ability ability = new ConditionalInterveningIfTriggeredAbility( + new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)), + ControlArtifactAndEnchantmentCondition.instance, "When {this} enters the battlefield, " + + "if you control an artifact and an enchantment, you draw a card and you gain 1 life." + ); + ability.addEffect(new GainLifeEffect(1)); + this.addAbility(ability.addHint(ControlArtifactAndEnchantmentHint.instance)); + } + + private KamiOfTerribleSecrets(final KamiOfTerribleSecrets card) { + super(card); + } + + @Override + public KamiOfTerribleSecrets copy() { + return new KamiOfTerribleSecrets(this); + } +} diff --git a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java index 19e1a5abb9..272b08d45f 100644 --- a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java +++ b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java @@ -124,6 +124,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet { cards.add(new SetCardInfo("Junji, the Midnight Sky", 102, Rarity.MYTHIC, mage.cards.j.JunjiTheMidnightSky.class)); cards.add(new SetCardInfo("Kairi, the Swirling Sky", 60, Rarity.MYTHIC, mage.cards.k.KairiTheSwirlingSky.class)); cards.add(new SetCardInfo("Kaito Shizuki", 226, Rarity.MYTHIC, mage.cards.k.KaitoShizuki.class)); + cards.add(new SetCardInfo("Kami of Terrible Secrets", 105, Rarity.COMMON, mage.cards.k.KamiOfTerribleSecrets.class)); cards.add(new SetCardInfo("Kappa Tech-Wrecker", 198, Rarity.UNCOMMON, mage.cards.k.KappaTechWrecker.class)); cards.add(new SetCardInfo("Kindled Fury", 151, Rarity.COMMON, mage.cards.k.KindledFury.class)); cards.add(new SetCardInfo("Kirin-Touched Orochi", 212, Rarity.RARE, mage.cards.k.KirinTouchedOrochi.class));