Skip to content

Commit 6419bdf

Browse files
author
LocalIdentity
committed
Fix Greater Chain not working correctly with Poison Conc of Bouncing
Wasn't taking into account the extra chains gained from the projectiles for the skill
1 parent 7cf93d9 commit 6419bdf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Modules/CalcOffence.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,11 +1017,12 @@ function calcs.offence(env, actor, activeSkill)
10171017
if skillModList:Flag(skillCfg, "CannotChain") or skillModList:Flag(skillCfg, "NoAdditionalChains")then
10181018
output.ChainMaxString = "Cannot chain"
10191019
else
1020-
output.ChainMax = skillModList:Sum("BASE", skillCfg, "ChainCountMax", not skillFlags.projectile and "BeamChainCountMax" or nil) * skillModList:More(skillCfg, "ChainCountMax")
1020+
output.ChainMax = skillModList:Sum("BASE", skillCfg, "ChainCountMax", not skillFlags.projectile and "BeamChainCountMax" or nil)
10211021
if skillModList:Flag(skillCfg, "AdditionalProjectilesAddChainsInstead") then
10221022
local projCount = skillModList:Flag(skillCfg, "SingleProjectile") and 0 or m_floor((skillModList:Sum("BASE", skillCfg, "ProjectileCount") - 1) * skillModList:More(skillCfg, "ProjectileCount"))
10231023
output.ChainMax = output.ChainMax + projCount
10241024
end
1025+
output.ChainMax = output.ChainMax * skillModList:More(skillCfg, "ChainCountMax")
10251026
output.ChainMaxString = output.ChainMax
10261027
output.Chain = m_min(output.ChainMax, skillModList:Sum("BASE", skillCfg, "ChainCount"))
10271028
output.ChainRemaining = m_max(0, output.ChainMax - output.Chain)

0 commit comments

Comments
 (0)