From 338cd51d25cfe012785182aeb71f40b20bbddcb0 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Fri, 4 Sep 2026 00:34:31 +0700 Subject: [PATCH] fix(validation) : support legacy weapon paths --- lib/guides/validation-messages.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/guides/validation-messages.ts b/lib/guides/validation-messages.ts index 7fcb21c..22266e3 100644 --- a/lib/guides/validation-messages.ts +++ b/lib/guides/validation-messages.ts @@ -41,6 +41,7 @@ function issueContext(section: GuideValidationSection, path: readonly PropertyKe const memberIndex = indexAfter(path, "members"); const sectionIndex = indexAfter(path, "sections"); + if (section === "weapon" && groupIndex === null && rowIndex !== null) return `อาวุธอันดับ ${rowIndex + 1}`; if (section === "weapon" && groupIndex !== null) { return rowIndex === null ? `Condition ${groupIndex + 1}` : `Condition ${groupIndex + 1} · อาวุธอันดับ ${rowIndex + 1}`; }