forked from External/mage
Address crash points of JSON tests
This commit is contained in:
parent
e4e78d5509
commit
8a5f2288f9
9 changed files with 125 additions and 87 deletions
|
|
@ -65,8 +65,12 @@ public class UntapTargetEffect extends OneShotEffect {
|
|||
if (staticText != null && !staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
Target target = mode.getTargets().get(0);
|
||||
|
||||
if (mode.getTargets().isEmpty()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
Target target = mode.getTargets().get(0);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("untap ");
|
||||
if (target.getNumberOfTargets() == 0) {
|
||||
|
|
@ -84,4 +88,4 @@ public class UntapTargetEffect extends OneShotEffect {
|
|||
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue