1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-03 09:18:59 -09:00

fixed a potential exception

This commit is contained in:
Evan Kranzler 2020-07-02 22:51:31 -04:00
parent 660862b75f
commit e471fef399

View file

@ -74,6 +74,9 @@ public class BecomeBlockedTargetEffect extends OneShotEffect {
return staticText;
}
StringBuilder sb = new StringBuilder();
if (mode.getTargets().isEmpty()) {
return "that creature becomes blocked";
}
Target target = mode.getTargets().get(0);
if (target.getNumberOfTargets() == 1) {
String targetName = target.getTargetName();