From 38d5ed0bf4f156bb9cc30ed19ce35d6288919dae Mon Sep 17 00:00:00 2001 From: PurpleCrowbar <26198472+PurpleCrowbar@users.noreply.github.com> Date: Thu, 9 Feb 2023 03:17:47 +0000 Subject: [PATCH] [ONC] Implement Vishgraz, the Doomhive (#9938) --- .../src/mage/cards/v/VishgrazTheDoomhive.java | 54 +++++++++++++++++++ .../sets/PhyrexiaAllWillBeOneCommander.java | 2 + 2 files changed, 56 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/v/VishgrazTheDoomhive.java diff --git a/Mage.Sets/src/mage/cards/v/VishgrazTheDoomhive.java b/Mage.Sets/src/mage/cards/v/VishgrazTheDoomhive.java new file mode 100644 index 0000000000..0946a9f560 --- /dev/null +++ b/Mage.Sets/src/mage/cards/v/VishgrazTheDoomhive.java @@ -0,0 +1,54 @@ +package mage.cards.v; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.OpponentsPoisonCountersCount; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.abilities.keyword.MenaceAbility; +import mage.abilities.keyword.ToxicAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.game.permanent.token.PhyrexianMiteToken; + +import java.util.UUID; + +/** + * @author PurpleCrowbar + */ +public final class VishgrazTheDoomhive extends CardImpl { + + public VishgrazTheDoomhive(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}{B}{G}"); + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.PHYREXIAN, SubType.INSECT); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Menace + this.addAbility(new MenaceAbility(false)); + + // Toxic 1 + this.addAbility(new ToxicAbility(1)); + + // When Vishgraz, the Doomhive enters the battlefield, create three 1/1 colorless Phyrexian + // Mite artifact creature tokens with toxic 1 and "This creature can't block." + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new PhyrexianMiteToken(), 3), false)); + + // Vishgraz gets +1/+1 for each poison counter your opponents have. + DynamicValue value = OpponentsPoisonCountersCount.instance; + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostSourceEffect(value, value, Duration.WhileOnBattlefield))); + } + + private VishgrazTheDoomhive(final VishgrazTheDoomhive card) { + super(card); + } + + @Override + public VishgrazTheDoomhive copy() { + return new VishgrazTheDoomhive(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOneCommander.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOneCommander.java index 97d93df2f6..9a54a211fa 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOneCommander.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOneCommander.java @@ -137,6 +137,8 @@ public final class PhyrexiaAllWillBeOneCommander extends ExpansionSet { cards.add(new SetCardInfo("Trailblazer's Boots", 144, Rarity.UNCOMMON, mage.cards.t.TrailblazersBoots.class)); cards.add(new SetCardInfo("Urtet, Remnant of Memnarch", 28, Rarity.MYTHIC, mage.cards.u.UrtetRemnantOfMemnarch.class)); cards.add(new SetCardInfo("Viridian Corrupter", 113, Rarity.UNCOMMON, mage.cards.v.ViridianCorrupter.class)); + cards.add(new SetCardInfo("Vishgraz, the Doomhive", 4, Rarity.MYTHIC, mage.cards.v.VishgrazTheDoomhive.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Vishgraz, the Doomhive", 40, Rarity.MYTHIC, mage.cards.v.VishgrazTheDoomhive.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("White Sun's Zenith", 90, Rarity.RARE, mage.cards.w.WhiteSunsZenith.class)); cards.add(new SetCardInfo("Windborn Muse", 91, Rarity.RARE, mage.cards.w.WindbornMuse.class)); cards.add(new SetCardInfo("Windbrisk Heights", 174, Rarity.RARE, mage.cards.w.WindbriskHeights.class));