Originally Posted by
woppo
Hi trying to sort the cyclone out for the feral arena setup i have tryed all sorts of things an it will not work with this one
local _, _, _, PS = UnitBuffID("player", 69369)
local inRange = IsSpellInRange("Cyclone", "focus")
if PS ~= nil and inRange == 0 then
return true
else
return false
end
i have found the original one its does work but the creator says it has issue with range an having no focus
local _, _, _, PS = UnitBuffID("player", 69369)
if PS ~= nil then
return true
else
return false
end
could prolly figure out my self if i only knew what " == 0 then" means if that the range or just the command to attempt the action
hmm "0" in programming mean "false" right? so if target isnt in range it returns true, so trying to cast cyclone if target is out of range, when target is in range it return false.
so imo 0=false and 1=true
Another thing, "69369" this spell ID is for predator's swiftness.
Try it:
Code:
local PS = UnitDebuffID("focus", 33786)
local inRange = IsSpellInRange("Cyclone", "focus")
if PS == nil and inRange == 1 then
return true
else
return false
end
but another thing is that, that will spam it after 3rd cyclone as we know it not works for some time after 3rd cyclone.