MONSTERS = {"Medusa", "Serpent Spawn", "Hellspawn", "Behemoth", "Nightmare", "Hydra", "Eternal Guardian", "Souleater", "Giant Spider", "Earth Elemental"}
STRONG_MONSTERS = {"Hydra", "Serpent Spawn", "Medusa", "Eternal Guardian", "Behemoth", "Souleater", "Hellspawn"}
All thanks to @walukaszQuote:
auto(50)
if $paralyzed and $standtime < 2000 and $hppc >= 92 and cancastspell("exura ico") then
cast("exura ico")
end
local strongaround = maround(3, unpack(STRONG_MONSTERS))
local medusaaround = maround(3, "Medusa")
if strongaround >= 6 or medusaaround >= 4 then
setsetting("PotionHealer/Rules/health/ConditionValue", "55 to 55%")
setsetting("SpellHealer/Rules/ico/Enabled", ($hppc <= 55 or $mppc < 15) and "no" or "yes")
setsetting("SpellHealer/Rules/utura/Enabled", ($hppc <= 55 or $mppc < 15) and "no" or "yes")
elseif strongaround >= 4 or medusaaround >= 3 then
setsetting("PotionHealer/Rules/health/ConditionValue", "40 to 40%")
setsetting("SpellHealer/Rules/ico/Enabled", ($hppc <= 40 or $mppc < 15) and "no" or "yes")
setsetting("SpellHealer/Rules/utura/Enabled", ($hppc <= 40 or $mppc < 15) and "no" or "yes")
else
setsetting("PotionHealer/Rules/health/ConditionValue", "30 to 30%")
setsetting("SpellHealer/Rules/ico/Enabled", ($hppc <= 30 or $mppc < 15) and "no" or "yes")
setsetting("SpellHealer/Rules/utura/Enabled", ($hppc <= 30 or $mppc < 15) and "no" or "yes")
end