fix: CAST_PATTERN now matches both 'cast' and 'casts' for Forge compatibility

This commit is contained in:
KoalaTrapLord authored and GitHub committed 2026-03-20 15:04:37 -04:00
1 parent eb59a2cd2e
commit f8b13703b8
1 file changed
+1 -1
@@ -117,7 +117,7 @@ public class BatchRunner {
// Format: "Add To Stack: Ai(N)-DeckName cast CardName"
// Note: Forge uses past tense "cast" not "casts"
private static final Pattern CAST_PATTERN =
Pattern.compile("(?:Add To Stack:\\s*)?Ai\\(?(\\d+)\\)?-[^\\s].*?\\s+cast\\s+(.+?)(?:\\s+targeting.*)?$", Pattern.CASE_INSENSITIVE);
Pattern.compile("(?:Add To Stack:\\s*)?Ai\\(?(\\d+)\\)?-[^\\s].*?\\s+casts?\\s+(.+?)(?:\\s+targeting.*)?$", Pattern.CASE_INSENSITIVE);
// "Land: Ai(1)-Name played LandName (SET)" or "Ai(1)-Name plays LandName."
// Forge verbose log uses "played" (past tense) with set info in parens, no trailing period