foul-magics/Mage/src/main/java/mage/game/permanent/token/TarmogoyfToken.java
2024-06-04 11:19:53 +02:00

42 lines
1.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CardTypesInGraveyardCount;
import mage.abilities.effects.common.continuous.SetBasePowerToughnessPlusOneSourceEffect;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Zone;
/**
* @author LoneFox
*/
public final class TarmogoyfToken extends TokenImpl {
private static final DynamicValue powerValue = CardTypesInGraveyardCount.ALL;
public TarmogoyfToken() {
super("Tarmogoyf Token",
"Tarmogoyfs power is equal to the number of card types among cards in all graveyards and its toughness is equal to that number plus 1.");
manaCost = new ManaCostsImpl<>("{1}{G}");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add(SubType.LHURGOYF);
power = new MageInt(0);
toughness = new MageInt(1);
// Tarmogoyfs power is equal to the number of card types among cards in all
// graveyards and its toughness is equal to that number plus 1.
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetBasePowerToughnessPlusOneSourceEffect(powerValue)));
}
private TarmogoyfToken(final TarmogoyfToken token) {
super(token);
}
@Override
public TarmogoyfToken copy() {
return new TarmogoyfToken(this);
}
}