Address crash points of JSON tests

This commit is contained in:
Zach Halpern 2019-01-10 21:27:38 -05:00
parent e4e78d5509
commit 8a5f2288f9
9 changed files with 125 additions and 87 deletions

View file

@ -51,6 +51,10 @@ public class TapAllTargetPlayerControlsEffect extends OneShotEffect {
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
if (mode.getTargets().isEmpty()) {
return "";
}
return "tap all " + filter.toString() + " target " + mode.getTargets().get(0).getTargetName() + " controls";
}
}