View Single Post
09-05-23, 01:38 PM   #5
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
Is this more along the lines of what needs to be done?

Lua Code:
  1. local function Update(self, t)
  2.             if playerRole == nil then
  3.                 Text:SetText(hexa.."No Stats"..hexb)
  4.             else
  5.                 if playerRole == GetSpecializationRole("TANK") then
  6.                     UpdateTank(self)
  7.                 elseif playerRole == GetSpecializationRole("HEALER") then
  8.                     UpdateCaster(self)
  9.                 elseif playerRole == GetSpecializationRole("DAMAGER") then
  10.                     UpdateDamager(self)
  11.                 end
  12.             end
  13.         end
  Reply With Quote