- modified last commit to use a new local variable for the UnitGroupRolesAssigned check in order to avoid stepping on a different usage of "role" in the surrounding code

This commit is contained in:
Parnic
2010-09-07 00:27:37 +00:00
parent 83936af830
commit d09c91ab99

View File

@ -990,10 +990,10 @@ function PlayerHealth.prototype:CheckPartyRole()
if IceHUD.WowVer < 40000 then if IceHUD.WowVer < 40000 then
isTank, isHeal, isDPS = UnitGroupRolesAssigned(p) isTank, isHeal, isDPS = UnitGroupRolesAssigned(p)
else else
local role = UnitGroupRolesAssigned(p) local grpRole = UnitGroupRolesAssigned(p)
isTank = (role == "TANK") isTank = (grpRole == "TANK")
isHeal = (role == "HEALER") isHeal = (grpRole == "HEALER")
isDPS = (role == "DAMAGER") isDPS = (grpRole == "DAMAGER")
end end
IceHUD:Debug(".......") IceHUD:Debug(".......")
IceHUD:Debug(p.."="..tostring(UnitName(p))) IceHUD:Debug(p.."="..tostring(UnitName(p)))