Hi again!
Noticed a problem with your holy Paladin script.
function PallySurvive()
if not InCombat() or then return end
local health=UnitHealth("player")
if health<200 then SpellStopCasting() cast("Divine Protection") TargetUnit("player") cast("Blessing of Protection") TargetUnit("playertarget") end
if health<UnitHealthMax("player") and (buffed("Divine Protection","player") or buffed("Blessing of Protection","player")) then RunLine("/qh player") return end
if health<200 then TargetUnit("player") cast ("Lay on Hands") TargetUnit("playertarget") end
This function uses the desired cooldowns but then, because Divine Protection & Blessing of Protection cause the forbearance debuff and leave the Paladins health below the health threshhold -- the script continues to spam SpellStopCasting() and prevents the Paladin from healing himself.
Cheers :)
Thanks! fixed.
It now looks like this:
function PallySurvive()
if not InCombat() then return end
local health=UnitHealth("player")
if health<200 and not buffed("Forbearance","player") then SpellStopCasting() cast("Divine Protection") TargetUnit("player") cast("Blessing of Protection") TargetUnit("playertarget") end
if health<UnitHealthMax("player") and (buffed("Divine Protection","player") or buffed("Blessing of Protection","player")) then RunLine("/qh player") return end
if health<200 then TargetUnit("player") cast ("Lay on Hands") TargetUnit("playertarget") end
end
Also, I had two different functions defined for PallySurvive()! deleted the first one.