- 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
isTank, isHeal, isDPS = UnitGroupRolesAssigned(p)
else
local role = UnitGroupRolesAssigned(p)
isTank = (role == "TANK")
isHeal = (role == "HEALER")
isDPS = (role == "DAMAGER")
local grpRole = UnitGroupRolesAssigned(p)
isTank = (grpRole == "TANK")
isHeal = (grpRole == "HEALER")
isDPS = (grpRole == "DAMAGER")
end
IceHUD:Debug(".......")
IceHUD:Debug(p.."="..tostring(UnitName(p)))