diff --git a/Mage.Sets/src/mage/sets/riseoftheeldrazi/KhalniHydra.java b/Mage.Sets/src/mage/sets/riseoftheeldrazi/KhalniHydra.java index 59759ee285..8416000f1d 100644 --- a/Mage.Sets/src/mage/sets/riseoftheeldrazi/KhalniHydra.java +++ b/Mage.Sets/src/mage/sets/riseoftheeldrazi/KhalniHydra.java @@ -30,11 +30,15 @@ package mage.sets.riseoftheeldrazi; import java.util.Iterator; import java.util.UUID; import mage.Constants.CardType; +import mage.Constants.Outcome; import mage.Constants.Rarity; +import mage.Constants.Zone; import mage.MageInt; import mage.ObjectColor; import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; import mage.abilities.costs.mana.ManaCost; +import mage.abilities.effects.OneShotEffect; import mage.abilities.keyword.TrampleAbility; import mage.cards.CardImpl; import mage.filter.common.FilterControlledCreaturePermanent; @@ -62,6 +66,7 @@ public class KhalniHydra extends CardImpl { this.color.setGreen(true); this.power = new MageInt(8); this.toughness = new MageInt(8); + this.addAbility(new SimpleStaticAbility(Zone.STACK, new KhalniHydraCostReductionEffect())); this.addAbility(TrampleAbility.getInstance()); } @@ -87,3 +92,32 @@ public class KhalniHydra extends CardImpl { return new KhalniHydra(this); } } + +class KhalniHydraCostReductionEffect extends OneShotEffect { + private static final String effectText = "Khalni Hydra costs {G} less to cast for each green creature you control"; + + KhalniHydraCostReductionEffect ( ) { + super(Outcome.Benefit); + } + + KhalniHydraCostReductionEffect ( KhalniHydraCostReductionEffect effect ) { + super(effect); + } + + @Override + public boolean apply(Game game, Ability source) { + return false; + } + + @Override + public KhalniHydraCostReductionEffect copy() { + return new KhalniHydraCostReductionEffect(this); + } + + @Override + public String getText(Ability source) { + return effectText; + } + + +}