Skip to content

Commit

Permalink
disable ELO tracking here
Browse files Browse the repository at this point in the history
  • Loading branch information
Brain-dawg committed Jan 29, 2025
1 parent 50b9880 commit 857090a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mge/functions.nut
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,11 @@
if (winner.IsFakeClient() || loser.IsFakeClient() || !ELO_TRACKING_MODE || loser2.IsFakeClient() || winner2.IsFakeClient())
return

local arena = winner.GetScriptScope().arena_info.arena

if ("IsCustomRuleset" in arena && arena.IsCustomRuleset)
return

loser.stats.elo = loser.stats.elo.tointeger()
loser2.stats.elo = loser2.stats.elo.tointeger()
winner.stats.elo = winner.stats.elo.tointeger()
Expand Down

0 comments on commit 857090a

Please sign in to comment.