Skip to content

Commit 57b6daa

Browse files
authored
Fix many supports not adding cooldown (#2185)
* fix many supports not adding cooldown to ActiveSkill * clean up
1 parent 623f6dd commit 57b6daa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Data/SkillStatMap.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,7 @@ return {
576576
div = 1000,
577577
},
578578
["support_hourglass_display_cooldown_time_ms"] = {
579-
mod("CooldownRecovery", "BASE", nil),
580-
div = 1000,
579+
-- handled around 700 of CalcActiveSkill, search for level.cooldown
581580
},
582581
["base_cooldown_modifiable_repeat_interval_ms"] = {
583582
mod("CooldownRecovery", "BASE", nil),

src/Modules/CalcActiveSkill.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,9 @@ function calcs.buildActiveSkillModList(env, activeSkill)
698698
if level.spiritReservationFlat then
699699
skillModList:NewMod("ExtraSpirit", "BASE", level.spiritReservationFlat, skillEffect.grantedEffect.modSource)
700700
end
701+
if level.cooldown then
702+
skillModList:NewMod("CooldownRecovery", "BASE", level.cooldown, skillEffect.grantedEffect.modSource)
703+
end
701704
-- Handle multiple triggers situation and if triggered by a trigger skill save a reference to the trigger.
702705
local match = skillEffect.grantedEffect.addSkillTypes and (not skillFlags.disable)
703706
if match and skillEffect.grantedEffect.isTrigger then

0 commit comments

Comments
 (0)