Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Fixed a serious bug in the battle command
Browse files Browse the repository at this point in the history
  • Loading branch information
Serena1432 committed Jun 26, 2021
1 parent d408d34 commit 33b5121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/battle.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function info(client, message, args, language) {
if (client.economyManager[message.author.id].streaks >= 30) random = Math.floor(Math.random() * 5) + 1;
eval("if (!client.economyManager[message.author.id].leveling_tickets.lvt" + random + ") client.economyManager[message.author.id].leveling_tickets.lvt" + random + " = 1; else client.economyManager[message.author.id].leveling_tickets.lvt" + random + "++;");
var random2 = Math.floor(Math.random() * 3) + 1;
if (client.economyManagereconomyManager[message.author.id].streaks >= 30) random2 = Math.floor(Math.random() * 5) + 1;
if (client.economyManager[message.author.id].streaks >= 30) random2 = Math.floor(Math.random() * 5) + 1;
eval("if (!client.economyManager[message.author.id].leveling_tickets.gtk" + random2 + ") client.economyManager[message.author.id].leveling_tickets.gtk" + random2 + " = 1; else client.economyManager[message.author.id].leveling_tickets.gtk" + random2 + "++;");
ticketGift = "\nYou also got a Leveling Ticket " + random + "★ and a Gacha Ticket " + random2 + "★!";
}
Expand Down

0 comments on commit 33b5121

Please sign in to comment.