Skip to content

Commit ea73e68

Browse files
committed
more accurate function name
1 parent b37261c commit ea73e68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ElvUI/Core/Modules/Misc/RaidUtility.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,21 @@ function RU:CleanButton(button)
9292
button:SetDisabledTexture(E.ClearTexture)
9393
end
9494

95-
function RU:InInstance()
95+
function RU:NotInPVP()
9696
local _, instanceType = GetInstanceInfo()
9797
return instanceType ~= 'pvp' and instanceType ~= 'arena'
9898
end
9999

100100
function RU:IsLeader()
101-
return UnitIsGroupLeader('player') and RU:InInstance()
101+
return UnitIsGroupLeader('player') and RU:NotInPVP()
102102
end
103103

104104
function RU:HasPermission()
105-
return (UnitIsGroupLeader('player') or UnitIsGroupAssistant('player')) and RU:InInstance()
105+
return (UnitIsGroupLeader('player') or UnitIsGroupAssistant('player')) and RU:NotInPVP()
106106
end
107107

108108
function RU:InGroup()
109-
return IsInGroup() and RU:InInstance()
109+
return IsInGroup() and RU:NotInPVP()
110110
end
111111

112112
-- Change border when mouse is inside the button

0 commit comments

Comments
 (0)