mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
castbar: check for existing unitstr before using it
This commit is contained in:
+1
-1
@@ -162,7 +162,7 @@ pfUI:RegisterModule("castbar", 20400, function ()
|
||||
cb:RegisterEvent(CASTBAR_EVENT_CAST_DELAY)
|
||||
cb:RegisterEvent(CASTBAR_EVENT_CHANNEL_DELAY)
|
||||
cb:SetScript("OnEvent", function()
|
||||
if not UnitIsUnit(this.unitstr, "player") then return end
|
||||
if this.unitstr and not UnitIsUnit(this.unitstr, "player") then return end
|
||||
|
||||
if event == CASTBAR_EVENT_CAST_DELAY then
|
||||
local name = this.unitstr and UnitName(this.unitstr) or this.unitname
|
||||
|
||||
Reference in New Issue
Block a user