Skip to content

Commit 383bebf

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Gem attack speed multiplier affecting Crossbow reload speed (#1020)
The Gem attack speed multiplier was affecting the reload time of Crossbow skills as it as implemented as a more attack speed mod instead of modifying the base attack rate Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 04e949f commit 383bebf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Modules/CalcActiveSkill.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ function calcs.buildActiveSkillModList(env, activeSkill)
607607
activeSkill.skillData.attackTime = level.attackTime
608608
end
609609
if level.attackSpeedMultiplier then
610-
skillModList:NewMod("Speed", "MORE", level.attackSpeedMultiplier, activeEffect.grantedEffect.modSource, ModFlag.Attack)
610+
activeSkill.skillData.attackSpeedMultiplier = level.attackSpeedMultiplier
611611
end
612612
if level.cooldown then
613613
activeSkill.skillData.cooldown = level.cooldown

src/Modules/CalcOffence.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,6 +2395,9 @@ function calcs.offence(env, actor, activeSkill)
23952395
else
23962396
local baseTime
23972397
if isAttack then
2398+
if skillData.attackSpeedMultiplier and source.AttackRate then
2399+
source.AttackRate = source.AttackRate * (1 + skillData.attackSpeedMultiplier / 100)
2400+
end
23982401
if skillData.castTimeOverridesAttackTime then
23992402
-- Skill is overriding weapon attack speed
24002403
baseTime = activeSkill.activeEffect.grantedEffect.castTime / (1 + (source.AttackSpeedInc or 0) / 100)
@@ -2494,6 +2497,7 @@ function calcs.offence(env, actor, activeSkill)
24942497
skillModList:NewMod("Multiplier:TraumaStacks", "BASE", skillModList:Sum("BASE", skillCfg, "Multiplier:SustainableTraumaStacks"), "Maximum Sustainable Trauma Stacks")
24952498
end
24962499
local inc = skillModList:Sum("INC", cfg, "Speed")
2500+
24972501
if skillFlags.warcry then
24982502
output.Speed = 1 / output.WarcryCastTime
24992503
else

0 commit comments

Comments
 (0)