fixed incomplete code

This commit is contained in:
Evan Kranzler 2021-02-25 10:50:29 -05:00
parent 35be23537f
commit 1f6332d658

View file

@ -74,16 +74,16 @@ public class ReturnToHandFromGraveyardAllEffect extends OneShotEffect {
@Override @Override
public String getText(Mode mode) { public String getText(Mode mode) {
if(staticText!=null&&!staticText.isEmpty()){ if (staticText != null && !staticText.isEmpty()) {
return staticText; return staticText;
} }
String rule=""; switch (targetController) {
switch (targetController){ case OPPONENT:
case EACH_PLAYER: return "each opponent returns each " + filter.getMessage() + " from their graveyard to their hand";
rule+="each player";break;
case OPPONENT:rule+="opponent";break;
case YOU: 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";
} }
} }
} }