Skip to content

Commit

Permalink
Merge pull request #2386 from Wires77/issue-2382
Browse files Browse the repository at this point in the history
Fix brand attachment limit for several skills
  • Loading branch information
Wires77 authored Apr 4, 2021
2 parents 294df38 + 3a6966b commit f2570da
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1001,12 +1001,7 @@ function calcs.perform(env)

for _, activeSkill in ipairs(env.player.activeSkillList) do
if activeSkill.skillFlags.brand then
local attachLimit = env.player.mainSkill.skillModList:Sum("BASE", env.player.mainSkill.skillCfg, "BrandsAttachedLimit")
if activeSkill.activeEffect.grantedEffect.name == "Arcanist Brand" then
attachLimit = activeSkill.skillModList:Sum("BASE", activeSkill.skillCfg, "BrandsAttachedLimit")
elseif activeSkill.activeEffect.grantedEffect.name == "Wintertide Brand" then
attachLimit = attachLimit + 1
end
local attachLimit = activeSkill.skillModList:Sum("BASE", activeSkill.skillCfg, "BrandsAttachedLimit")
local attached = modDB:Sum("BASE", nil, "Multiplier:ConfigBrandsAttachedToEnemy")
local activeBrands = modDB:Sum("BASE", nil, "Multiplier:ConfigActiveBrands")
local actual = m_min(attachLimit, attached)
Expand Down

0 comments on commit f2570da

Please sign in to comment.