Would this work?
Code:
local censure, _, _, _, _, _, censureEndTime = PQR_UnitBuffID("target", 31803)
local buff,_,_,censureStack = UnitAura("target","Censure")
if censure ~= nil then
censureEndTime = censureEndTime - GetTime()
end
if censureStack < 5 or censureEndTime < 8 then
return true
end
I need a way to store target information, How would I do this?
What does , _, _, _, _, _, mean?
Can you use true or false instead of ~= nil, == nil?
Can I do this?
PQR_UnitBuffID("targettarget", 31803)
UnitAura("targettarget","Censure")
What is the code for facing target, I need it for my exorcism code; it gets hung up on exorcism when I am not facing the target I have selected.
Is there a way to turn the character with code? I could use that instead of the face target code.
Is there a UnitDebuffID?
Trying to do this.
Code:
--Hand Of Freedom
local frostFlakeSnare = PQR_UnitBuffID("player", 109337)
if GetSpellCooldown(1044) == 0 and frostFlakeSnare ~= nil then
CastSpellByID(1044)
return true
else if not PQR_SpellAvailable(1044) then
if GetSpellCooldown(642) == 0 and frostFlakeSnare ~= nil then
CastSpellByID(642)
return true
end
end
end