From a211fe3048bbd431246a32669ff65822ddd3dc2a Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sat, 16 Feb 2019 15:12:34 -0600 Subject: [PATCH] Correct who to compare losses to --- cogs/interaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/interaction.py b/cogs/interaction.py index fc0cfa1..70ef3ee 100644 --- a/cogs/interaction.py +++ b/cogs/interaction.py @@ -257,7 +257,7 @@ class Interaction: # Due to our previous checks, the ID should only be in the dictionary once, in the current battle we're checking self.battling_off(battle) - # Randomize the order of who is printed/sent to the update system + # Randomize the winner/loser winner, loser = battle.choose() member_list = [m.id for m in ctx.guild.members] @@ -347,7 +347,7 @@ VALUES fmt += "\n{} - Rank: {}".format(winner.display_name, new_winner_rank) if old_winner: fmt += "\n{} - Rank: {} ( -{} )".format( - loser.display_name, new_loser_rank, new_loser_rank - old_winner["rank"] + loser.display_name, new_loser_rank, new_loser_rank - old_loser["rank"] ) else: fmt += "\n{} - Rank: {}".format(loser.display_name, new_loser_rank)