mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-09 23:20:00 +00:00
castbar: instantly hide on non-existing units
This commit is contained in:
@@ -60,6 +60,11 @@ pfUI:RegisterModule("castbar", function ()
|
||||
return
|
||||
end
|
||||
|
||||
if not UnitExists(this.unitstr) then
|
||||
this:Hide()
|
||||
this.fadeout = nil
|
||||
end
|
||||
|
||||
if this.fadeout and this:GetAlpha() > 0 then
|
||||
this:SetAlpha(this:GetAlpha()-0.05)
|
||||
if this:GetAlpha() == 0 then
|
||||
|
||||
Reference in New Issue
Block a user