mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Ability for display purposes, does nothing.
This commit is contained in:
parent
47093d92a3
commit
436c48b17e
1 changed files with 34 additions and 0 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue