From 3254755e6140ccb88e2fb07cd8deed074bcd5ab3 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 18 Jul 2023 18:28:42 +0200 Subject: [PATCH] Fix elo again --- .../bungeecore/network/handlers/EloPlayerHandler.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/de/steamwar/bungeecore/network/handlers/EloPlayerHandler.java b/src/de/steamwar/bungeecore/network/handlers/EloPlayerHandler.java index febb04b..1791fa3 100644 --- a/src/de/steamwar/bungeecore/network/handlers/EloPlayerHandler.java +++ b/src/de/steamwar/bungeecore/network/handlers/EloPlayerHandler.java @@ -101,6 +101,14 @@ public class EloPlayerHandler extends PacketHandler { } else if (fightEndsPacket.getWin() == 2 && redTeamElo < blueTeamElo) { redTeamEloBonus = outlivedDuration / 20; blueTeamEloBonus = -(redTeamEloBonus / 2); + } else if (fightEndsPacket.getWin() == 0) { + if (redTeamElo < blueTeamElo) { + blueTeamEloBonus = outlivedDuration / 20; + redTeamEloBonus = -(blueTeamEloBonus / 2); + } else if (blueTeamElo < redTeamElo) { + redTeamEloBonus = outlivedDuration / 20; + blueTeamEloBonus = -(redTeamEloBonus / 2); + } } }