Originally Posted by Xrystal
You could try IsVisible() in addition to IsShown()
https://wowpedia.fandom.com/wiki/API...Region_IsShown
You could try just having the Hide() line. Seeing as the function is to show the frame, rather than check if it is shown first just tell it to hide it regardless as your code runs after their code. The test on whether it is Shown or not may be returning false for some reason. But the above may rectify this scenario.
|
Thanks!
The final version of the code for anyone interested
Lua Code:
TargetFrameSpellBar.BorderShield:SetTexture(0)
FocusFrameSpellBar.BorderShield:SetTexture(0)