Fixed KorSkyfisher, NulltreadGargantuan (not targeting abilities).

This commit is contained in:
magenoxx 2011-06-26 15:58:47 +04:00
parent ac9091d6ee
commit 5c6206f009
2 changed files with 10 additions and 2 deletions

View file

@ -39,6 +39,7 @@ import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.PutOnLibraryTargetEffect; import mage.abilities.effects.common.PutOnLibraryTargetEffect;
import mage.abilities.effects.common.ReturnToHandTargetEffect; import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.target.Target;
import mage.target.common.TargetControlledCreaturePermanent; import mage.target.common.TargetControlledCreaturePermanent;
/** /**
@ -56,7 +57,10 @@ public class NulltreadGargantuan extends CardImpl<NulltreadGargantuan> {
this.power = new MageInt(5); this.power = new MageInt(5);
this.toughness = new MageInt(6); this.toughness = new MageInt(6);
Ability ability = new EntersBattlefieldTriggeredAbility(new PutOnLibraryTargetEffect(true), false); Ability ability = new EntersBattlefieldTriggeredAbility(new PutOnLibraryTargetEffect(true), false);
ability.addTarget(new TargetControlledCreaturePermanent()); Target target = new TargetControlledCreaturePermanent();
target.setRequired(true);
target.setNotTarget(true);
ability.addTarget(target);
this.addAbility(ability); this.addAbility(ability);
} }

View file

@ -39,6 +39,7 @@ import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.ReturnToHandTargetEffect; import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.abilities.keyword.FlyingAbility; import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.target.Target;
import mage.target.common.TargetControlledPermanent; import mage.target.common.TargetControlledPermanent;
/** /**
@ -57,7 +58,10 @@ public class KorSkyfisher extends CardImpl<KorSkyfisher> {
this.toughness = new MageInt(3); this.toughness = new MageInt(3);
this.addAbility(FlyingAbility.getInstance()); this.addAbility(FlyingAbility.getInstance());
Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), false); Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), false);
ability.addTarget(new TargetControlledPermanent()); Target target = new TargetControlledPermanent();
target.setRequired(true);
target.setNotTarget(true);
ability.addTarget(target);
this.addAbility(ability); this.addAbility(ability);
} }