From 04724e686688f6ed3e9bb440a82b1a684decfab5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 11 Apr 2020 21:20:04 -0400 Subject: [PATCH] Implemented Mythos of Vadrok --- .../src/mage/cards/m/MythosOfVadrok.java | 50 +++++++++++++++++++ .../src/mage/sets/IkoriaLairOfBehemoths.java | 1 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MythosOfVadrok.java diff --git a/Mage.Sets/src/mage/cards/m/MythosOfVadrok.java b/Mage.Sets/src/mage/cards/m/MythosOfVadrok.java new file mode 100644 index 00000000000..ad1850d98f6 --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MythosOfVadrok.java @@ -0,0 +1,50 @@ +package mage.cards.m; + +import mage.abilities.condition.CompoundCondition; +import mage.abilities.condition.Condition; +import mage.abilities.condition.common.ManaWasSpentCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.DamageMultiEffect; +import mage.abilities.effects.common.DetainTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ColoredManaSymbol; +import mage.target.common.TargetCreatureOrPlaneswalkerAmount; +import mage.watchers.common.ManaSpentToCastWatcher; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class MythosOfVadrok extends CardImpl { + + private static final Condition condition = new CompoundCondition( + new ManaWasSpentCondition(ColoredManaSymbol.W), + new ManaWasSpentCondition(ColoredManaSymbol.U) + ); + + public MythosOfVadrok(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{R}{R}"); + + // Mythos of Vadrok deals 5 damage divided as you choose among any number of target creatures and/or planeswalkers. If {W}{U} was spent to cast this spell, until your next turn, those permanents can't attack or block and their activated abilities can't be activated. + this.getSpellAbility().addEffect(new DamageMultiEffect(5)); + this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalkerAmount(5)); + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new DetainTargetEffect(), condition, "If {W}{U} was spent to cast this spell, " + + "until your next turn, those permanents can't attack or block " + + "and their activated abilities can't be activated." + )); + this.getSpellAbility().addWatcher(new ManaSpentToCastWatcher()); + } + + private MythosOfVadrok(final MythosOfVadrok card) { + super(card); + } + + @Override + public MythosOfVadrok copy() { + return new MythosOfVadrok(this); + } +} diff --git a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java index 41ed443ed3e..796b0e7a429 100644 --- a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java +++ b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java @@ -207,6 +207,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet { cards.add(new SetCardInfo("Mythos of Brokkos", 168, Rarity.RARE, mage.cards.m.MythosOfBrokkos.class)); cards.add(new SetCardInfo("Mythos of Illuna", 58, Rarity.RARE, mage.cards.m.MythosOfIlluna.class)); cards.add(new SetCardInfo("Mythos of Nethroi", 97, Rarity.RARE, mage.cards.m.MythosOfNethroi.class)); + cards.add(new SetCardInfo("Mythos of Vadrok", 127, Rarity.RARE, mage.cards.m.MythosOfVadrok.class)); cards.add(new SetCardInfo("Necropanther", 196, Rarity.UNCOMMON, mage.cards.n.Necropanther.class)); cards.add(new SetCardInfo("Nethroi, Apex of Death", 197, Rarity.MYTHIC, mage.cards.n.NethroiApexOfDeath.class)); cards.add(new SetCardInfo("Neutralize", 59, Rarity.UNCOMMON, mage.cards.n.Neutralize.class));