Originally Posted by
Dalajin
But at low HP the rotation try to do anithing which not work - Ill Search it an say it to you ;)
Issue is with Guard cd check. Works with glyphed, but not without. This part of the code:
PHP Code:
--------------------------- Guard ----------------------------
if PQR_SpellAvailable(123402) and MyChi >= 2 and not SHBL() then
if BossID == 71466 then -- Iron Juggernaut
local IJFV = select(4, UnitDebuffID("player", 144464)) or 0 -- Flame Vents stacks
if IJFV >= 1 then
CastSpellByName(GetSpellInfo(123402))
return true
end
elseif AggroCheck("player", "target") then
if HaveGlyph(123401) then -- Glyph of Guard
CastSpellByName(GetSpellInfo(123402))
return true
else
if MyHP <= GHP then
CastSpellByName(GetSpellInfo(123402))
return true
end
end
end
end
Issue comes from PQR_SpellAvailable() check (returning true). Need to be very precise with spell/ability ID or its does really funny things. Fast and dirty fix should be this:
PHP Code:
--------------------------- Guard ----------------------------
local BrewGuard
if HaveGlyph(123401) then BrewGuard = 123402 else BrewGuard = 115295 end
if PQR_SpellAvailable(BrewGuard) and MyChi >= 2 and not SHBL() then
if BossID == 71466 then -- Iron Juggernaut
local IJFV = select(4, UnitDebuffID("player", 144464)) or 0 -- Flame Vents stacks
if IJFV >= 1 then
CastSpellByName(GetSpellInfo(BrewGuard))
return true
end
elseif AggroCheck("player", "target") then
if HaveGlyph(123401) then -- Glyph of Guard
CastSpellByName(GetSpellInfo(123402))
return true
else
if MyHP <= GHP then
CastSpellByName(GetSpellInfo(115295))
return true
end
end
end
end