Skip to content

Support "+X% to Fire Spell Critical Hit Chance" affix#2246

Open
luther-rotmg wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
luther-rotmg:fix/2226-fire-spell-crit-chance
Open

Support "+X% to Fire Spell Critical Hit Chance" affix#2246
luther-rotmg wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
luther-rotmg:fix/2226-fire-spell-crit-chance

Conversation

@luther-rotmg

Copy link
Copy Markdown
Contributor

Closes #2226.

Problem

The "of Xoph" suffix — +X% to Fire Spell Critical Hit Chance (mod group FireSpellBaseCriticalChance) — had no modNameList entry, so the fire spell qualifier was left unparsed and the affix granted nothing.

Fix

Adds a modNameList mapping to CritChance (BASE) restricted to fire spells via ModFlag.Spell + KeywordFlag.Fire, matching the existing fire spells convention already used in preFlagList.

Testing

Adds a parse regression test in spec/System/TestItemParse_spec.lua: +5% to Fire Spell Critical Hit Chance grants +5 base crit to fire spells, and 0 to attacks / 0 to cold spells. The full test suite and the ModCache check pass.

The "of Xoph" suffix ("+X% to Fire Spell Critical Hit Chance", mod group
FireSpellBaseCriticalChance) had no modNameList entry, so the "fire spell"
qualifier was left unparsed and the affix did nothing.

Add a modNameList mapping to CritChance (BASE) restricted to fire spells via
ModFlag.Spell + KeywordFlag.Fire, matching the codebase's existing "fire spells"
convention in preFlagList. Add a parse regression test.

Closes PathOfBuildingCommunity#2226
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.

support for "+X% to Fire Spell Critical Hit Chance" affix

2 participants