From f8dde49f09a73ad6868f359299218884a52f3a7f Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Thu, 13 Aug 2026 17:32:47 -0500 Subject: [PATCH] Add IsPlayerGuid API wrapper Expose the built-in IsPlayerGuid helper through pfUI.api so callers can check whether a GUID or unit token matches the local player. This keeps the pfUI API surface consistent with the underlying WoW API while making the check available through the addon namespace. --- api/api.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/api.lua b/api/api.lua index 7b05b7c0..94dfb260 100644 --- a/api/api.lua +++ b/api/api.lua @@ -204,6 +204,12 @@ function pfUI.api.UnitHasBuff(unit, name) return C_UnitAuras.GetAuraDataBySpellName(unit, name, "HELPFUL") ~= nil or nil end +-- [ IsPlayerGuid ] +-- Returns whether a GUID or unit token refers to the local player. +-- guid [string] A unit GUID (or unitID) to test. +-- return: [bool] true if it is the player otherwise "false" +pfUI.api.IsPlayerGuid = _G.IsPlayerGuid + -- [ GetUnbuffedRoster ] -- Returns a comma-joined, colored list of group members missing the named aura. -- name [string] the localized aura name to check for