mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Felidar Guardian - Fixed that wrongly also Felidar Guardian itself could be selected as target.
This commit is contained in:
parent
a9e76069c1
commit
eb6fe98fe7
1 changed files with 78 additions and 74 deletions
|
@ -37,6 +37,8 @@ import mage.abilities.effects.common.ReturnToBattlefieldUnderOwnerControlTargetE
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
|
import mage.filter.predicate.permanent.AnotherPredicate;
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,7 +60,9 @@ public class FelidarGuardian extends CardImpl {
|
||||||
effect.setApplyEffectsAfter();
|
effect.setApplyEffectsAfter();
|
||||||
Ability ability = new EntersBattlefieldTriggeredAbility(effect, true);
|
Ability ability = new EntersBattlefieldTriggeredAbility(effect, true);
|
||||||
ability.addEffect(new ReturnToBattlefieldUnderOwnerControlTargetEffect(false, 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);
|
this.addAbility(ability);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue