Fixed a rule text problem of PhaseOutTargetEffect.

This commit is contained in:
LevelX2 2016-10-23 00:08:41 +02:00
parent 08b2708f3d
commit f48e20a48c

View file

@ -57,7 +57,7 @@ public class PhaseOutTargetEffect extends OneShotEffect {
}
return true;
}
for (UUID targetId :this.getTargetPointer().getTargets(game, source)) {
for (UUID targetId : this.getTargetPointer().getTargets(game, source)) {
Permanent permanent = game.getPermanent(targetId);
if (permanent != null) {
permanent.phaseOut(game);
@ -73,7 +73,7 @@ public class PhaseOutTargetEffect extends OneShotEffect {
}
StringBuilder sb = new StringBuilder();
if (targetDescription.length() > 0) {
if (targetDescription == null || targetDescription.length() > 0) {
sb.append(targetDescription);
} else {
sb.append("Target ").append(mode.getTargets().get(0).getTargetName());
@ -82,4 +82,4 @@ public class PhaseOutTargetEffect extends OneShotEffect {
return sb.toString();
}
}
}