forked from External/mage
39 lines
874 B
Java
39 lines
874 B
Java
package mage.abilities.dynamicvalue.common;
|
|
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.dynamicvalue.DynamicValue;
|
|
import mage.abilities.effects.Effect;
|
|
import mage.game.Game;
|
|
import mage.util.CardUtil;
|
|
|
|
|
|
/**
|
|
* Kicker {X}
|
|
*
|
|
* @author JayDi85
|
|
*/
|
|
public enum GetKickerXValue implements DynamicValue {
|
|
instance;
|
|
|
|
@Override
|
|
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
|
// Currently identical logic to the Manacost X value
|
|
// which should be fine since you can only have one X at a time
|
|
return CardUtil.getSourceCostsTag(game, sourceAbility, "X", 0);
|
|
}
|
|
|
|
@Override
|
|
public GetKickerXValue copy() {
|
|
return GetKickerXValue.instance;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "X";
|
|
}
|
|
|
|
@Override
|
|
public String getMessage() {
|
|
return "";
|
|
}
|
|
}
|