257258259260261262263264265266267
case "gamePlayMana": { GameClientMessage message = (GameClientMessage) callback.getData(); GamePanel panel = MageFrame.getGame(callback.getObjectId()); if (panel != null) { panel.playMana(message.getMessage(), message.getGameView(), callback.getMessageId()); } break; } case "gamePlayXMana": { GameClientMessage message = (GameClientMessage) callback.getData();
979899100101102103104105106107
return true; } Player player = game.getPlayer(controllerId); assignPayment(player.getManaPool()); while (!isPaid()) { if (player.playMana(this.getUnpaid(), game)) assignPayment(player.getManaPool()); else return false; } for (ManaCost cost: this.getUnpaidVariableCosts()) {
189190191192193194195196197198199
return true; } Player player = game.getPlayer(controllerId); assignPayment(player.getManaPool()); while (!isPaid()) { if (player.playMana(this, game)) assignPayment(player.getManaPool()); else return false; } return true;
216217218219220221222223224225226
return true; } Player player = game.getPlayer(controllerId); assignPayment(game, ability, player.getManaPool()); while (!isPaid()) { if (player.playMana(this, game)) { assignPayment(game, ability, player.getManaPool()); } else { return false; }
117118119120121122123124125126127
} Player player = game.getPlayer(controllerId); assignPayment(game, ability, player.getManaPool()); while (!isPaid()) { if (player.playMana(this.getUnpaid(), game)) { assignPayment(game, ability, player.getManaPool()); } else { return false; }