From 0b736a33d64bcaebba8215dacfc8d822daa1c7cf Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 1 Jun 2017 18:54:45 +0000 Subject: [PATCH] Fix --- commands/games/battle.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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": {