Ability for display purposes, does nothing.

This commit is contained in:
maurer.it 2011-01-11 14:25:50 -05:00
parent 47093d92a3
commit 436c48b17e

View file

@ -30,11 +30,15 @@ package mage.sets.riseoftheeldrazi;
import java.util.Iterator; import java.util.Iterator;
import java.util.UUID; import java.util.UUID;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Outcome;
import mage.Constants.Rarity; import mage.Constants.Rarity;
import mage.Constants.Zone;
import mage.MageInt; import mage.MageInt;
import mage.ObjectColor; import mage.ObjectColor;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.mana.ManaCost; import mage.abilities.costs.mana.ManaCost;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.keyword.TrampleAbility; import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.filter.common.FilterControlledCreaturePermanent; import mage.filter.common.FilterControlledCreaturePermanent;
@ -62,6 +66,7 @@ public class KhalniHydra extends CardImpl<KhalniHydra> {
this.color.setGreen(true); this.color.setGreen(true);
this.power = new MageInt(8); this.power = new MageInt(8);
this.toughness = new MageInt(8); this.toughness = new MageInt(8);
this.addAbility(new SimpleStaticAbility(Zone.STACK, new KhalniHydraCostReductionEffect()));
this.addAbility(TrampleAbility.getInstance()); this.addAbility(TrampleAbility.getInstance());
} }
@ -87,3 +92,32 @@ public class KhalniHydra extends CardImpl<KhalniHydra> {
return new KhalniHydra(this); return new KhalniHydra(this);
} }
} }
class KhalniHydraCostReductionEffect extends OneShotEffect<KhalniHydraCostReductionEffect> {
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;
}
}