Open Raid Library

Open Raid Library

18.1k Downloads

KeystoneUpdate event callback missing unitName data

jcorrington opened this issue ยท 0 comments

commented

When using the call back function for an "KeystoneUpdate" event as shown in the docs.txt file. The unitName parameter seems to be always nil.

function MyAddonObject.OnKeystoneUpdate(unitName, keystoneInfo, allKeystoneInfo)
    local mapName = C_ChallengeMode.GetMapUIInfo(keystoneInfo.mythicPlusMapID)
    print(unitName .. " has a " .. keystoneInfo.level .. " keystone for map " .. mapName  .. ".")
end

--registering the callback:
openRaidLib.RegisterCallback(MyAddonObject, "KeystoneUpdate", "OnKeystoneUpdate")

As far as I could tell with some testing the first parameter was always keystoneInfo, which doesn't contain any name information of WHOSE data it is. Combing through allKeystoneInfo is also to much when only interested in party data.

Am I missing something with the unitName parameter?