fix active action inheritance accounting

This commit is contained in:
2026-07-26 21:49:40 +00:00
parent 82718a1d81
commit 2a8a579b75
5 changed files with 159 additions and 6 deletions
@@ -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);
}