Outfitter (Abandoned)

Outfitter (Abandoned)

563k Downloads

Automation Script "Has buff" not working

justthompson opened this issue · 8 comments

commented

I created a Gear set that would swap weapons on my mage when i gain the Evocate buff.

To test on another character, I also created a Gear set on my pally to swap shields when I gain the buff "Holy Shield"

On both characters, when either buff is gained, the automation does not take place.

image

commented

Can confirm. The "dining" automation doesn't work either.

commented

justthompson, are you attempting to automate these swaps during combat? Because blizzard has completely blocked that functionality from addons.

commented

Also when testing with the Holy Shield buff on my Paladin, I was also out of combat.

commented

Outside of combat for the Evocate buff.

commented

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.

commented
commented

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.

commented

Implemented the hasbuff fix.