Can someone help me? I do not know lua. I am sure this would be easy for someone who knows lua and it would be easy to take these skills and improve all the other profiles.
Trying to make my ret paladin profile do better dps
For templar
What i need is if 2 holy power and divine purpose proc? crusader strike or judgement if crusader strike is not up
exorcism, is dot up on mob? if yes wait; if no exorcism.
Current templar
Current exorcismlocal sDivinePurpose = UnitBuffID("player", 90174)
if IsSpellInRange("Templar's Verdict", "target") ~= 1 then
return false
end
if UnitPower("player", 9) == 3 or sDivinePurpose ~= nil then
return true
end
I want my guardian of ancient kings to pop at the beginning of the fight after 10 secs avenging and zealotry popssAoW = UnitBuffID("player", 5957
if IsSpellInRange("Exorcism", "target") ~= 1 then
return false
end
if sAoW ~= nil then
return true
end
Current goak
avenging wrathif IsSpellInRange("Crusader Strike", "target") ~= 1 then
return false
end
return true
Current zealotryif IsSpellInRange("Crusader Strike", "target") ~= 1 then
return false
end
return true
for hand of freedom i need it to do every man for himself if hand of freedom is down and to work for all spells? i am not sure if there is a lua function for libary access so it knows all the spells.local sDivinePurpose = UnitBuffID("player", 90174)
local sAW = UnitBuffID("player", 31884)
if IsSpellInRange("Crusader Strike", "target") ~= 1 then
return false
end
if UnitPower("player", 9) < 2 or sDivinePurpose ~= nil or sAW ~=nil then
return true
end
current hand of freedom
Thank you for the help and reading my post.local debuff = { 45524, 1715, 3408, 59638, 20164, 25809, 31589, 51585, 50040, 50041, 31126, 31124, 122, 44614, 1604, 45524, 50040, 339, 45334, 58179, 61391, 19306, 19185, 35101, 5116, 61394, 2974, 54644, 50245, 50271, 54706, 4167, 33395, 83302, 55080, 11113, 6136, 120, 116, 44614, 31589, 63529, 20170, 87194, 31125, 3409, 26679, 64695, 63685, 8056, 8034, 18118, 18223, 63311, 23694, 1715, 12323, 39965, 55536, 13099, 29703 }
for i,v in ipairs(debuff) do
if UnitDebuffID("player",v) then return true end
end
edit:
for judgement
can you make it target another target if the dot is about to fall off and re apply?
this can be converted to many classes like warlock priest hunter and would be a cool feature.
Current judgement
sSoR = UnitBuffID("player", 20154)
sSoT = UnitBuffID("player", 31801)
sSoJ = UnitBuffID("player", 20164)
sSoI = UnitBuffID("player", 20165)
if IsSpellInRange("Judgement", "target") == 0 then
return false
end
if sSoR ~= nil or sSoT ~= nil or sSoJ ~= nil or sSoI ~= nil then
return true
end