From 25db5f11eb6de0a9026a4a978abde035ac6dd182 Mon Sep 17 00:00:00 2001 From: etpalmer63 Date: Fri, 15 May 2020 11:29:51 -0700 Subject: [PATCH] Changed old constructor to call the new one to prevent code duplication --- .../abilities/keyword/SupportAbility.java | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/keyword/SupportAbility.java b/Mage/src/main/java/mage/abilities/keyword/SupportAbility.java index a525b6ed535..63fec0c7187 100644 --- a/Mage/src/main/java/mage/abilities/keyword/SupportAbility.java +++ b/Mage/src/main/java/mage/abilities/keyword/SupportAbility.java @@ -19,22 +19,9 @@ import mage.target.common.TargetCreaturePermanent; */ public class SupportAbility extends EntersBattlefieldTriggeredAbility { - public SupportAbility(Card card, int amount) { - super(new SupportEffect(card, amount, true)); - if (!card.isInstant() && !card.isSorcery()) { - FilterCreaturePermanent filter = new FilterCreaturePermanent("creatures"); - if (card.isCreature()) { - filter.add(AnotherPredicate.instance); - filter.setMessage("other target creatures"); - } - addTarget(new TargetCreaturePermanent(0, amount, filter, false)); - } - } - /* - * For enchanments, the text should not include the word "other". This method - * allows the otherPermanent choice to be selected in the call to SupportAbility - * and removes the "other" text from rule creation. + * For enchantments, the text should not include the word "other". + * The otherPermanent choice removes the word "other" from rule text creation. */ public SupportAbility(Card card, int amount, boolean otherPermanent) { super(new SupportEffect(card, amount, otherPermanent)); @@ -49,6 +36,9 @@ public class SupportAbility extends EntersBattlefieldTriggeredAbility { } + public SupportAbility(Card card, int amount){ this( card, amount, true); } + + public SupportAbility(final SupportAbility ability) { super(ability); }