Skip to content

Commit

Permalink
stopgap fix until I get time to properly fix it (#7769)
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle authored Jul 22, 2024
1 parent 917247a commit 4f9a818
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Modules/CalcOffence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,9 @@ function calcs.offence(env, actor, activeSkill)
end
output.TrapThrowingSpeed = baseSpeed * calcLib.mod(skillModList, skillCfg, "TrapThrowingSpeed") * output.ActionSpeedMod
local trapThrowCount = calcLib.val(skillModList, "TrapThrowCount", skillCfg)
if skillData.trapCooldown or skillData.cooldown then
trapThrowCount = 1
end
output.TrapThrowCount = trapThrowCount
output.TrapThrowingSpeed = m_min(output.TrapThrowingSpeed, data.misc.ServerTickRate)
output.TrapThrowingTime = 1 / output.TrapThrowingSpeed
Expand Down Expand Up @@ -1224,6 +1227,9 @@ function calcs.offence(env, actor, activeSkill)
output.MineLayingSpeed = baseSpeed * calcLib.mod(skillModList, skillCfg, "MineLayingSpeed") * output.ActionSpeedMod
-- Calculate additional mine throw
local mineThrowCount = calcLib.val(skillModList, "MineThrowCount", skillCfg)
if skillData.trapCooldown or skillData.cooldown then
mineThrowCount = 1
end
output.MineThrowCount = mineThrowCount
if mineThrowCount >= 1 then
-- Throwing Mines takes 10% more time for each *additional* Mine thrown
Expand Down

0 comments on commit 4f9a818

Please sign in to comment.