* Felidar Guardian - Fixed that wrongly also Felidar Guardian itself could be selected as target.

This commit is contained in:
LevelX2 2017-01-08 18:11:30 +01:00
parent a9e76069c1
commit eb6fe98fe7

View file

@ -37,6 +37,8 @@ import mage.abilities.effects.common.ReturnToBattlefieldUnderOwnerControlTargetE
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.permanent.AnotherPredicate;
import mage.target.common.TargetControlledPermanent;
/**
@ -58,7 +60,9 @@ public class FelidarGuardian extends CardImpl {
effect.setApplyEffectsAfter();
Ability ability = new EntersBattlefieldTriggeredAbility(effect, true);
ability.addEffect(new ReturnToBattlefieldUnderOwnerControlTargetEffect(false, true));
ability.addTarget(new TargetControlledPermanent());
FilterControlledPermanent filter = new FilterControlledPermanent("another target permanent you control");
filter.add(new AnotherPredicate());
ability.addTarget(new TargetControlledPermanent(filter));
this.addAbility(ability);
}