castbar: instantly hide on non-existing units

This commit is contained in:
shagu
2018-08-14 20:19:25 +02:00
parent bd7a26227b
commit 45b4468774
+5
View File
@@ -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