Originally Posted by
tatakau
I have taken the hex code by onya I want to hex when maelstrom is 5
can anyone help?
I don't play a Shaman, but give this a shot. I'm pretty puzzled by the original code you linked, though.
Code:
local inRange = IsSpellInRange("Hex","focus")
local _,_,_,MaelstromStacks = UnitBuffID("player", 53817)
if UnitExists("focus") and UnitIsVisible("focus") and MaelstromStacks == 5 then
if inRange == 1 and GetSpellCooldown(51514) == 0 and IsMounted() == nil then
return true
end
end