Skip to content

Commit 9b214ef

Browse files
emptyriversStanzilla
authored andcommitted
fix LoC option
1 parent 75f7932 commit 9b214ef

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

WeakAuras/GenericTrigger.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2611,6 +2611,17 @@ do
26112611
end
26122612
end
26132613

2614+
2615+
---@param identifier string | number
2616+
---@return number? startTime, number? duration
2617+
function WeakAuras.GetSpellLossOfControlCooldown(identifier)
2618+
if WeakAuras.IsTWW() then
2619+
return C_Spell.GetSpellLossOfControlCooldown(identifier)
2620+
else
2621+
return GetSpellLossOfControlCooldown(identifier)
2622+
end
2623+
end
2624+
26142625
---@param id string
26152626
---@param ignoreRuneCD boolean
26162627
---@param showgcd boolean

WeakAuras/Prototypes.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5260,7 +5260,7 @@ Private.event_prototypes = {
52605260
local charges, maxCharges, spellCount, chargeGainTime, chargeLostTime = WeakAuras.GetSpellCharges(spellname, ignoreSpellKnown, followoverride)
52615261
local stacks = maxCharges and maxCharges ~= 1 and charges or (spellCount and spellCount > 0 and spellCount) or nil;
52625262
if showlossofcontrol and startTime and duration then
5263-
local locStart, locDuration = GetSpellLossOfControlCooldown(spellname);
5263+
local locStart, locDuration = WeakAuras.GetSpellLossOfControlCooldown(spellname);
52645264
if locStart and locDuration and (locStart + locDuration) > (startTime + duration) then
52655265
startTime = locStart
52665266
duration = locDuration

0 commit comments

Comments
 (0)