Wrong rank/win place when using "!statg match"
Closed this issue · 2 comments
kuper-adrian commented
The win place of individual players inside the same squad can differ (e.g. when a player dies and his team lives on). Since the bot uses the win place of the first player in the squad on !statg match
, this leads to misleading/wrongly displayed ranks.
To fix this, the win place of the entire squad should be used inside match-cmd-handler.js
(check api docs here).
medusalix commented
The rank of the entire squad should be provided by roster.attributes.stats.rank
, right? I'm not too familiar with PUBG, so I want to make sure I'm seeing this correctly before making a pull request 😃.
EDIT: Seems to be working fine, I'm going for it.
kuper-adrian commented
roster.attributes.stats.rank
looks good.