From 6d976befcf6c9768b062e5c283a2cf5fa760b328 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 8 Jun 2018 08:51:27 -0400 Subject: [PATCH] Implemented Aggressive Instinct --- .../src/mage/cards/a/AggressiveInstinct.java | 43 +++++++++++++++++++ .../src/mage/sets/JiangYangguMuYanling.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AggressiveInstinct.java diff --git a/Mage.Sets/src/mage/cards/a/AggressiveInstinct.java b/Mage.Sets/src/mage/cards/a/AggressiveInstinct.java new file mode 100644 index 0000000000..243294d59c --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AggressiveInstinct.java @@ -0,0 +1,43 @@ +package mage.cards.a; + +import java.util.UUID; +import mage.abilities.effects.common.DamageWithPowerTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.permanent.ControllerPredicate; +import mage.target.common.TargetControlledCreaturePermanent; +import mage.target.common.TargetCreaturePermanent; + +/** + * + * @author TheElk801 + */ +public final class AggressiveInstinct extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature you don't control"); + + static { + filter.add(new ControllerPredicate(TargetController.NOT_YOU)); + } + + public AggressiveInstinct(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}"); + + // Target creature you control deals damage equal to its power to target creature you don't control. + this.getSpellAbility().addEffect(new DamageWithPowerTargetEffect()); + this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); + this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter)); + } + + public AggressiveInstinct(final AggressiveInstinct card) { + super(card); + } + + @Override + public AggressiveInstinct copy() { + return new AggressiveInstinct(this); + } +} diff --git a/Mage.Sets/src/mage/sets/JiangYangguMuYanling.java b/Mage.Sets/src/mage/sets/JiangYangguMuYanling.java index 27e90414be..e2cb2a3615 100644 --- a/Mage.Sets/src/mage/sets/JiangYangguMuYanling.java +++ b/Mage.Sets/src/mage/sets/JiangYangguMuYanling.java @@ -20,6 +20,7 @@ public final class JiangYangguMuYanling extends ExpansionSet { super("Global Series: Jiang Yanggu & Mu Yanling", "GS1", ExpansionSet.buildDate(2018, 6, 22), SetType.SUPPLEMENTAL_STANDARD_LEGAL); this.blockName = "Global Series"; this.hasBasicLands = true; + cards.add(new SetCardInfo("Aggressive Instinct", 34, Rarity.COMMON, mage.cards.a.AggressiveInstinct.class)); cards.add(new SetCardInfo("Armored Whirl Turtle", 7, Rarity.COMMON, mage.cards.a.ArmoredWhirlTurtle.class)); cards.add(new SetCardInfo("Breath of Fire", 33, Rarity.COMMON, mage.cards.b.BreathOfFire.class)); cards.add(new SetCardInfo("Brilliant Plan", 17, Rarity.UNCOMMON, mage.cards.b.BrilliantPlan.class));