fix active action inheritance accounting

This commit is contained in:
Hide_D committed 2026-07-26 21:49:40 +00:00
1 parent 82718a1d81
commit 2a8a579b75
5 files changed
+159 -6

No files matched your search

@@ -1573,12 +1573,6 @@ export const createReservedTurnHandler = async (options: {
} else {
meta.killturn = worldKillturn;
}
const active = typeof meta.inherit_active_action === 'number' ? meta.inherit_active_action : 0;
if (generalResult.actionKey !== DEFAULT_ACTION) {
meta.inherit_active_action = active + 1;
} else {
meta.inherit_active_action = active;
}
currentGeneral = { ...currentGeneral, meta };
worldOverlay?.syncGeneral(currentGeneral);
}