don't emit killed event to person receiving mod powers

This commit is contained in:
AlecM33
2022-12-17 14:52:21 -05:00
parent cdff2c46a4
commit 6250f71819
3 changed files with 16 additions and 13 deletions

View File

@@ -75,7 +75,7 @@ class SocketManager {
gameManager.getTimeRemaining(game, socket);
break;
case EVENT_IDS.KILL_PLAYER:
gameManager.killPlayer(game, game.people.find((person) => person.id === args.personId), namespace, this.logger);
gameManager.killPlayer(socket, game, game.people.find((person) => person.id === args.personId), namespace, this.logger);
break;
case EVENT_IDS.REVEAL_PLAYER:
gameManager.revealPlayer(game, args.personId);