From b04e826c96afb0b30cc7e5c754e21db818d782a5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 3 Mar 2022 09:05:40 -0500 Subject: [PATCH] small change to verify --- .../src/test/java/mage/verify/VerifyCardDataTest.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java index d0c2a69890..c005d7ec72 100644 --- a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java +++ b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java @@ -1488,6 +1488,13 @@ public class VerifyCardDataTest { newRule = newRule.replaceAll("(?i) \\(.+\\)", ""); newRule = newRule.replaceAll("(?i) \\(.+\\)", ""); + // fix specifically for mana abilities + if (newRule.startsWith("({T}: Add")) { + newRule = newRule + .replace("(", "") + .replace(")", ""); + } + // replace special text and symbols newRule = newRule .replace("{this}", cardName) @@ -1619,10 +1626,6 @@ public class VerifyCardDataTest { } String refText = ref.text; - // lands fix - if (refText.startsWith("(") && refText.endsWith(")")) { - refText = refText.substring(1, refText.length() - 1); - } // planeswalker fix [-7]: xxx refText = refText.replaceAll("\\[([\\−\\+]?\\d*)\\]\\: ", "$1: ").replaceAll("\\[\\−X\\]\\: ", "-X: ");