mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 19:50:02 +00:00
api: fix nil error in spellduration
This commit is contained in:
+4
-1
@@ -109,7 +109,10 @@ 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", "%(.+%)"))
|
||||
|
||||
if sec or min then castingTime = tonumber(sec) * 1000 or tonumber(min) * 1000 end
|
||||
if sec or min then
|
||||
castingTime = sec and tonumber(sec) * 1000 or tonumber(min) * 1000
|
||||
end
|
||||
|
||||
if range then
|
||||
local _, _, min, max = string.find(range, "(.+)-(.+)")
|
||||
if min and max then
|
||||
|
||||
Reference in New Issue
Block a user