You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: