libhealth: set default values as config fallback

This commit is contained in:
shagu
2020-06-08 22:17:38 +02:00
parent 79b402da61
commit 44612d52d0
+2 -2
View File
@@ -22,8 +22,8 @@ libhealth:SetScript("OnEvent", function()
-- load enable state and set functions
libhealth.enabled = pfUI_config["global"]["libhealth"] == "1" and true or nil
libhealth.reqhit = tonumber(pfUI_config["global"]["libhealth_hit"])
libhealth.reqdmg = tonumber(pfUI_config["global"]["libhealth_dmg"]) * 100
libhealth.reqhit = (tonumber(pfUI_config["global"]["libhealth_hit"]) or 4)
libhealth.reqdmg = (tonumber(pfUI_config["global"]["libhealth_dmg"]) or 0.5) * 100
end
-- return as we're not supposed to be here