Fixed a call in the API 2.0 using a deprecated call from the Open Raid Library

This commit is contained in:
Tercio Jose
2022-04-26 19:10:59 -03:00
parent 3afc9ce24d
commit d4f50e7cb7
5 changed files with 87 additions and 23 deletions
+1 -1
View File
@@ -512,7 +512,7 @@ function Details.UnitInfo (unitId, segment)
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
if (openRaidLib) then
playerInfo = openRaidLib.playerInfoManager.GetPlayerInfo(unitName)
playerInfo = openRaidLib.GetUnitInfo(unitName)
end
unitInfo.class = playerObject.classe or class or "UNKNOW"