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

@ -80,7 +80,7 @@ class MindSpringEffect extends OneShotEffect<MindSpringEffect> {
@Override
public boolean apply(Game game, Ability source) {
int amount = source.getManaCostsToPay().getVariableCosts().get(0).getAmount();
int amount = source.getManaCostsToPay().getX();
Player player = game.getPlayer(source.getControllerId());
if (player != null) {
player.drawCards(amount, game);