Skip to content

Commit

Permalink
RaydUtility now disabled if a player is not party leader.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shestak committed Sep 11, 2011
1 parent 4075ec5 commit 9aa3a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShestakUI/Modules/Misc/RaidUtility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RaidUtilityPanel.toggled = false
-- Check if We are Raid Leader or Raid Officer
local function CheckRaidStatus()
local inInstance, instanceType = IsInInstance()
if ((GetNumPartyMembers() > 0 and not UnitInRaid("player")) or IsRaidLeader() or IsRaidOfficer()) and not (inInstance and (instanceType == "pvp" or instanceType == "arena")) then
if ((GetNumPartyMembers() > 0 and UnitIsPartyLeader("player") and not UnitInRaid("player")) or IsRaidLeader() or IsRaidOfficer()) and not (inInstance and (instanceType == "pvp" or instanceType == "arena")) then
return true
else
return false
Expand Down

0 comments on commit 9aa3a25

Please sign in to comment.