diff --git a/commands/games/battle.js b/commands/games/battle.js index c3fc3766..8a111cdc 100644 --- a/commands/games/battle.js +++ b/commands/games/battle.js @@ -49,8 +49,8 @@ module.exports = class BattleCommand extends Command { if (guard) guard = false; }; const dealDamage = (damage) => { - if (userTurn) userHP += damage; - else oppoHP += damage; + if (userTurn) userHP -= damage; + else oppoHP -= damage; }; while (userHP > 0 && oppoHP > 0) { // eslint-disable-line no-unmodified-loop-condition const username = userTurn ? msg.author.username : opponent.username; diff --git a/package.json b/package.json index b8dede36..2f79da5c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "22.0.0", + "version": "22.0.1", "description": "A Discord Bot", "main": "Shard.js", "scripts": {