Skip to content

Commit

Permalink
more accurate function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Apr 13, 2024
1 parent b37261c commit ea73e68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ElvUI/Core/Modules/Misc/RaidUtility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea73e68

Please sign in to comment.