Skip to content

fix: foundry item bonuses negate if more than one exists#2785

Merged
mjeffw merged 1 commit into
mainfrom
bugfix/1861
Jul 15, 2026
Merged

fix: foundry item bonuses negate if more than one exists#2785
mjeffw merged 1 commit into
mainfrom
bugfix/1861

Conversation

@rinickolous

Copy link
Copy Markdown
Collaborator

fixes #1861

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an issue where item bonuses from multiple Foundry-native items could incorrectly negate each other due to global bonus de-duplication logic treating missing/empty globalid values as the same identifier.

Changes:

  • Adjusts the bonus application guard to only de-duplicate when an item has a truthy globalid.
  • Avoids adding falsy globalid values to the de-duplication tracking list, allowing multiple “native” items (with empty globalid) to each contribute bonuses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mjeffw
mjeffw merged commit b3a011d into main Jul 15, 2026
1 check passed
@mjeffw
mjeffw deleted the bugfix/1861 branch July 15, 2026 17:19
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.

Multiple Foundry Native Items with Features + Bonuses negate one Bonus

3 participants