Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix another cause of "Could not find step name" #11838

Merged
merged 4 commits into from
Aug 1, 2023

Conversation

asvitkine
Copy link
Contributor

@asvitkine asvitkine commented Jul 31, 2023

Change Summary & Additional Notes

The error would happen when there are multiple casualty steps at first, but when we get to that point in combat, some of those get removed (due units dying and not having a counterattack) and we may end up with a generic casualty step. To fix this, we keep track of which firing units each casualty step had and match based on those.

Adds a test for the fix that's confirmed to fail without it.

Note: This is fixing a 2.6 bug, so no release notes.
Fixes another cause of: #11617

Release Note

The error would happen when there are multiple casualty steps at first, but when we get to that point in combat, some of those get removed (due units dying and not having a counterattack) and we may end up with a generic casualty step. To fix this, we keep track of which firing units each casualty step had and match based on those.
@asvitkine asvitkine marked this pull request as draft July 31, 2023 01:10
@asvitkine asvitkine marked this pull request as ready for review August 1, 2023 03:31
@asvitkine asvitkine merged commit 8d95571 into triplea-game:master Aug 1, 2023
1 check passed
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.

1 participant