fix OuterRimSlaver targeting same creature twice
@@ -12,6 +12,8 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.counters.CounterType;
+import mage.filter.common.FilterCreaturePermanent;
+import mage.filter.predicate.mageobject.AnotherTargetPredicate;
import mage.target.common.TargetCreaturePermanent;
/**
@@ -30,8 +32,14 @@ public final class OuterRimSlaver extends CardImpl {
// When Outer Rim Slaver enters the battlefield, you may put a bounty counter on target creature. If you do, another target creature fights that creature
Ability ability = new EntersBattlefieldTriggeredAbility(new AddCountersTargetEffect(CounterType.BOUNTY.createInstance()), true);
ability.addEffect(new FightTargetsEffect("another target creature fights that creature"));
- ability.addTarget(new TargetCreaturePermanent());
- ability.addTarget(new TargetCreaturePermanent());
+ TargetCreaturePermanent target = new TargetCreaturePermanent();
+ target.setTargetTag(1);
+ ability.addTarget(target);
+ FilterCreaturePermanent filter = new FilterCreaturePermanent();
+ filter.add(new AnotherTargetPredicate(2));
+ TargetCreaturePermanent target2 = new TargetCreaturePermanent(filter);
+ target2.setTargetTag(2);
+ ability.addTarget(target2);
this.addAbility(ability);
}
