mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-23 08:06:55 +00:00
tbc: override libdebuff by native api call
This commit is contained in:
+10
-1
@@ -34,12 +34,21 @@ function pfUI.api.CreateFrame(f, n, p, t)
|
||||
end
|
||||
end
|
||||
|
||||
-- tbc changed the return values
|
||||
-- fake vanilla UnitBuff return values
|
||||
function pfUI.api.UnitBuff(unitstr, i)
|
||||
local name, rank, icon, count = _G.UnitBuff(unitstr, i)
|
||||
return icon, count
|
||||
end
|
||||
|
||||
-- fake vanilla UnitDebuff return values
|
||||
function pfUI.api.UnitDebuff(unitstr, i)
|
||||
local name, rank, texture, stacks, dtype, duration, timeLeft = _G.UnitDebuff(unitstr, i)
|
||||
return texture, stacks, dtype
|
||||
end
|
||||
|
||||
-- use native UnitDebuff instead of libdebuff emulation
|
||||
pfUI.api.libdebuff = { ["UnitDebuff"] = _G.UnitDebuff }
|
||||
|
||||
-- blacklist unrequired modules
|
||||
pfUI.module.autoshift = true
|
||||
pfUI.module.itemclick = true
|
||||
|
||||
Reference in New Issue
Block a user