Hey,
As the title says, I am currently stuck in trying to write my own PQR profile, I don't have a lot of experience with .lua but I understand most of it when I read it.
Anyway let's get to the problem, I'm writing a profile to automatically use hand of sacrifice my teammate when he has certain debuffs.
What I've got so far is:
if UnitExists("party1") then
if PQR_SpellAvailable(6940)
and IsSpellInRange("Hand of Sacrifice", "party1") == 1
and PQR_IsOutOfSight("party1", 0.1) == false then
then
if UnitDebuffID("party1", 1499) then
CastSpellByID(6940, "party1")
end
end
end
I get it to load in-game, but when my teammate has the the debuff specified in the code above, it does not sacrifice him for some reason.
Could anyone help me out here?
Kind regards,