update wordings so they are not blank

This commit is contained in:
Zach Halpern 2019-01-10 22:14:29 -05:00
parent 1712b05c33
commit 163a5e45d3
7 changed files with 25 additions and 23 deletions

View file

@ -52,9 +52,8 @@ public class TapAllTargetPlayerControlsEffect extends OneShotEffect {
return staticText;
}
if (mode.getTargets().isEmpty()) {
return "";
}
return "tap all " + filter.toString() + " target " + mode.getTargets().get(0).getTargetName() + " controls";
return "tap all " + filter.toString() + " target " +
(mode.getTargets().size() == 0 ? "player" : mode.getTargets().get(0).getTargetName()) +
" controls";
}
}