mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
Little refactor, additional logs for CheckPlayableState error;
This commit is contained in:
parent
7b298f84a7
commit
2efdb464fc
5 changed files with 12 additions and 9 deletions
|
|
@ -2609,6 +2609,10 @@ public class HumanPlayer extends PlayerImpl {
|
|||
private boolean gameInCheckPlayableState(Game game, boolean ignoreWarning) {
|
||||
if (game.inCheckPlayableState()) {
|
||||
if (!ignoreWarning) {
|
||||
logger.warn(String.format("Current stack: %d - %s",
|
||||
game.getStack().size(),
|
||||
game.getStack().stream().map(Object::toString).collect(Collectors.joining(", "))
|
||||
));
|
||||
logger.warn("Player interaction in checkPlayableState", new Throwable());
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue