mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fix Grixis Illusionist being able to target opponent's lands
This commit is contained in:
parent
6e34416afe
commit
2dfdc42b89
1 changed files with 10 additions and 2 deletions
|
@ -37,7 +37,10 @@ import mage.cards.CardImpl;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.TargetController;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterLandPermanent;
|
||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||
import mage.target.Target;
|
||||
import mage.target.common.TargetLandPermanent;
|
||||
|
||||
|
@ -47,6 +50,12 @@ import mage.target.common.TargetLandPermanent;
|
|||
*/
|
||||
public class GrixisIllusionist extends CardImpl {
|
||||
|
||||
private static final FilterLandPermanent filter = new FilterLandPermanent("land you control");
|
||||
|
||||
static {
|
||||
filter.add(new ControllerPredicate(TargetController.YOU));
|
||||
}
|
||||
|
||||
public GrixisIllusionist(UUID ownerId) {
|
||||
super(ownerId, 29, "Grixis Illusionist", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{U}");
|
||||
this.expansionSetCode = "CON";
|
||||
|
@ -58,10 +67,9 @@ public class GrixisIllusionist extends CardImpl {
|
|||
|
||||
// {tap}: Target land you control becomes the basic land type of your choice until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesBasicLandTargetEffect(Duration.EndOfTurn), new TapSourceCost());
|
||||
Target target = new TargetLandPermanent();
|
||||
Target target = new TargetLandPermanent(filter);
|
||||
ability.addTarget(target);
|
||||
this.addAbility(ability);
|
||||
|
||||
}
|
||||
|
||||
public GrixisIllusionist(final GrixisIllusionist card) {
|
||||
|
|
Loading…
Reference in a new issue