From ec9be68fda07fd6d23b3e1fd70976374fd25fd56 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 30 Sep 2018 13:46:39 +0200 Subject: [PATCH] tbc: override libdebuff by native api call --- api/tbc.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/api/tbc.lua b/api/tbc.lua index f901fefa..6596fd9c 100644 --- a/api/tbc.lua +++ b/api/tbc.lua @@ -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