castbar: only show delay on player unit

This commit is contained in:
shagu
2018-11-10 13:33:57 +01:00
parent 27d6a8ec6d
commit e96ecfd9fb
+1
View File
@@ -123,6 +123,7 @@ pfUI:RegisterModule("castbar", function ()
-- register for spell delay
cb:RegisterEvent(CASTBAR_DELAY_EVENT)
cb:SetScript("OnEvent", function()
if not UnitIsUnit(this.unitstr, "player") then return end
this.delay = ( this.delay or 0 ) + arg1/1000
end)