mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fixed target of Tel-Jilad Stylus.
This commit is contained in:
parent
d0ed98466f
commit
382cee7629
1 changed files with 11 additions and 2 deletions
|
@ -36,8 +36,11 @@ import mage.abilities.effects.common.PutOnLibraryTargetEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
|
import mage.constants.TargetController;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.target.common.TargetControlledPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
|
import mage.filter.predicate.other.OwnerPredicate;
|
||||||
|
import mage.target.TargetPermanent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -45,6 +48,12 @@ import mage.target.common.TargetControlledPermanent;
|
||||||
*/
|
*/
|
||||||
public class TelJiladStylus extends CardImpl {
|
public class TelJiladStylus extends CardImpl {
|
||||||
|
|
||||||
|
private final static FilterPermanent filter = new FilterPermanent();
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(new OwnerPredicate(TargetController.YOU));
|
||||||
|
}
|
||||||
|
|
||||||
public TelJiladStylus(UUID ownerId) {
|
public TelJiladStylus(UUID ownerId) {
|
||||||
super(ownerId, 260, "Tel-Jilad Stylus", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
|
super(ownerId, 260, "Tel-Jilad Stylus", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{1}");
|
||||||
this.expansionSetCode = "MRD";
|
this.expansionSetCode = "MRD";
|
||||||
|
@ -52,7 +61,7 @@ public class TelJiladStylus extends CardImpl {
|
||||||
// {T}: Put target permanent you own on the bottom of your library.
|
// {T}: Put target permanent you own on the bottom of your library.
|
||||||
Effect effect = new PutOnLibraryTargetEffect(false,"put target permanent you own on the bottom of your library");
|
Effect effect = new PutOnLibraryTargetEffect(false,"put target permanent you own on the bottom of your library");
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new TapSourceCost());
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new TapSourceCost());
|
||||||
ability.addTarget(new TargetControlledPermanent());
|
ability.addTarget(new TargetPermanent(filter));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue