File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -92,21 +92,21 @@ function RU:CleanButton(button)
92
92
button :SetDisabledTexture (E .ClearTexture )
93
93
end
94
94
95
- function RU :InInstance ()
95
+ function RU :NotInPVP ()
96
96
local _ , instanceType = GetInstanceInfo ()
97
97
return instanceType ~= ' pvp' and instanceType ~= ' arena'
98
98
end
99
99
100
100
function RU :IsLeader ()
101
- return UnitIsGroupLeader (' player' ) and RU :InInstance ()
101
+ return UnitIsGroupLeader (' player' ) and RU :NotInPVP ()
102
102
end
103
103
104
104
function RU :HasPermission ()
105
- return (UnitIsGroupLeader (' player' ) or UnitIsGroupAssistant (' player' )) and RU :InInstance ()
105
+ return (UnitIsGroupLeader (' player' ) or UnitIsGroupAssistant (' player' )) and RU :NotInPVP ()
106
106
end
107
107
108
108
function RU :InGroup ()
109
- return IsInGroup () and RU :InInstance ()
109
+ return IsInGroup () and RU :NotInPVP ()
110
110
end
111
111
112
112
-- Change border when mouse is inside the button
You can’t perform that action at this time.
0 commit comments