forked from External/mage
fix for issue 210 was causing issues for AI's - added getX() utility method instead
This commit is contained in:
parent
b2d9b467ef
commit
37819c5088
23 changed files with 52 additions and 48 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue