Updated GetLFGProposal return values

This commit is contained in:
2017-06-14 10:18:02 -05:00
parent 2eae8fa419
commit 08e8d3a087
2 changed files with 5 additions and 5 deletions

View File

@ -1078,9 +1078,9 @@ function PlayerHealth.prototype:CheckPartyRole()
if configMode or IceHUD:GetIsInLFGGroup() then
if (configMode or self.moduleSettings.showPartyRoleIcon) and not self.frame.PartyRoleIcon then
local isTank, isHeal, isDPS
local proposalExists, typeID, id, name
local proposalExists, typeID, id, subtypeID, name
local texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isleader
proposalExists, typeID, id, name, texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isleader = GetLFGProposal()
proposalExists, id, typeID, subtypeID, name, texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isleader = GetLFGProposal()
local p = self.unit
if IceHUD.WowVer < 40000 then
@ -1096,7 +1096,7 @@ function PlayerHealth.prototype:CheckPartyRole()
IceHUD:Debug( tostring(proposalExists) .."**".. tostring(typeID) .."**".. tostring(id) .."**".. tostring(name) .."**".. tostring(texture) .."**".. tostring(role) .."**".. tostring(hasResponded) .."**".. tostring(totalEncounters) .."**".. tostring(completedEncounters) .."**".. tostring(numMembers) .."**".. tostring(isleader) )
if proposalExists == true then
IceHUD:Debug(tostring(typeID).." "..role)
IceHUD:Debug(tostring(typeID).." "..(role or ""))
isTank = (role == "TANK")
isHeal = (role == "HEALER")
isDPS = (role == "DAMAGER")

View File

@ -1074,9 +1074,9 @@ function IceTargetHealth.prototype:CheckPartyRole()
if self.configMode or IceHUD:GetIsInLFGGroup() then
if self.configMode or self.moduleSettings.showPartyRoleIcon then
local isTank, isHeal, isDPS
local proposalExists, typeID, id, name
local proposalExists, typeID, id, subtypeID, name
local texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isleader
proposalExists, typeID, id, name, texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isleader = GetLFGProposal()
proposalExists, id, typeID, subtypeID, name, texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isleader = GetLFGProposal()
local p = self.unit
if IceHUD.WowVer < 40000 then