boonwin / BoonwinsBattlegroundsTracker

A HDT Plugin to track your ranks and mmr change of the day and show it on stream.
MIT License
21 stars 9 forks source link

When spectating someone plugin records his place in own statistic #5

Closed Dego1n closed 3 years ago

Dego1n commented 3 years ago

So if you spectate someone and player finishes his game, his plays will be counted as your own in statistic of the day. Can something be done about this?

TranRed commented 3 years ago

You can utilize the attribute Core.Game.Spectator. It will be true if it was a game from spectator mode.

Checking before all this should do the trick: https://github.com/boonwin/BoonwinsBattlegroundsTracker/blob/9084fe1ca137543688999e9369267cf96eef3606/BoonwinsBattlegroundTracker/BgMatchData.cs#L101-L116

b00nwin commented 3 years ago

Thanks, I saw that already but im focusing on some other stuff right now but i will look into it.

b00nwin commented 3 years ago

it should be fixed now