From 63382aed93b9b88d28a921f896bc7329df92371b Mon Sep 17 00:00:00 2001 From: Devon Richards Date: Wed, 21 Jun 2017 23:51:59 -0500 Subject: [PATCH] Some stylistic fixes for code review --- .../src/mage/player/human/HumanPlayer.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java b/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java index fcbbb7ef3a..7e8a4b3e10 100644 --- a/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java +++ b/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java @@ -125,7 +125,9 @@ public class HumanPlayer extends PlayerImpl { } protected boolean isExecutingMacro() { - return !actionQueue.isEmpty() || (actionIterations > 0 && !actionQueueSaved.isEmpty()); + return !recordingMacro + && (!actionQueue.isEmpty() + || (actionIterations > 0 && !actionQueueSaved.isEmpty())); } protected boolean pullResponseFromQueue(Game game) { @@ -152,7 +154,10 @@ public class HumanPlayer extends PlayerImpl { } protected void waitForResponse(Game game) { - if(!recordingMacro && pullResponseFromQueue(game)) return; + if (isExecutingMacro()) { + pullResponseFromQueue(game); + return; + } response.clear(); logger.debug("Waiting response from player: " + getId()); game.resumeTimer(getTurnControlledBy());