fix for issue 210 was causing issues for AI's - added getX() utility method instead

This commit is contained in:
BetaSteward 2011-08-22 13:39:44 -04:00
parent b2d9b467ef
commit 37819c5088
23 changed files with 52 additions and 48 deletions

View file

@ -7,7 +7,7 @@ import mage.game.Game;
public class ManacostVariableValue implements DynamicValue {
@Override
public int calculate(Game game, Ability sourceAbility) {
return sourceAbility.getManaCostsToPay().getVariableCosts().get(0).getAmount();
return sourceAbility.getManaCostsToPay().getX();
}
@Override