From cc8150bb848041eae7ba48dcff1a0c74ae2285e5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 1 Jun 2019 11:32:17 -0400 Subject: [PATCH] Implemented Quakefoot Cyclops --- .../src/mage/cards/q/QuakefootCyclops.java | 53 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 54 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/q/QuakefootCyclops.java diff --git a/Mage.Sets/src/mage/cards/q/QuakefootCyclops.java b/Mage.Sets/src/mage/cards/q/QuakefootCyclops.java new file mode 100644 index 00000000000..c8b123abc38 --- /dev/null +++ b/Mage.Sets/src/mage/cards/q/QuakefootCyclops.java @@ -0,0 +1,53 @@ +package mage.cards.q; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.CycleTriggeredAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.combat.CantBlockTargetEffect; +import mage.abilities.keyword.CyclingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class QuakefootCyclops extends CardImpl { + + public QuakefootCyclops(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}"); + + this.subtype.add(SubType.CYCLOPS); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + // When Quakefoot Cyclops enters the battlefield, up to two target creatures can't block this turn. + Ability ability = new EntersBattlefieldTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn)); + ability.addTarget(new TargetCreaturePermanent(0, 1)); + this.addAbility(ability); + + // Cycling {1}{R} + this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{R}"))); + + // When you cycle Quakefoot Cyclops, target creature can't block this turn. + ability = new CycleTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn)); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + } + + private QuakefootCyclops(final QuakefootCyclops card) { + super(card); + } + + @Override + public QuakefootCyclops copy() { + return new QuakefootCyclops(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index e90d3ea0e30..b62cd14787e 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -166,6 +166,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Prohibit", 64, Rarity.COMMON, mage.cards.p.Prohibit.class)); cards.add(new SetCardInfo("Putrid Goblin", 101, Rarity.COMMON, mage.cards.p.PutridGoblin.class)); cards.add(new SetCardInfo("Pyrophobia", 141, Rarity.COMMON, mage.cards.p.Pyrophobia.class)); + cards.add(new SetCardInfo("Quakefoot Cyclops", 142, Rarity.COMMON, mage.cards.q.QuakefootCyclops.class)); cards.add(new SetCardInfo("Rain of Revelation", 65, Rarity.COMMON, mage.cards.r.RainOfRevelation.class)); cards.add(new SetCardInfo("Ranger-Captain of Eos", 21, Rarity.MYTHIC, mage.cards.r.RangerCaptainOfEos.class)); cards.add(new SetCardInfo("Rank Officer", 102, Rarity.COMMON, mage.cards.r.RankOfficer.class));