diff --git a/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java b/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java index 9fc0119d60..60941349b1 100644 --- a/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java +++ b/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java @@ -712,7 +712,7 @@ public class TestPlayer implements Player { // show battlefield if (params[0].equals(SHOW_COMMAND_BATTLEFIELD) && params.length == 1) { printStart(action.getActionName()); - printPermanents(game.getBattlefield().getAllActivePermanents(computerPlayer.getId())); + printPermanents(game, game.getBattlefield().getAllActivePermanents(computerPlayer.getId())); printEnd(); actions.remove(action); wasProccessed = true; @@ -816,7 +816,7 @@ public class TestPlayer implements Player { } } - private void printPermanents(List cards) { + private void printPermanents(Game game, List cards) { System.out.println("Total permanents: " + cards.size()); List data = cards.stream() @@ -824,6 +824,7 @@ public class TestPlayer implements Player { + " - " + c.getPower().getValue() + "/" + c.getToughness().getValue() + ", " + (c.isTapped() ? "Tapped" : "Untapped") + + (c.getAttachedTo() == null ? "" : ", attached to " + game.getPermanent(c.getAttachedTo()).getIdName()) )) .sorted() .collect(Collectors.toList());