mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- 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:
@ -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)))
|
||||
|
Reference in New Issue
Block a user