fix general movement command parity

This commit is contained in:
2026-07-26 15:21:37 +00:00
parent e6fe5cda63
commit c003f9e112
7 changed files with 309 additions and 10 deletions
+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();