Hi Ketho,
now it works thanks to your input and tips.
I have tried also with unitid in my past tries but I use in a wrongly way.
I used:
and then that value in the function to calculate the score.
But it doesn't work.
Now following your suggest I change the code in this way and it works nicely:
Lua Code:
if event == "UPDATE_MOUSEOVER_UNIT" then
if (UnitIsPlayer("mouseover")) then
local score = C_PlayerInfo.GetPlayerMythicPlusRatingSummary("mouseover").currentSeasonScore
local r, g, b = C_ChallengeMode.GetDungeonScoreRarityColor(C_PlayerInfo.GetPlayerMythicPlusRatingSummary("mouseover").currentSeasonScore):GetRGB()
GameTooltip:AddLine(" ")
GameTooltip:AddDoubleLine("Mythic+ score",score,1,1,0,r,g,b)
GameTooltip:Show()
end
end
Don't know why it didn't work in other way :/
But now it works and I am happy
Thanks so much for you tips.