Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeystoneUpdate event callback missing unitName data #54

Open
jcorrington opened this issue Mar 17, 2024 · 0 comments
Open

KeystoneUpdate event callback missing unitName data #54

jcorrington opened this issue Mar 17, 2024 · 0 comments

Comments

@jcorrington
Copy link

jcorrington commented Mar 17, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant