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