1
0
Fork 0
mirror of synced 2024-05-03 04:02:28 +12:00

Correct who to compare losses to

This commit is contained in:
phxntxm 2019-02-16 15:12:34 -06:00
parent f318731882
commit a211fe3048

View file

@ -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)