fix reserved turn permission constraints
This commit is contained in:
@@ -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여야 합니다.' };
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user