Skip to content

TWW 11.0 API fixes#10

Open
marhom wants to merge 1 commit intophanx-wow:masterfrom
marhom:retail-11.0-fix
Open

TWW 11.0 API fixes#10
marhom wants to merge 1 commit intophanx-wow:masterfrom
marhom:retail-11.0-fix

Conversation

@marhom
Copy link
Copy Markdown

@marhom marhom commented Sep 20, 2024

API updates and a very small related code change to extract the name from the table object that's returned by the new equivalent of UnitBuff.

Ran some quick tests including checking off achievement credit and everything seemed okay! I've barely ever touched Lua before but these changes are trivial, so I don't think there's any real risk.

local name = UnitBuff("player", i)
if not name or cameraBuffs[name] then
inCamera = name and cameraBuffs[name]
local playerAura = C_UnitAuras.GetBuffDataByIndex("player", i)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how you'd prefer to do stuff like this / handle the fact that the returned object is a little more complex; as mentioned, newish to Lua so the truthiness of everything isn't as immediately clear - this can be done more elegantly but lol

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

Successfully merging this pull request may close these issues.

1 participant