fix general movement command parity

This commit is contained in:
Hide_D committed 2026-07-26 15:21:37 +00:00
1 parent e6fe5cda63
commit c003f9e112
7 files changed
+309 -10

No files matched your search

+4
View File
@@ -662,6 +662,10 @@ export const notCapital = (checkCurrentCity = false): Constraint => ({
}
if (targetCityId === nation.capitalCityId) {
const general = readGeneral(ctx, view);
if (checkCurrentCity && general && general.officerLevel >= 2 && general.officerLevel <= 4) {
return allow();
}
return { kind: 'deny', reason: '수도입니다.' };
}
return allow();