update
PHP Code:
if (aoe == false or aoe == true) and PQR_SpellAvailable(53595) then*
return false
end
--if HoW is available, if HoW CD Remains > 0 and HoW CD Remains < 0.1
local howUsable = IsUsableSpell(24275)
local howAvailable = PQR_SpellAvailable(24275)
local howStart, howDuration = GetSpellCooldown(24275)
local howCD = howStart - GetTime() + howDuration
local gcdSpell = PQR_GCDSpellID()
local gcdStartTime, gcdDuration = GetSpellCooldown(gcdSpell)
local gcdTimeLeft = gcdStartTime + gcdDuration - GetTime()
if gcdTimeLeft < 0 then
gcdTimeLeft = 0
end
howCD = howCD - gcdTimeLeft
if howCD < 0 then
howCD = 0
end
if howUsable and (howCD < 0.2 and howCD > 0) then
return true
end
0.1 for holy avenger, 0.2 for sanc wrath
re-post of all profiles.
https://dl.dropbox.com/u/44039495/PQR.rar
re-post
I am having massive problems with double jeopardy and mass exorcism. I have been trying for 2 months now to figure this out and I really don't know what to do.
paying for a solution to both abilities.
My current code for judgment, double jeopardy is included, it sometimes works, sometimes it doesn't.
PHP Code:
if UnitBuffID("player", 84963) == nil or UnitBuffID("player", 84963) and select(7, UnitBuffID( "player", 84963)) - GetTime() < 2.5 then
if UnitPower("player", 9) >= 3 then
return false
end
elseif PQR_SpellAvailable(879) or PQR_SpellAvailable(24275) or UnitBuffID("player", 87138) then
return false
elseif single == false and PQR_SpellAvailable(35395) and ((100 * UnitHealth("target") / UnitHealthMax("target")) > 20 or UnitBuffID("player", 31884) == nil) then
return false
end
if GetShapeshiftForm() ~= 0 then hasSeal = true else hasSeal = false end
if switchedTargets == nil then switchedTargets = false end
if hasSeal and UnitPower("player", 9) < 5 then
if UnitExists("focus") and switchedTargets == false then
CastSpellByName(GetSpellInfo(20271), "focus")
switchedTargets = true
elseif UnitExists("target") and switchedTargets == true then
CastSpellByName(GetSpellInfo(20271), "target")
switchedTargets = false
elseif not UnitExists("focus") or UnitExists("focus") then -- the default if there is no focus, had range check here, but it kept locking up on bosses.
if UnitExists("target") then
CastSpellByName(GetSpellInfo(20271), "target")
end
end
end
Just having the mass exorcism glyph locks up the rotation.
edit: this might support ha/sanc, untested.
PHP Code:
if (aoe == false or aoe == true) and PQR_SpellAvailable(53595) then
return false
end
--if HoW is available, if HoW CD Remains > 0 and HoW CD Remains < 0.1
local howUsable = IsUsableSpell(24275)
local howAvailable = PQR_SpellAvailable(24275)
local howStart, howDuration = GetSpellCooldown(24275)
local howCD = howStart - GetTime() + howDuration
local gcdSpell = PQR_GCDSpellID()
local gcdStartTime, gcdDuration = GetSpellCooldown(gcdSpell)
local gcdTimeLeft = gcdStartTime + gcdDuration - GetTime()
if gcdTimeLeft < 0 then
gcdTimeLeft = 0
end
howCD = howCD - gcdTimeLeft
if howCD < 0 then
howCD = 0
end
if IsPlayerSpell(105809) them
if howUsable and (howCD < 0.1 and howCD > 0) then
return true
end
elseif not IsPlayerSpell(105809) then
if howUsable and (howCD < 0.2 and howCD > 0) then
return true
end
end