Since the original Download is broken,
i wrote the function for myself
Code:
if GetBattlefieldWinner() == nil then return false end
local sign
local teamName, teamRating, newTeamRating, teamMMR = GetBattlefieldTeamInfo(0)
if newTeamRating < teamRating then
sign = ''
else
sign = '+'
end
PQR_WriteToChat("|cff3CB338"..teamName.."|cffffffff")
PQR_WriteToChat("|cff3CB338Rating: ".. newTeamRating.. " ("..sign ..tostring(newTeamRating-teamRating)..")|cffffffff")
PQR_WriteToChat("|cff3CB338MMR: ".. teamMMR .. "|cffffffff")
local teamName, teamRating, newTeamRating, teamMMR = GetBattlefieldTeamInfo(1)
if newTeamRating < teamRating then
sign = ''
else
sign = '+'
end
PQR_WriteToChat("|cff817315"..teamName.."|cffffffff")
PQR_WriteToChat("|cff817315Rating: ".. newTeamRating.. " ("..sign ..tostring(newTeamRating-teamRating)..")|cffffffff")
PQR_WriteToChat("|cff817315MMR: ".. teamMMR .. "|cffffffff")
LeaveBattlefield()
return true
You may need some more checks at the beginning, but it should work