Automation Script "Has buff" not working
justthompson opened this issue · 8 comments
justthompson, are you attempting to automate these swaps during combat? Because blizzard has completely blocked that functionality from addons.
Also when testing with the Holy Shield buff on my Paladin, I was also out of combat.
I had a similar issue and this change appears to have fixed it:
In Outfitter.lua#4114, change
local vName, _, vTexture, _, _, _, _, _, _, _, vSpellID = UnitBuff("player", vBuffIndex)
to
local vName, vTexture, _, _, _, _, _, _, _, vSpellID = UnitBuff("player", vBuffIndex)
which matches the API documentation found here.
That performs the lookups with expected values and enables any corresponding state.
On a side note, if you can get the addon working, Great.
However, i have found out that you cannot swap gear when channeling Evocate.
So even if the addon script "Has buff" was working, I cannot do what I was wanting.
Which was; to swap to weapons with high amounts of Spirit to get more yield from Evocate.
Instead I will have to swap weapons 1st, then cast evocate, and swap back after Evocate finishes.