From 0e82c87f597afb351d6e276d7134ea3dd9d866cd Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 9 Jun 2020 08:05:14 -0400 Subject: [PATCH] Implemented Spined Megalodon --- .../src/mage/cards/s/SpinedMegalodon.java | 41 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2021.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SpinedMegalodon.java diff --git a/Mage.Sets/src/mage/cards/s/SpinedMegalodon.java b/Mage.Sets/src/mage/cards/s/SpinedMegalodon.java new file mode 100644 index 0000000000..b740d87914 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SpinedMegalodon.java @@ -0,0 +1,41 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.effects.keyword.ScryEffect; +import mage.abilities.keyword.HexproofAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SpinedMegalodon extends CardImpl { + + public SpinedMegalodon(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{U}{U}"); + + this.subtype.add(SubType.SHARK); + this.power = new MageInt(5); + this.toughness = new MageInt(7); + + // Hexproof + this.addAbility(HexproofAbility.getInstance()); + + // Whenever Spined Megalodon attacks, scry 1. + this.addAbility(new AttacksTriggeredAbility(new ScryEffect(1), false)); + } + + private SpinedMegalodon(final SpinedMegalodon card) { + super(card); + } + + @Override + public SpinedMegalodon copy() { + return new SpinedMegalodon(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2021.java b/Mage.Sets/src/mage/sets/CoreSet2021.java index 3dbbf35a76..5996a641e6 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2021.java +++ b/Mage.Sets/src/mage/sets/CoreSet2021.java @@ -95,6 +95,7 @@ public final class CoreSet2021 extends ExpansionSet { cards.add(new SetCardInfo("Sigiled Contender", 323, Rarity.UNCOMMON, mage.cards.s.SigiledContender.class)); cards.add(new SetCardInfo("Solemn Simulacrum", 239, Rarity.RARE, mage.cards.s.SolemnSimulacrum.class)); cards.add(new SetCardInfo("Sparkhunter Masticore", 240, Rarity.RARE, mage.cards.s.SparkhunterMasticore.class)); + cards.add(new SetCardInfo("Spined Megalodon", 72, Rarity.COMMON, mage.cards.s.SpinedMegalodon.class)); cards.add(new SetCardInfo("Spirit of Malevolence", 331, Rarity.COMMON, mage.cards.s.SpiritOfMalevolence.class)); cards.add(new SetCardInfo("Storm Caller", 335, Rarity.COMMON, mage.cards.s.StormCaller.class)); cards.add(new SetCardInfo("Teferi's Ageless Insight", 76, Rarity.RARE, mage.cards.t.TeferisAgelessInsight.class));