That should work. I'll add this to the profile when I do the next update.PHP Code:
-- Healthstone
local PlayerHP = 100 * UnitHealth("Player") / UnitHealthMax("Player")
local HealthstoneCD = select(2, GetItemCooldown(5512))
local HealthstoneHP = 20
if PlayerHP < HealthstoneHP then
if HealthstoneCD == 0 and GetItemCount(5512) > 0 then
UseItemByName(select(1, GetItemInfo(5512)), "player")
return true
end
end