From c346f34d1b66f6298591c5c77f157f22caa83b14 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 31 May 2019 20:13:11 -0400 Subject: [PATCH] Implemented Mob --- Mage.Sets/src/mage/cards/m/Mob.java | 36 +++++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 37 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/Mob.java diff --git a/Mage.Sets/src/mage/cards/m/Mob.java b/Mage.Sets/src/mage/cards/m/Mob.java new file mode 100644 index 0000000000..68205bf0cb --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/Mob.java @@ -0,0 +1,36 @@ +package mage.cards.m; + +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.keyword.ConvokeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Mob extends CardImpl { + + public Mob(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{4}{B}"); + + // Convoke + this.addAbility(new ConvokeAbility()); + + // Destroy target creature. + this.getSpellAbility().addEffect(new DestroyTargetEffect()); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + private Mob(final Mob card) { + super(card); + } + + @Override + public Mob copy() { + return new Mob(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 4a8826aa9e..4eea9668f9 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -131,6 +131,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Mind Rake", 96, Rarity.COMMON, mage.cards.m.MindRake.class)); cards.add(new SetCardInfo("Mirrodin Besieged", 57, Rarity.RARE, mage.cards.m.MirrodinBesieged.class)); cards.add(new SetCardInfo("Mist-Syndicate Naga", 58, Rarity.RARE, mage.cards.m.MistSyndicateNaga.class)); + cards.add(new SetCardInfo("Mob", 97, Rarity.COMMON, mage.cards.m.Mob.class)); cards.add(new SetCardInfo("Moonblade Shinobi", 59, Rarity.COMMON, mage.cards.m.MoonbladeShinobi.class)); cards.add(new SetCardInfo("Morophon, the Boundless", 1, Rarity.MYTHIC, mage.cards.m.MorophonTheBoundless.class)); cards.add(new SetCardInfo("Mother Bear", 171, Rarity.COMMON, mage.cards.m.MotherBear.class));