From 45b446877454d20d6e251774839f0d50c99b7893 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 14 Aug 2018 20:19:25 +0200 Subject: [PATCH] castbar: instantly hide on non-existing units --- modules/castbar.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/castbar.lua b/modules/castbar.lua index e376ef84..a3cba014 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -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