mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Fix
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = class RussianRouletteCommand extends Command {
|
|||||||
let winner = null;
|
let winner = null;
|
||||||
while (!winner) {
|
while (!winner) {
|
||||||
const player = userTurn ? msg.author : opponent;
|
const player = userTurn ? msg.author : opponent;
|
||||||
const notPlayer = userTurn ? msg.author : opponent;
|
const notPlayer = userTurn ? opponent : msg.author;
|
||||||
if (gun[round]) {
|
if (gun[round]) {
|
||||||
await msg.say(`**${player.tag}** pulls the trigger... **And dies!**`);
|
await msg.say(`**${player.tag}** pulls the trigger... **And dies!**`);
|
||||||
winner = notPlayer;
|
winner = notPlayer;
|
||||||
|
|||||||
Reference in New Issue
Block a user