mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Update NeedForSpeed.java
This commit is contained in:
parent
09f59982d9
commit
02a3c774cc
1 changed files with 2 additions and 6 deletions
|
@ -49,11 +49,7 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
*/
|
||||
public class NeedForSpeed extends CardImpl<NeedForSpeed> {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("land");
|
||||
|
||||
static {
|
||||
filter.add(new CardTypePredicate(CardType.LAND));
|
||||
}
|
||||
|
||||
public NeedForSpeed(UUID ownerId) {
|
||||
super(ownerId, 209, "Need for Speed", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{R}");
|
||||
|
@ -64,7 +60,7 @@ public class NeedForSpeed extends CardImpl<NeedForSpeed> {
|
|||
// Sacrifice a land: Target creature gains haste until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn),
|
||||
new SacrificeTargetCost(new TargetControlledPermanent(filter)));
|
||||
new SacrificeTargetCost(new TargetControlledPermanent(new FilterControlledPermanent("land"))));
|
||||
ability.addTarget(new TargetCreaturePermanent(true));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue