Skip to content

Fix MORE queries that pass "MORE" as the cfg argument - #2571

Open
Azaril wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
Azaril:fix-more-mod-cfg
Open

Azaril wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
Azaril:fix-more-mod-cfg

Conversation

@Azaril

@Azaril Azaril commented Oct 25, 2026

Copy link
Copy Markdown

Fixes #2569 .

Description of the problem being solved:

ModStore:More(cfg, ...) takes the cfg as its first argument, but four calls in CalcOffence.lua passed "MORE" there: Accuracy, AccuracyVsEnemy, ReloadSpeed and CritMultiplier. Those queries ran with no flags, keyword flags or skill cfg, so MORE modifiers that depend on them were dropped. Examples are Unerring Power's more Accuracy while Empowered by The Empty Roar, and "more Critical Damage Bonus with Attacks".

This removes the stray argument.

Steps taken to verify a working solution:

Link to a build that showcases this PR:

See the build code in #2569.

Before screenshot:

Calcs: Accuracy 90, 25% chance to hit.

After screenshot:

Calcs: Accuracy 117, 31% chance to hit.

ModStore:More(cfg, ...) takes the cfg as its first argument, but four call
sites in CalcOffence passed the string "MORE" there. That made the query run
with flags and keywordFlags of 0 and no skill cfg, so MORE modifiers with a
ModFlag, a KeywordFlag or a cfg-dependent condition were dropped:

- Accuracy and AccuracyVsEnemy
- ReloadSpeed
- CritMultiplier

For example, Unerring Power's more Accuracy while Empowered was lost when
attacks were Empowered by The Empty Roar, and "50% more Critical Damage Bonus
with Attacks" did not apply to attacks.
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.

Conditional or attack-only MORE Accuracy, Critical Damage Bonus and Reload Speed mods are ignored (e.g. Unerring Power with The Empty Roar)

1 participant