Implemented Revolutionary Rebuff - KLD

fixed setcode for 2 KLD cards
This commit is contained in:
ingmargoudt 2016-09-16 21:47:58 +02:00
parent 3085f4e6a4
commit 534621560b
3 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,46 @@
package mage.sets.kaladesh;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.CounterUnlessPaysEffect;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.filter.Filter;
import mage.filter.FilterSpell;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.target.TargetSpell;
import mage.target.common.TargetNonBasicLandPermanent;
import java.util.UUID;
/**
* Created by IGOUDT on 16-9-2016.
*/
public class RevolutionaryRebuff extends CardImpl {
public RevolutionaryRebuff(final UUID ownerId){
super(ownerId, 61, "Revolutionary Rebuff", Rarity.COMMON, new CardType[]{CardType.INSTANT},"{1U}");
this.expansionSetCode = "KLD";
FilterSpell filter = new FilterSpell();
filter.add(Predicates.not(new SubtypePredicate("Artifact")));
this.getSpellAbility().addTarget(new TargetSpell(filter) );
this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(2)));
}
public RevolutionaryRebuff(final RevolutionaryRebuff revolutionaryRebuff){
super(revolutionaryRebuff);
}
@Override
public RevolutionaryRebuff copy() {
return new RevolutionaryRebuff(this);
}
}

View file

@ -21,6 +21,9 @@ public class RushOfVitality extends CardImpl {
public RushOfVitality(final UUID ownerId){
super(ownerId,99,"Rush of Vitality", Rarity.COMMON, new CardType[]{CardType.INSTANT},"{1B}");
this.expansionSetCode = "KLD";
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
this.getSpellAbility().addEffect(new BoostTargetEffect(1, 0, Duration.EndOfTurn));
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn));

View file

@ -17,6 +17,9 @@ public class VedalkenBlademaster extends CardImpl {
public VedalkenBlademaster(final UUID ownerId){
super(ownerId, 68, "Vedalken Blademaster", Rarity.COMMON, new CardType[]{CardType.CREATURE},"{2U}");
this.expansionSetCode = "KLD";
this.subtype.add("Vedalken");
this.subtype.add("Soldier");
this.power = new MageInt(2);