This commit is contained in:
Daniel Odendahl Jr
2017-06-01 18:54:45 +00:00
parent db0534f293
commit 0b736a33d6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "22.0.0",
"version": "22.0.1",
"description": "A Discord Bot",
"main": "Shard.js",
"scripts": {