mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:30:53 +02:00
Fix Battle Bug
This commit is contained in:
@@ -51,8 +51,8 @@ module.exports = class BattleCommand extends Command {
|
||||
else userHP -= damage;
|
||||
};
|
||||
const forfeit = () => {
|
||||
if (userTurn) userHP -= 500 - userHP;
|
||||
else oppoHP -= 500 - oppoHP;
|
||||
if (userTurn) userHP = 0;
|
||||
else oppoHP = 0;
|
||||
};
|
||||
while (userHP > 0 && oppoHP > 0) { // eslint-disable-line no-unmodified-loop-condition
|
||||
const username = userTurn ? msg.author.username : opponent.username;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "22.1.7",
|
||||
"version": "22.1.8",
|
||||
"description": "A Discord Bot",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user