Core: Add compatibility shims for Spell and SpellBook functions #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Many Spell- and SpellBook-related functions were deprecated in Dragonflight and removed in The War Within (as expected).
Those functions have been moved out of the global namespace and into the
C_Spell
andC_SpellBook
namespaces respectively and have also been split up into specific functions interacting with spells or the spell book.Shims for the old functions thus need to use different function calls depending on the call signature (probably a reason why this was split up).
This will fix a whole lot of issues related with spell flyout menus, as
LibActionButton
is severely outdated and still uses the long-deprecated old global functions.Note
This is a band-aid over the fact that
LibActionButton
has not been updated in years and should ideally replaced entirely.This PR is based on #86 and should be merged before this PR. A rebase-merge should eliminate the superfluous two commits automatically then.