Fix for other channels to have a castbar again

This commit is contained in:
Meow
2026-03-28 19:19:45 +01:00
parent 4fe7795f24
commit c0c3f9a21c
+6 -2
View File
@@ -1205,8 +1205,12 @@ if hasNampower then
-- prefer arg6 if present — some spells (e.g. Volley post-rework) still send
-- arg8=1 but now have a real cast time in arg6, so we only fall back to arg7
-- when arg6 is nil (true channels like Blizzard)
local castTime = arg6 or arg7
local isChannel = spellType == 1 and not arg6
-- arg6=castTime (ms), arg7=channel duration (ms), arg8=spellType
-- For channels: arg6=0 (no cast time), arg7=duration, spellType=1
-- For normal casts: arg6=castTime, arg7=0, spellType=0
-- Note: "not arg6" is wrong in Lua since 0 is truthy - use arg6 == 0 or nil
local castTime = (arg6 and arg6 > 0) and arg6 or arg7
local isChannel = spellType == 1 and (not arg6 or arg6 == 0)
if not casterGuid or not spellId then return end