Skip to content

Commit

Permalink
FIX: Ailement mods from skill active skill gems not applying (PathOfB…
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak authored Sep 10, 2022
1 parent 4cc920f commit 3bbdc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3050,7 +3050,7 @@ function calcs.perform(env, avoidCache)
end
override = m_max(override, effect or 0)
end
output["Maximum"..ailment] = modDB:Override(nil, ailment.."Max") or (ailmentData[ailment].max + modDB:Sum("BASE", nil, ailment.."Max"))
output["Maximum"..ailment] = modDB:Override(nil, ailment.."Max") or (ailmentData[ailment].max + modDB:Sum("BASE", nil, ailment.."Max") + env.player.mainSkill.baseSkillModList:Sum("BASE", nil, ailment.."Max"))
output["Current"..ailment] = m_floor(m_min(m_max(override, enemyDB:Sum("BASE", nil, ailment.."Val")), output["Maximum"..ailment]) * (10 ^ ailmentData[ailment].precision)) / (10 ^ ailmentData[ailment].precision)
for _, mod in ipairs(val.mods(output["Current"..ailment])) do
enemyDB:AddMod(mod)
Expand Down

0 comments on commit 3bbdc80

Please sign in to comment.