Commit 075ccc3c authored by nanahira's avatar nanahira

fix

parent 4b53d32b
......@@ -392,7 +392,7 @@ export class Room {
this.duelStage === DuelStage.Begin;
// 记录进房前是否已经有玩家,用于判定首个玩家为房主
const hasPlayerBeforeJoin = this.playingPlayers.length > 0;
const hasPlayerBeforeJoin = this.allPlayers.length > 0;
if (isPlayer) {
this.players[firstEmptyPlayerSlot] = client;
......
......@@ -9,8 +9,8 @@ import {
import { Room } from '../room';
import { isUpdateMessage } from './is-update-message';
const isVerifySkippingMessage = (message: YGOProMsgBase) =>
message instanceof YGOProMsgHint || isUpdateMessage(message);
const isVerifySkippingMessage = (message: YGOProMsgBase) =>
isUpdateMessage(message) || message instanceof YGOProMsgHint;
export const sliceOcgcore = async (room: Room, i: number) => {
if (
......
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