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

Macro spells don't work, GetActionInfo changed in Patch 10.2 #422

Open
Nulgar opened this issue Nov 10, 2023 · 3 comments
Open

Macro spells don't work, GetActionInfo changed in Patch 10.2 #422

Nulgar opened this issue Nov 10, 2023 · 3 comments
Labels

Comments

@Nulgar
Copy link

Nulgar commented Nov 10, 2023

Version (*):

10.0.3

Bug description (*):

I noticed that my macros with spells didn't show ABA overlays anymore in Patch 10.2, neither with addon version 10.0.3 nor the 10.0.0 I had installed before. "Spells & items" view said the buttons were "unsupported".

I recalled seeing a mention that macros with items broke a while ago, so I did some digging in the code, and found that GetActionInfo no longer returns the macro index as the actionId even for spells.

For spells, the function pleasantly returns "macro", [spellID], "spell" so that's an easy fix, although no luck for macro conditionals without the index.
For items, the actionId is just slot-1 which I guess is unchanged.

@Nulgar Nulgar added the bug label Nov 10, 2023
@Rainrider
Copy link
Member

GetActionInfo is strange now. For spells it returns the spell id as its second return, as you mentioned, after resolving macro conditions.

For items, it returns some strange indecies now:

#showtooltip
/use 14

returns "macro", 59, "item" (action id is 60)

#showtooltip
/use 13

returns "macro", 5, "" (trinket does not have an on use spell here) (action id is 59)

#showtooltip
/use Hearthstone

returns "macro", 66, "item" (action id is 67)

If I swap trinket positions, the returns from GetActionInfo change as follows:

  • "macro", 3, "" (action id is 60)
  • "macro", 58, "item" (action id is 59)

The macro could be resolved by querying by name:

local name, texture, body = GetMacroInfo(GetActionText(actionId))

however macro names are not guaranteed to be unique so this might return wrong results.

Could you pull latest master and see if this is resolved now? Also, please tell what actions bars addon you are using as this might be relevant (Dominos and stock ui should work, not 100% sure about LibActionButton based ones)

@mbattersby
Copy link

FWIW this is logged here - Stanzilla/WoWUIBugs#495

@Nulgar
Copy link
Author

Nulgar commented Nov 18, 2023

Ah, sorry, did not notice there were replies.

Yes, it seems to work fine again, thank you!
I'm not using macros with duplicate or empty names, so I won't run into issues there.

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

No branches or pull requests

3 participants