Skip to content

Fix "against Enemies within 2m" mods not applying unless distance was exactly 2m#1949

Merged
LocalIdentity merged 3 commits into
PathOfBuildingCommunity:devfrom
avtobus32:fix-modifier-threshold
May 24, 2026
Merged

Fix "against Enemies within 2m" mods not applying unless distance was exactly 2m#1949
LocalIdentity merged 3 commits into
PathOfBuildingCommunity:devfrom
avtobus32:fix-modifier-threshold

Conversation

@avtobus32
Copy link
Copy Markdown
Contributor

@avtobus32 avtobus32 commented May 23, 2026

Fixes # .

Description of the problem being solved:

MultiplierThreshold with "upper=true" was applied only if value exact match threshold, while it should use threshould as upper limit
I have experienced this with mod "Projectiles have 40% increased Critical Damage Bonus against Enemies within 2m" that should apply whenever the distance is <= 20 units, but was applied only when distance is exactly 20units

Steps taken to verify a working solution:

  • Removed "and tag.exact" check that i couldnt find any reference to, and i believe it is dev/testing product of Adding support for Uhtred's Augury / Exodus / Omen: bbffdae

Link to a build that showcases this PR:

https://pobb.in/3rOxLc4Ge0WJ

Before screenshot:

After screenshot:

MultiplierThreshold with "upper=true" applies whenever mult <= threshold

avtobus32 and others added 3 commits May 23, 2026 11:17
Changing this logic broke the previous handling of these poison mods
@LocalIdentity LocalIdentity added the bug: behaviour Behavioral differences label May 24, 2026
@LocalIdentity LocalIdentity changed the title Fix ModifierThreshold upper tag Fix "against Enemies within 2m" mods not applying unless distance was exactly 2m May 24, 2026
@LocalIdentity LocalIdentity added the pob1 Should also be merged into PoB1 Repo label May 24, 2026
@LocalIdentity LocalIdentity merged commit f469b23 into PathOfBuildingCommunity:dev May 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: behaviour Behavioral differences pob1 Should also be merged into PoB1 Repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants