thirdparty: add support for superwow spell cast

This commit is contained in:
shagu
2024-05-09 10:49:03 +02:00
parent f7c8fdd886
commit 59878b3f8f
5 changed files with 56 additions and 0 deletions
+5
View File
@@ -892,6 +892,11 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
if C.nameplates["showcastbar"] == "1" and ( C.nameplates["targetcastbar"] == "0" or target ) then
local cast, nameSubtext, text, texture, startTime, endTime, isTradeSkill = UnitCastingInfo(target and "target" or name)
-- read enemy casts from SuperWoW if enabled
if superwow_active then
cast, nameSubtext, text, texture, startTime, endTime, isTradeSkill = UnitCastingInfo(nameplate.parent:GetName(1))
end
if not cast then
nameplate.castbar:Hide()
elseif cast then