From 97ef039d3ad177720582046927a6625ac993c824 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sun, 9 Aug 2026 03:36:10 -0500 Subject: [PATCH] Fetch the totem buff icon via GetBuffDataByIndex Use C_UnitAuras.GetBuffDataByIndex(guid, 1) instead of GetUnitAuras(guid)[1]: a passive totem's provided buff is its single helpful aura, so the buff- filtered single-slot fetch is both more precise and cheaper than building the full aura list to take the first entry. --- modules/nameplates.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index a83da9d3..a1ccd34c 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -306,8 +306,8 @@ pfUI:RegisterModule("nameplates", function () if C.nameplates.totemicons ~= "1" then return nil end if CreatureType(plate) ~= 11 then return nil end if plate.totemIcon then return plate.totemIcon end - local auras = C_UnitAuras.GetUnitAuras(plate.cachedGuid) - if auras and auras[1] then plate.totemIcon = auras[1].icon end + local aura = C_UnitAuras.GetBuffDataByIndex(plate.cachedGuid, 1) + if aura then plate.totemIcon = aura.icon end return plate.totemIcon end