逻辑完善

This commit is contained in:
kron
2026-02-07 15:12:20 +08:00
parent 715e614f9d
commit d35ff9335f
6 changed files with 16 additions and 81 deletions

View File

@@ -50,7 +50,7 @@ async function onReceiveMessage(message) {
if (ended.value) return;
if (Array.isArray(message)) return;
if (message.type === MESSAGETYPESV2.BattleStart) {
melee.value = Boolean(message.mode);
melee.value = Boolean(message.mode > 3);
totalShot.value = message.mode === 1 ? 3 : 2;
currentRoundEnded.value = true;
audioManager.play("比赛开始");