mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 21:41:53 -05:00
- Fix an issue where oldStart could be nil
This commit is contained in:
@ -191,6 +191,9 @@ local function UNIT_SPELLCAST_DELAYED(event, unit)
|
||||
local oldStart = castData[unit].startTime
|
||||
|
||||
startTime = startTime / 1000
|
||||
if not oldStart then
|
||||
oldStart = startTime
|
||||
end
|
||||
castData[unit].startTime = startTime
|
||||
castData[unit].endTime = endTime / 1000
|
||||
|
||||
@ -217,6 +220,9 @@ local function UNIT_SPELLCAST_CHANNEL_UPDATE(event, unit)
|
||||
|
||||
local oldStart = castData[unit].startTime
|
||||
startTime = startTime / 1000
|
||||
if not oldStart then
|
||||
oldStart = startTime
|
||||
end
|
||||
castData[unit].startTime = startTime
|
||||
castData[unit].endTime = endTime / 1000
|
||||
castData[unit].delay = castData[unit].delay + (oldStart - startTime)
|
||||
|
Reference in New Issue
Block a user