fix bug with redundant play/pause events, fix spec, tweak current moderator css

This commit is contained in:
AlecM33
2023-04-08 16:01:39 -04:00
parent f1a5df94e2
commit bef8cd8d59
6 changed files with 25 additions and 22 deletions

View File

@@ -188,7 +188,8 @@ export class InProgress {
toast('You have been killed!', 'warning', true, true, 'medium');
} else {
toast(killedPlayer.name + ' was killed!', 'warning', true, true, 'medium');
if (killedPlayer.userType === globals.USER_TYPES.MODERATOR) {
if (killedPlayer.userType === globals.USER_TYPES.MODERATOR
&& this.stateBucket.currentGameState.client.userType !== globals.USER_TYPES.TEMPORARY_MODERATOR) {
SharedStateUtil.displayCurrentModerator(killedPlayer);
}
}