From 002a7af6d0c863f88b697e9c8637e438497dc2a5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 23 Aug 2021 19:27:27 -0400 Subject: [PATCH] fixed a test failure --- .../mage/abilities/effects/common/PhaseOutTargetEffect.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/PhaseOutTargetEffect.java b/Mage/src/main/java/mage/abilities/effects/common/PhaseOutTargetEffect.java index 2e5e3d6327..7d062fd457 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/PhaseOutTargetEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/PhaseOutTargetEffect.java @@ -74,7 +74,8 @@ public class PhaseOutTargetEffect extends OneShotEffect { sb.append("Target ").append(mode.getTargets().get(0).getTargetName()); } sb.append(" phase"); - if (mode.getTargets().get(0).getMaxNumberOfTargets() <= 1) { + if (mode.getTargets().isEmpty() + || mode.getTargets().get(0).getMaxNumberOfTargets() <= 1) { sb.append('s'); } sb.append(" out");