mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Fixed a rule text problem of PhaseOutTargetEffect.
This commit is contained in:
parent
08b2708f3d
commit
f48e20a48c
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue