From ffaa2f4f4237becbab40e529613a3ed47e5c16af Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 16 Mar 2020 16:16:18 +0100 Subject: [PATCH] castbar: abort when no endtime was detected --- modules/castbar.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/castbar.lua b/modules/castbar.lua index 6692e977..02fe696b 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -164,6 +164,7 @@ pfUI:RegisterModule("castbar", "vanilla:tbc", function () if event == CASTBAR_EVENT_CAST_DELAY then local isCast, nameSubtext, text, texture, startTime, endTime, isTradeSkill = UnitCastingInfo(this.unitstr or this.unitname) if not isCast then return end + if not this.endTime then return end this.delay = this.delay + (endTime - this.endTime) / 1000 elseif event == CASTBAR_EVENT_CHANNEL_DELAY then local isChannel, _, _, _, startTime, endTime = UnitChannelInfo(this.unitstr or this.unitname)