From 25c0e744cd46df4b5f7d893de76b05342628723f Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sun, 11 Jan 2026 17:00:11 +0100 Subject: [PATCH] nil check for totems - No more totem errors... --- modules/totems.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/totems.lua b/modules/totems.lua index 59eab973..90c20aea 100644 --- a/modules/totems.lua +++ b/modules/totems.lua @@ -27,11 +27,12 @@ pfUI:RegisterModule("totems", "vanilla:tbc", function () totems.OnEnter = function(self) if not this.id then return end local active, name, start, duration, icon = GetTotemInfo(this.id) + if not name or not active then return end -- Prüfen ob name gültig ist local color = slots[this.id] GameTooltip:SetOwner(this, "ANCHOR_LEFT") GameTooltip:SetText(name, color.r+.2, color.g+.2, color.b+.2) GameTooltip:Show() - end +end totems.OnLeave = function(self) GameTooltip:Hide()