Skip to content

Commit bb5f882

Browse files
authored
add support for Total Cast Time on Comet (#685)
1 parent b931e80 commit bb5f882

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Data/SkillStatMap.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,10 @@ return {
18381838
["base_cast_speed_+%"] = {
18391839
mod("Speed", "INC", nil, ModFlag.Cast),
18401840
},
1841+
["added_cast_time_ms"] = {
1842+
mod("TotalCastTime", "BASE", nil),
1843+
div = 1000,
1844+
},
18411845
["active_skill_cast_speed_+%_final"] = {
18421846
mod("Speed", "MORE", nil, ModFlag.Cast),
18431847
},

src/Modules/CalcOffence.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,7 @@ function calcs.offence(env, actor, activeSkill)
23202320
skillModList:NewMod("Multiplier:TraumaStacks", "BASE", skillModList:Sum("BASE", skillCfg, "Multiplier:SustainableTraumaStacks"), "Maximum Sustainable Trauma Stacks")
23212321
end
23222322
local inc = skillModList:Sum("INC", cfg, "Speed")
2323-
output.Speed = 1 / (baseTime / round((1 + inc/100) * more, 2) + skillModList:Sum("BASE", cfg, "TotalAttackTime"))
2323+
output.Speed = 1 / (baseTime / round((1 + inc/100) * more, 2) + skillModList:Sum("BASE", cfg, "TotalAttackTime") + skillModList:Sum("BASE", cfg, "TotalCastTime"))
23242324
output.CastRate = output.Speed
23252325
if skillFlags.selfCast then
23262326
-- Self-cast skill; apply action speed

0 commit comments

Comments
 (0)