Commit e7394ead authored by nanahira's avatar nanahira

observer no kick

parent 280a85fa
Pipeline #43392 passed with stages
in 3 minutes and 22 seconds
...@@ -180,10 +180,12 @@ export class ClientHandler { ...@@ -180,10 +180,12 @@ export class ClientHandler {
const room = this.ctx const room = this.ctx
.get(() => RoomManager) .get(() => RoomManager)
.findByName(client.roomName); .findByName(client.roomName);
return !( return (
room && !(
client.pos === NetPlayerType.OBSERVER && room &&
room.duelStage !== DuelStage.Begin client.pos === NetPlayerType.OBSERVER &&
room.duelStage !== DuelStage.Begin
) && !client.isInternal
); );
}), }),
take(1), take(1),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment