PhaseOutTargetEffect: fix "Null phases out"

This commit is contained in:
Neil Gentleman 2016-11-05 10:11:29 -07:00
parent 813c8cdd8a
commit e6dc8a56e6

View file

@ -73,7 +73,7 @@ public class PhaseOutTargetEffect extends OneShotEffect {
}
StringBuilder sb = new StringBuilder();
if (targetDescription == null || targetDescription.length() > 0) {
if (targetDescription != null && targetDescription.length() > 0) {
sb.append(targetDescription);
} else {
sb.append("Target ").append(mode.getTargets().get(0).getTargetName());