mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-19 02:50:50 +00:00
castbar: only show delay on player unit
This commit is contained in:
@@ -123,6 +123,7 @@ pfUI:RegisterModule("castbar", function ()
|
|||||||
-- register for spell delay
|
-- register for spell delay
|
||||||
cb:RegisterEvent(CASTBAR_DELAY_EVENT)
|
cb:RegisterEvent(CASTBAR_DELAY_EVENT)
|
||||||
cb:SetScript("OnEvent", function()
|
cb:SetScript("OnEvent", function()
|
||||||
|
if not UnitIsUnit(this.unitstr, "player") then return end
|
||||||
this.delay = ( this.delay or 0 ) + arg1/1000
|
this.delay = ( this.delay or 0 ) + arg1/1000
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user