ElvUI/Nameplates: Use /elvrole role for nameplate styling. Defer to group role assinged if not manually set elvrole to tank or healer

This commit is contained in:
andrew6180
2023-09-20 08:40:07 -07:00
parent 31b0d404c3
commit 58079ab3ae
3 changed files with 20 additions and 1 deletions
+18
View File
@@ -49,6 +49,24 @@ function E:GetPlayerRole()
return isTank and "TANK" or isHealer and "HEALER" or "DAMAGER"
end
function E:GetPlayerDesiredRole()
local myRole = E.Role
if myRole == "Tank" then
myRole = "TANK"
elseif myRole == "Healer" then
myRole = "HEALER"
else
local groupRole = E:GetPlayerRole()
if groupRole then
myRole = groupRole
else
myRole = "DAMAGER"
end
end
return myRole
end
do
--local Masque = E.Libs.Masque
local LBFGroupToTableElement = {