Fix Earthbend target for verify check

This commit is contained in:
Steven Knipe 2025-11-18 23:01:41 -08:00
parent e7e6623ec9
commit 965bf8bea3

View file

@ -2195,7 +2195,8 @@ public class VerifyCardDataTest {
// Note that the check includes reminder text, so any keyword ability with reminder text always included in the card text doesn't need to be added // Note that the check includes reminder text, so any keyword ability with reminder text always included in the card text doesn't need to be added
// FIN added equip abilities with flavor words, allow for those. There are also cards that affect equip costs or equip abilities, exclude those // FIN added equip abilities with flavor words, allow for those. There are also cards that affect equip costs or equip abilities, exclude those
// Technically Enchant should be in this list, but that's added to the SpellAbility in XMage // Technically Enchant should be in this list, but that's added to the SpellAbility in XMage
Pattern targetKeywordRegexPattern = Pattern.compile("^((.*— )?equip(?! cost| abilit)|bestow|partner with|modular|backup|earthbend)\\b", Pattern.MULTILINE); // Earthbend is an action word and thus can be anywhere, the rest are keywords that are always first in the line
Pattern targetKeywordRegexPattern = Pattern.compile("earthbend |^((.*— )?equip(?! cost| abilit)|bestow|partner with|modular|backup)\\b", Pattern.MULTILINE);
// Checks for targeted reflexive or delayed triggered abilities, ones that only can trigger as a result of another ability // Checks for targeted reflexive or delayed triggered abilities, ones that only can trigger as a result of another ability
// and thus have their "when" located after a previous statement (detected by a period or comma followed by a space) instead of the start. // and thus have their "when" located after a previous statement (detected by a period or comma followed by a space) instead of the start.