From ea73e68322bbeadaebb01ac54277459eb0c6acf0 Mon Sep 17 00:00:00 2001 From: Simpy Date: Sat, 13 Apr 2024 17:59:02 -0400 Subject: [PATCH] more accurate function name --- ElvUI/Core/Modules/Misc/RaidUtility.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ElvUI/Core/Modules/Misc/RaidUtility.lua b/ElvUI/Core/Modules/Misc/RaidUtility.lua index 391a2b019b..cae3b95dee 100644 --- a/ElvUI/Core/Modules/Misc/RaidUtility.lua +++ b/ElvUI/Core/Modules/Misc/RaidUtility.lua @@ -92,21 +92,21 @@ function RU:CleanButton(button) button:SetDisabledTexture(E.ClearTexture) end -function RU:InInstance() +function RU:NotInPVP() local _, instanceType = GetInstanceInfo() return instanceType ~= 'pvp' and instanceType ~= 'arena' end function RU:IsLeader() - return UnitIsGroupLeader('player') and RU:InInstance() + return UnitIsGroupLeader('player') and RU:NotInPVP() end function RU:HasPermission() - return (UnitIsGroupLeader('player') or UnitIsGroupAssistant('player')) and RU:InInstance() + return (UnitIsGroupLeader('player') or UnitIsGroupAssistant('player')) and RU:NotInPVP() end function RU:InGroup() - return IsInGroup() and RU:InInstance() + return IsInGroup() and RU:NotInPVP() end -- Change border when mouse is inside the button