forked from External/mage
UI: added new cheat engine for manual testing (see #4334)
This commit is contained in:
parent
d1475f28b4
commit
eae85e71bc
3 changed files with 295 additions and 82 deletions
|
|
@ -668,7 +668,7 @@ public class GameController implements GameCallback {
|
|||
} catch (GameException ex) {
|
||||
logger.warn(ex.getMessage());
|
||||
}
|
||||
addCardsForTesting(game);
|
||||
addCardsForTesting(game, playerId);
|
||||
updateGame();
|
||||
}
|
||||
|
||||
|
|
@ -919,8 +919,8 @@ public class GameController implements GameCallback {
|
|||
/**
|
||||
* Adds cards in player's hands that are specified in config/init.txt.
|
||||
*/
|
||||
private void addCardsForTesting(Game game) {
|
||||
SystemUtil.addCardsForTesting(game);
|
||||
private void addCardsForTesting(Game game, UUID playerId) {
|
||||
SystemUtil.addCardsForTesting(game, null, game.getPlayer(playerId));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue