From a782030f72d0d071e6a8c56c6554ee99d2bd6a60 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 4 Apr 2023 21:55:18 -0400 Subject: [PATCH] [MOM] Implement Tenured Oilcaster --- .../src/mage/cards/t/TenuredOilcaster.java | 57 +++++++++++++++++++ .../src/mage/sets/MarchOfTheMachine.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TenuredOilcaster.java diff --git a/Mage.Sets/src/mage/cards/t/TenuredOilcaster.java b/Mage.Sets/src/mage/cards/t/TenuredOilcaster.java new file mode 100644 index 0000000000..f1d6c278ca --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TenuredOilcaster.java @@ -0,0 +1,57 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.common.AttacksOrBlocksTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.common.CardsInOpponentGraveyardCondition; +import mage.abilities.decorator.ConditionalContinuousEffect; +import mage.abilities.effects.common.MillCardsEachPlayerEffect; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.constants.TargetController; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TenuredOilcaster extends CardImpl { + + public TenuredOilcaster(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}"); + + this.subtype.add(SubType.PHYREXIAN); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(2); + this.toughness = new MageInt(4); + + // Menace + this.addAbility(new MenaceAbility()); + + // Tenured Oilcaster gets +3/+0 as long as an opponent has eight or more cards in their graveyard. + this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect( + new BoostSourceEffect(3, 0, Duration.WhileOnBattlefield), + CardsInOpponentGraveyardCondition.EIGHT, "{this} gets +3/+0 as long as " + + "an opponent has eight or more cards in their graveyard" + )).addHint(CardsInOpponentGraveyardCondition.EIGHT.getHint())); + + // Whenever Tenured Oilcaster attacks or blocks, each player mills a card. + this.addAbility(new AttacksOrBlocksTriggeredAbility( + new MillCardsEachPlayerEffect(1, TargetController.EACH_PLAYER), false + )); + } + + private TenuredOilcaster(final TenuredOilcaster card) { + super(card); + } + + @Override + public TenuredOilcaster copy() { + return new TenuredOilcaster(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index 921559de29..b903513f69 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -119,6 +119,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Sunfall", 40, Rarity.RARE, mage.cards.s.Sunfall.class)); cards.add(new SetCardInfo("Swamp", 279, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Swiftwater Cliffs", 273, Rarity.COMMON, mage.cards.s.SwiftwaterCliffs.class)); + cards.add(new SetCardInfo("Tenured Oilcaster", 216, Rarity.COMMON, mage.cards.t.TenuredOilcaster.class)); cards.add(new SetCardInfo("Thornwood Falls", 274, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class)); cards.add(new SetCardInfo("Thunderhead Squadron", 81, Rarity.COMMON, mage.cards.t.ThunderheadSquadron.class)); cards.add(new SetCardInfo("Tiller of Flesh", 44, Rarity.UNCOMMON, mage.cards.t.TillerOfFlesh.class));