Originally Posted by
Sevve3
How would one go about adding a purge functon for spirirt kings ? I tried manually adding it .. which somehow caused the whole PQR rotation to stop functioning.
I added it manually and it works for me.
The comma's are very important. You can add as many as you want. Even stuff to purge in pvp if you want.
Add a comma after each spellid except the last spell. Getting a comma wrong can stop the rotation.
Code:
local purgeThis2 = {
117283, -- Corrupted water (Protectors)
122149, -- Quickening (Wind Lord)
117697 -- Shield of Darkness (Spirit Kings)
}
if UnitExists("target") then
for i=1, #purgeThis2 do
if UnitBuffID("target", purgeThis2[i]) ~= nil
and PQR_IsOutOfSight("target", 0.1) == false
and IsSpellInRange("Purge", "target") == 1 then
CastSpellByID(370, "target")
end
end
end