Skip to content

Commit

Permalink
Empoleon's Empires: clear current player after removal (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-Comfey authored Apr 17, 2024
1 parent fdf163a commit ead83e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/games/empoleons-empires.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class EmpoleonsEmpires extends ScriptedGame {
onRemovePlayer(player: Player): void {
if (this.started) {
if (this.currentPlayer === player) {
this.currentPlayer = null;
void this.nextRound();
return;
}

if (this.getRemainingPlayerCount() < 2) this.end();
}
}
Expand Down Expand Up @@ -236,7 +236,8 @@ const commands: GameCommandDefinitions<EmpoleonsEmpires> = {
return false;
}

this.removePlayer(targetPlayer.name);
this.removePlayer(targetPlayer.name, true);
targetPlayer.say("You were DQed from " + this.name + " by " + user.name + " for using an inappropriate alias.");
(this.room as Room).modnote(user.name + " DQed " + targetPlayer.name + " from " + this.name + " for using the alias '" +
target.trim() + "'.");
return true;
Expand Down

0 comments on commit ead83e4

Please sign in to comment.