Skip to content

Conversation

@firehawkx
Copy link

Updated battleFriendUtil.js, specifically function toEmbedRequest, in order to fix the wins/losses being displayed in reverse based on the data pulled from the SQL database.

The current code always showed:
For sender: stats[sender.id]
For receiver: stats[receiver.id]

But due to how the battle system records wins, this is reversed.
The wins stored for sender.id were actually the receiver's wins, and vice versa.

@CLAassistant
Copy link

CLAassistant commented Apr 23, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants