mirror of
https://github.com/correl/mage.git
synced 2025-03-16 01:06:34 -09: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> {
|
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) {
|
public NeedForSpeed(UUID ownerId) {
|
||||||
super(ownerId, 209, "Need for Speed", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{R}");
|
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.
|
// Sacrifice a land: Target creature gains haste until end of turn.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||||
new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn),
|
new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn),
|
||||||
new SacrificeTargetCost(new TargetControlledPermanent(filter)));
|
new SacrificeTargetCost(new TargetControlledPermanent(new FilterControlledPermanent("land"))));
|
||||||
ability.addTarget(new TargetCreaturePermanent(true));
|
ability.addTarget(new TargetCreaturePermanent(true));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue