From 534621560b2789b48f2ac655fe92c4d1f7dda96b Mon Sep 17 00:00:00 2001 From: ingmargoudt Date: Fri, 16 Sep 2016 21:47:58 +0200 Subject: [PATCH] Implemented Revolutionary Rebuff - KLD fixed setcode for 2 KLD cards --- .../sets/kaladesh/RevolutionaryRebuff.java | 46 +++++++++++++++++++ .../mage/sets/kaladesh/RushOfVitality.java | 3 ++ .../sets/kaladesh/VedalkenBlademaster.java | 3 ++ 3 files changed, 52 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/kaladesh/RevolutionaryRebuff.java diff --git a/Mage.Sets/src/mage/sets/kaladesh/RevolutionaryRebuff.java b/Mage.Sets/src/mage/sets/kaladesh/RevolutionaryRebuff.java new file mode 100644 index 0000000000..97e0df27d5 --- /dev/null +++ b/Mage.Sets/src/mage/sets/kaladesh/RevolutionaryRebuff.java @@ -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); + } +} diff --git a/Mage.Sets/src/mage/sets/kaladesh/RushOfVitality.java b/Mage.Sets/src/mage/sets/kaladesh/RushOfVitality.java index 659a06f296..a184029f12 100644 --- a/Mage.Sets/src/mage/sets/kaladesh/RushOfVitality.java +++ b/Mage.Sets/src/mage/sets/kaladesh/RushOfVitality.java @@ -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)); diff --git a/Mage.Sets/src/mage/sets/kaladesh/VedalkenBlademaster.java b/Mage.Sets/src/mage/sets/kaladesh/VedalkenBlademaster.java index 72b1329fba..37de678737 100644 --- a/Mage.Sets/src/mage/sets/kaladesh/VedalkenBlademaster.java +++ b/Mage.Sets/src/mage/sets/kaladesh/VedalkenBlademaster.java @@ -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);