From 2ec404a2e44ab764146992d48cfa0e91fb4c2988 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 18 Feb 2016 15:52:13 +0100 Subject: [PATCH] * Joraga Auxiliary - Fixed that he could target itself with the support ability. --- .../mage/sets/oathofthegatewatch/JoragaAuxiliary.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/oathofthegatewatch/JoragaAuxiliary.java b/Mage.Sets/src/mage/sets/oathofthegatewatch/JoragaAuxiliary.java index 8a124d1f93a..c5373633adf 100644 --- a/Mage.Sets/src/mage/sets/oathofthegatewatch/JoragaAuxiliary.java +++ b/Mage.Sets/src/mage/sets/oathofthegatewatch/JoragaAuxiliary.java @@ -38,6 +38,7 @@ import mage.constants.CardType; import mage.constants.Rarity; import mage.constants.Zone; import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.permanent.AnotherPredicate; import mage.target.common.TargetCreaturePermanent; /** @@ -46,6 +47,12 @@ import mage.target.common.TargetCreaturePermanent; */ public class JoragaAuxiliary extends CardImpl { + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("other target creatures"); + + static { + filter.add(new AnotherPredicate()); + } + public JoragaAuxiliary(UUID ownerId) { super(ownerId, 154, "Joraga Auxiliary", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{1}{G}{W}"); this.expansionSetCode = "OGW"; @@ -55,9 +62,9 @@ public class JoragaAuxiliary extends CardImpl { this.power = new MageInt(2); this.toughness = new MageInt(3); - // {4}{G}{W}: Support 2. + // {4}{G}{W}: Support 2. (Put a +1/+1 counter on each of up to two other target creatures.) Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SupportEffect(this, 2, true), new ManaCostsImpl("{4}{G}{W}")); - ability.addTarget(new TargetCreaturePermanent(0, 2, new FilterCreaturePermanent("target creatures"), false)); + ability.addTarget(new TargetCreaturePermanent(0, 2, filter, false)); this.addAbility(ability); }