From 1f6332d658829978292d5d9897b7fe3dd993eeb3 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 25 Feb 2021 10:50:29 -0500 Subject: [PATCH] fixed incomplete code --- .../common/ReturnToHandFromGraveyardAllEffect.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/ReturnToHandFromGraveyardAllEffect.java b/Mage/src/main/java/mage/abilities/effects/common/ReturnToHandFromGraveyardAllEffect.java index 11d3fd4595..33b9c52c2d 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/ReturnToHandFromGraveyardAllEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/ReturnToHandFromGraveyardAllEffect.java @@ -74,16 +74,16 @@ public class ReturnToHandFromGraveyardAllEffect extends OneShotEffect { @Override public String getText(Mode mode) { - if(staticText!=null&&!staticText.isEmpty()){ + if (staticText != null && !staticText.isEmpty()) { return staticText; } - String rule=""; - switch (targetController){ - case EACH_PLAYER: - rule+="each player";break; - case OPPONENT:rule+="opponent";break; + switch (targetController) { + case OPPONENT: + return "each opponent returns each " + filter.getMessage() + " from their graveyard to their hand"; case YOU: - + return "return each " + filter.getMessage() + " from your graveyard to your hand"; + default: + return "each player returns each " + filter.getMessage() + " from their graveyard to their hand"; } } }