From 21c80a3caad6af202b60fbdd73742099f6254b9d Mon Sep 17 00:00:00 2001 From: Bruno Chevalier Date: Mon, 31 Aug 2020 13:54:09 +0200 Subject: [PATCH] Effects.java: remove redundant check. When in the else part, the lastRule already is guaranteed to not end on a dot --- Mage/src/main/java/mage/abilities/effects/Effects.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/effects/Effects.java b/Mage/src/main/java/mage/abilities/effects/Effects.java index dce5556d723..d93b1c21c52 100644 --- a/Mage/src/main/java/mage/abilities/effects/Effects.java +++ b/Mage/src/main/java/mage/abilities/effects/Effects.java @@ -72,7 +72,7 @@ public class Effects extends ArrayList { || lastRule.endsWith(".")) { endString = " "; // if lastRule does not have appropriate punctuation, add the default ". " - } else if (!lastRule.endsWith(".") && !lastRule.endsWith("
")) { + } else if (!lastRule.endsWith("
")) { endString = ". "; } if (nextRule.length() > 3) {