From c1ac88102eed040ebe93a5e0b868d676bddd4ea4 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 6 Apr 2023 20:21:34 -0400 Subject: [PATCH] [MOM] Implement Expedition Lookout --- .../src/mage/cards/e/ExpeditionLookout.java | 56 +++++++++++++++++++ .../src/mage/sets/MarchOfTheMachine.java | 1 + 2 files changed, 57 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/ExpeditionLookout.java diff --git a/Mage.Sets/src/mage/cards/e/ExpeditionLookout.java b/Mage.Sets/src/mage/cards/e/ExpeditionLookout.java new file mode 100644 index 0000000000..e549ccbb8a --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/ExpeditionLookout.java @@ -0,0 +1,56 @@ +package mage.cards.e; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.common.CardsInOpponentGraveyardCondition; +import mage.abilities.decorator.ConditionalAsThoughEffect; +import mage.abilities.decorator.ConditionalRestrictionEffect; +import mage.abilities.effects.common.combat.CanAttackAsThoughItDidntHaveDefenderSourceEffect; +import mage.abilities.effects.common.combat.CantBeBlockedSourceEffect; +import mage.abilities.keyword.DefenderAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ExpeditionLookout extends CardImpl { + + public ExpeditionLookout(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}"); + + this.subtype.add(SubType.MERFOLK); + this.subtype.add(SubType.ROGUE); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // Defender + this.addAbility(DefenderAbility.getInstance()); + + // As long as an opponent has eight or more cards in their graveyard, Expedition Lookout can attack as though it didn't have defender and it can't be blocked. + Ability ability = new SimpleStaticAbility(new ConditionalAsThoughEffect( + new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.WhileOnBattlefield), + CardsInOpponentGraveyardCondition.EIGHT + ).setText("as long as an opponent has eight or more cards in their graveyard, " + + "{this} can attack as though it didn't have defender")); + ability.addEffect(new ConditionalRestrictionEffect( + new CantBeBlockedSourceEffect(), CardsInOpponentGraveyardCondition.EIGHT, "and can't be blocked" + )); + this.addAbility(ability.addHint(CardsInOpponentGraveyardCondition.EIGHT.getHint())); + } + + private ExpeditionLookout(final ExpeditionLookout card) { + super(card); + } + + @Override + public ExpeditionLookout copy() { + return new ExpeditionLookout(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index 8143ed4979..ecdf465ac4 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -80,6 +80,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Errant and Giada", 224, Rarity.RARE, mage.cards.e.ErrantAndGiada.class)); cards.add(new SetCardInfo("Essence of Orthodoxy", 323, Rarity.RARE, mage.cards.e.EssenceOfOrthodoxy.class)); cards.add(new SetCardInfo("Etched Familiar", 101, Rarity.COMMON, mage.cards.e.EtchedFamiliar.class)); + cards.add(new SetCardInfo("Expedition Lookout", 56, Rarity.COMMON, mage.cards.e.ExpeditionLookout.class)); cards.add(new SetCardInfo("Eyes of Gitaxias", 57, Rarity.COMMON, mage.cards.e.EyesOfGitaxias.class)); cards.add(new SetCardInfo("Faerie Mastermind", 58, Rarity.RARE, mage.cards.f.FaerieMastermind.class)); cards.add(new SetCardInfo("Failed Conversion", 103, Rarity.COMMON, mage.cards.f.FailedConversion.class));