From e02c85bd0988da58f01757454efcda308edffb75 Mon Sep 17 00:00:00 2001 From: F16Gaming Date: Mon, 4 Feb 2013 00:08:47 +0100 Subject: [PATCH] Update GroupTools.lua for 5.2 PTR --- GroupTools.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/GroupTools.lua b/GroupTools.lua index 8c92e10..d13754d 100644 --- a/GroupTools.lua +++ b/GroupTools.lua @@ -26,8 +26,8 @@ local GetLFGMode = GetLFGMode local UnitInRaid = UnitInRaid local UnitInParty = UnitInParty local UnitIsConnected = UnitIsConnected -local GetRaidDifficulty = GetRaidDifficulty -local SetRaidDifficulty = SetRaidDifficulty +local GetRaidDifficultyID = GetRaidDifficultyID +local SetRaidDifficultyID = SetRaidDifficultyID local GetRaidRosterInfo = GetRaidRosterInfo local UnitIsGroupLeader = UnitIsGroupLeader local GetNumGroupMembers = GetNumGroupMembers @@ -230,8 +230,8 @@ function GT:SetRaidDifficulty(diff) diff = tonumber(diff) if not diff then return false, "GT_DIFF_INVALID", {tostring(diff)} end if not CET:HasValue(self.Difficulty.Raid, diff) then return false, "GT_DIFF_INVALID", {tostring(diff)} end - if diff == GetRaidDifficulty() then return false, "GT_RD_DUPE", {self:GetFriendlyRaidDifficulty(diff)} end - SetRaidDifficulty(diff) + if diff == GetRaidDifficultyID() then return false, "GT_RD_DUPE", {self:GetFriendlyRaidDifficulty(diff)} end + SetRaidDifficultyID(diff) return "GT_RD_SUCCESS", {self:GetFriendlyRaidDifficulty(diff)} end @@ -240,7 +240,7 @@ end -- @return String representation of raid difficulty. -- function GT:GetRaidDifficultyString(diff) - return self.Difficulty.Raid[tonumber(diff) or GetRaidDifficulty()] + return self.Difficulty.Raid[tonumber(diff) or GetRaidDifficultyID()] end --- Get a string representation of the raid difficulty. @@ -248,5 +248,5 @@ end -- @return String representation of raid difficulty. -- function GT:GetFriendlyRaidDifficulty(diff) - return L(self.Difficulty.Raid[tonumber(diff) or GetRaidDifficulty()]) + return L(self.Difficulty.Raid[tonumber(diff) or GetRaidDifficultyID()]) end -- 1.7.9.5