From cc385c11f1ead40305a2ec6d235263ddde2ccbb2 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 11 Sep 2020 20:12:52 +0200 Subject: [PATCH] castbar: limit lag to maximum castbar width --- modules/castbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/castbar.lua b/modules/castbar.lua index 02fe696b..c6723323 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -124,7 +124,7 @@ pfUI:RegisterModule("castbar", "vanilla:tbc", function () if this.showlag then local _, _, lag = GetNetStats() local width = this:GetWidth() / (duration/1000) * (lag/1000) - this.bar.lag:SetWidth(width) + this.bar.lag:SetWidth(math.min(this:GetWidth(), width)) else this.bar.lag:Hide() end