From dca30112f6b235946391a3967d4a8e8ba785718f Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Mon, 9 May 2016 10:57:52 +0200 Subject: [PATCH] Fix: Was not using specific cap when called from Mission Control --- MatchMaker.lua | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/MatchMaker.lua b/MatchMaker.lua index 4fb66b9..008352a 100644 --- a/MatchMaker.lua +++ b/MatchMaker.lua @@ -281,13 +281,10 @@ function addon:MCMatchMaker(missionID,party,skipEpic,cap) local mission=type(missionID)=="table" and missionID or self:GetMissionData(missionID) missionID=mission.missionID if (not party) then party=addon:GetParty(missionID) end - useCap=true - currentCap=cap - --@debug@ -print("Using cap data:",useCap,currentCap) +print("Using cap data:",cap) --@end-debug@ - MatchMaker(self,mission,party,false) + MatchMaker(self,mission,party,false,true,cap) if (skipEpic) then if (self:GetMissionData(missionID,'class')=='xp') then for i=1,#party.members do @@ -301,12 +298,12 @@ print("Using cap data:",useCap,currentCap) end return party.perc end -function addon:MatchMaker(missionID,party,includeBusy) +function addon:MatchMaker(missionID,party,includeBusy,useCap,currentCap) local mission=type(missionID)=="table" and missionID or self:GetMissionData(missionID) missionID=mission.missionID if (not party) then party=addon:GetParty(missionID) end - useCap=self:GetBoolean("MAXRES") - currentCap= self:GetNumber("MAXRESCHANCE") + useCap=useCap or self:GetBoolean("MAXRES") + currentCap=currentCap or self:GetNumber("MAXRESCHANCE") MatchMaker(self,mission,party,includeBusy) return party.perc end -- 1.7.9.5