tbc: override libdebuff by native api call

This commit is contained in:
shagu
2018-09-30 13:46:39 +02:00
parent 4924424c7e
commit ec9be68fda
+10 -1
View File
@@ -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