spell: fix casttime nil calculation

This commit is contained in:
shagu
2018-05-30 21:00:51 +02:00
parent 50db71bd63
commit 96ae4aadf8
+1 -1
View File
@@ -109,7 +109,7 @@ function pfUI.api.GetSpellInfo(index, bookType)
local _, _, min = string.find(text:GetText(), gsub(SPELL_CAST_TIME_MIN, "%%.3g", "%(.+%)"))
local _, _, range = string.find(text:GetText(), gsub(SPELL_RANGE, "%%s", "%(.+%)"))
castingTime = tonumber((sec or min or 0)) * 1000
castingTime = (tonumber(sec) or tonumber(min) or 0) * 1000
if range then
local _, _, min, max = string.find(range, "(.+)-(.+)")