kesava-wow / kuinameplates2

Prettier nameplates.
https://www.curseforge.com/wow/addons/kuinameplates
81 stars 46 forks source link

error after cata pre-patch active #709

Closed amey1956 closed 6 months ago

amey1956 commented 6 months ago

15x Frame:RegisterEvent(): Frame:RegisterEvent(): Attempt to register unknown event "UNIT_ABSORB_AMOUNT_CHANGED" [string "=[C]"]: in functionRegisterEvent' [string "@Kui_Nameplates/messages.lua"]:347: in function RegisterEvent' [string "@Kui_Nameplates/messages.lua"]:353: in functionRegisterUnitEvent' [string "@Kui_Nameplates/elements/absorbbar.lua"]:65: in function OnEnable' [string "@Kui_Nameplates/messages.lua"]:501: in functionEnable' [string "@Kui_Nameplates/addon.lua"]:183: in function <Kui_Nameplates/addon.lua:154>

Locals: (temporary) = Frame { 0 = } (temporary) = "UNIT_ABSORB_AMOUNT_CHANGED" `

nguo commented 6 months ago

@amey1956 I had a similar error for a different event. Not sure if this will fix it for you, but I added or WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC to line 11 of Kui_Nameplates\\lib\Kui\Kui.lua and was able to load the addon. My line 11 now looks like this:

local WRATH = WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC or WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC

Just a temporary patch until a more official cata version comes out. Good luck!