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

13505 - Prevent GameRefresher moving Decks with duplicate names #13507

Open
wants to merge 2 commits into
base: release-3.7
Choose a base branch
from

Conversation

BrentEaston
Copy link
Collaborator

No description provided.

@BrentEaston BrentEaston added bug Something isn't working Awaiting Testing/Feedback Change is good, but neeeds testing or feedback 3.7.14 labels Jul 26, 2024
@BrentEaston BrentEaston self-assigned this Jul 26, 2024

if (first == null) {
first = pile;
if (deck.getMap().equals(pile.getMap())) {
Copy link

@jonathanrwatts jonathanrwatts Jul 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I misunderstanding something here, or should this if statement be outside of the (first == null) check, instead of within it? Is it not possible that you would find a match on the same map after finding a match on an earlier map? As written, it looks to me like it stops checking for a matching map once it's found any matching deck name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jonathon, my cut and paste hatchet job got out of hand. That code makes no sense at all. I have committed a new version.

@uckelman uckelman added this to the 3.7.15 milestone Aug 18, 2024
@uckelman uckelman removed the 3.7.14 label Aug 18, 2024
@uckelman uckelman modified the milestones: 3.7.15, 3.7.16 Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Testing/Feedback Change is good, but neeeds testing or feedback bug Something isn't working Work In Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refresh Counters can move counters to a different map if deck names match
3 participants