From c0c3f9a21ccbc4f13ca268d0f06140d0bdeb0aad Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sat, 28 Mar 2026 19:19:45 +0100 Subject: [PATCH] Fix for other channels to have a castbar again --- libs/libdebuff.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/libdebuff.lua b/libs/libdebuff.lua index 8e358100..5dbad640 100644 --- a/libs/libdebuff.lua +++ b/libs/libdebuff.lua @@ -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