Skip to content

fix(battle): refresh UI step list when firing groups change mid-battle#14402

Open
DanVanAtta wants to merge 2 commits into
mainfrom
fixes-wip
Open

fix(battle): refresh UI step list when firing groups change mid-battle#14402
DanVanAtta wants to merge 2 commits into
mainfrom
fixes-wip

Conversation

@DanVanAtta

Copy link
Copy Markdown
Member

When units die before their phase fires (e.g. offensive AA kills a
defender before defensive fire), the engine's firing groups can collapse
from multiple groups into fewer. The UI's step list was generated at
battle start and wouldn't match, causing a "Could not find step name"
warning in BattleStepsPanel.

Fix by recomputing and rebroadcasting the step list to the UI whenever
a generated step name is missing from it, so the display always reflects
what will actually execute.

Fixes #11617

When units die before their phase fires (e.g. offensive AA kills a
defender before defensive fire), the engine's firing groups can collapse
from multiple groups into fewer. The UI's step list was generated at
battle start and wouldn't match, causing a "Could not find step name"
warning in BattleStepsPanel.

Fix by recomputing and rebroadcasting the step list to the UI whenever
a generated step name is missing from it, so the display always reflects
what will actually execute.

Fixes #11617
@DanVanAtta DanVanAtta removed their assignment Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error with "canNotTarget"

2 participants