mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-10 07:30:01 +00:00
thirdparty: add support for superwow spell cast
This commit is contained in:
@@ -90,6 +90,12 @@ pfUI:RegisterModule("castbar", "vanilla:tbc", function ()
|
||||
cast, nameSubtext, text, texture, startTime, endTime, isTradeSkill = UnitChannelInfo(this.unitstr or this.unitname)
|
||||
end
|
||||
|
||||
-- read enemy casts from SuperWoW if enabled
|
||||
if superwow_active and this.unitstr and not UnitIsUnit(this.unitstr, 'player') then
|
||||
local _, guid = UnitExists(this.unitstr)
|
||||
cast, nameSubtext, text, texture, startTime, endTime, isTradeSkill = UnitCastingInfo(guid)
|
||||
end
|
||||
|
||||
if cast then
|
||||
local duration = endTime - startTime
|
||||
local max = duration / 1000
|
||||
|
||||
Reference in New Issue
Block a user