I just tested this macro in combat:
Lua Code:
/run local a=_G["ActionButton8Border"] local b=UnitBuff("player", "Schildblock") if b then a:Show() else a:Hide() end
https://imgpile.com/i/nru4Dg
I have Shield Block on ActionButton8.
/dump GetActionInfo(8) returns "spell", 2565 which is the spell id for Shield Block
/dump GetSpellInfo(2565) returns the spell info for the action button spell shield block
/dump GetSpellInfo(132404) returns the spell info for the player aura button spell shield block
There is an addon called
https://github.com/AdiAddons/AdiButtonAuras which sort of does what I am looking for but it is quite huge.
I want to connect an action button spell to a unit aura. If both match the corresponding action button border should get highlighted.
It should be possible to set up a small table that connects action button spells to unit auras. All one needs is a script that parses unit auras and checks for matches. If one is found the button border will be highlighted.