From 8fd2ed476edb1b970e14860178a145c4a1e04f7a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 13 Nov 2021 14:01:22 -0500 Subject: [PATCH] [VOC] Implemented Drogskol Reinforcements --- .../mage/cards/d/DrogskolReinforcements.java | 57 +++++++++++++++++++ .../src/mage/sets/CrimsonVowCommander.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DrogskolReinforcements.java diff --git a/Mage.Sets/src/mage/cards/d/DrogskolReinforcements.java b/Mage.Sets/src/mage/cards/d/DrogskolReinforcements.java new file mode 100644 index 00000000000..0a558f2bd09 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DrogskolReinforcements.java @@ -0,0 +1,57 @@ +package mage.cards.d; + +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.PreventAllNonCombatDamageToAllEffect; +import mage.abilities.effects.common.continuous.GainAbilityAllEffect; +import mage.abilities.keyword.MeleeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.StaticFilters; +import mage.filter.common.FilterControlledPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DrogskolReinforcements extends CardImpl { + + private static final FilterPermanent filter + = new FilterControlledPermanent(SubType.SPIRIT, "Spirits you control"); + + public DrogskolReinforcements(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}"); + + this.subtype.add(SubType.SPIRIT); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Melee + this.addAbility(new MeleeAbility()); + + // Other Spirits you control have melee. + this.addAbility(new SimpleStaticAbility(new GainAbilityAllEffect( + new MeleeAbility(), Duration.WhileOnBattlefield, filter, true + ))); + + // Prevent all noncombat damage that would be dealt to Spirits you control. + this.addAbility(new SimpleStaticAbility(new PreventAllNonCombatDamageToAllEffect( + Duration.WhileOnBattlefield, StaticFilters.FILTER_CONTROLLED_CREATURES + ))); + } + + private DrogskolReinforcements(final DrogskolReinforcements card) { + super(card); + } + + @Override + public DrogskolReinforcements copy() { + return new DrogskolReinforcements(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CrimsonVowCommander.java b/Mage.Sets/src/mage/sets/CrimsonVowCommander.java index d835b7bb22d..164eedefda4 100644 --- a/Mage.Sets/src/mage/sets/CrimsonVowCommander.java +++ b/Mage.Sets/src/mage/sets/CrimsonVowCommander.java @@ -57,6 +57,7 @@ public final class CrimsonVowCommander extends ExpansionSet { cards.add(new SetCardInfo("Doom Weaver", 34, Rarity.RARE, mage.cards.d.DoomWeaver.class)); cards.add(new SetCardInfo("Dovin, Grand Arbiter", 153, Rarity.MYTHIC, mage.cards.d.DovinGrandArbiter.class)); cards.add(new SetCardInfo("Drogskol Captain", 154, Rarity.UNCOMMON, mage.cards.d.DrogskolCaptain.class)); + cards.add(new SetCardInfo("Drogskol Reinforcements", 5, Rarity.RARE, mage.cards.d.DrogskolReinforcements.class)); cards.add(new SetCardInfo("Ethereal Investigator", 12, Rarity.RARE, mage.cards.e.EtherealInvestigator.class)); cards.add(new SetCardInfo("Exotic Orchard", 173, Rarity.RARE, mage.cards.e.ExoticOrchard.class)); cards.add(new SetCardInfo("Falkenrath Gorger", 146, Rarity.RARE, mage.cards.f.FalkenrathGorger.class));