fix reserved turn permission constraints

This commit is contained in:
2026-07-26 18:57:27 +00:00
parent 7a18bb48f2
commit d1e9d5fc75
13 changed files with 482 additions and 18 deletions
+1 -4
View File
@@ -596,13 +596,10 @@ export const mustBeNPC = (): Constraint => ({
if (!general) {
return unknownOrDeny(ctx, [req], '장수 정보가 없습니다.');
}
// Assuming npcState >= 2 means NPC. Need to verify exact logic if possible,
// but typically 0=human, 1=?, 2=NPC.
// Legacy: $general->getNPC() where 0:User, 1:Virtual User(unused?), 2:NPC ...
if (general.npcState >= 2) {
return allow();
}
return { kind: 'deny', reason: 'NPC가 아닙니다.' };
return { kind: 'deny', reason: 'NPC여야 합니다.' };
},
});