Just looking for some quick help out there. I know there are plenty of hunter profiles out there, but I figured the best practice for creating them would be to use a class I was familiar with and create my own. The profile works great as long as I don't have my Wing Clip/Raptor strike ability in the rotation. When I add the ability my framerate drops to 4fps and the rotation stops working completely.
Here are the two code snippets used.
Code:
if MeleeRange == 1 then
local slows = { 45524, 16979, 2974, 13809, 116, 120, 11113, 31589, 15407, 3408, 26679, 8056, 3600, 18223, 12323 }
local freedom = { 1044, 53271 }
local HasSlow == nil
for i=1,#slows do
if UnitDebuffID( "target", slows[i] ) then
HasSlow = 1
end
end
for i=1,#freedom do
if UnitBuffID( "target", freedom[i] ) then
HasFreedom = 1
end
end
if HasSlow ~= 1 and HasFreedom ~=1 then
return true
else
CastSpellById(2974, "target")
end
end
and to calculate melee range
Code:
MeleeRange = IsSpellInRange(tostring(GetSpellInfo(2974)), "target")