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 stacking limit logic for placement dialog. #12000

Merged
merged 4 commits into from
Sep 29, 2023

Conversation

asvitkine
Copy link
Contributor

@asvitkine asvitkine commented Sep 29, 2023

Change Summary & Additional Notes

Fixes: #11994
(2.6 bug)

The logic to filter out which units should be shown in the place dialog was too aggressive and was resulting in filtering out a unit of type B when it shared a limit with a unit of type A. This change relaxes that logic specifically for the placement dialog case and adds test coverage.

Also moves a helper function to UnitUtils.

Release Note

@asvitkine asvitkine merged commit 2568c5f into triplea-game:master Sep 29, 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.

TripleA-2.6+14513 not displaying units to place properly
1 participant