update:个人训练优化
This commit is contained in:
@@ -20,7 +20,7 @@ import {
|
||||
MATCH_WS_STATE_EVENT,
|
||||
} from "@/matchWebsocket";
|
||||
import { MESSAGETYPESV2 } from "@/constants";
|
||||
import { getDirectionText } from "@/util";
|
||||
import { getDirectionText, getInvalidShotAudioKey } from "@/util";
|
||||
import { takeMatchReturnSnapshot } from "@/utils/matchReturn";
|
||||
import audioManager, {
|
||||
AUDIO_INTERRUPTION_BEGIN_EVENT,
|
||||
@@ -1136,7 +1136,9 @@ async function runInvalidShotTask(task, runId) {
|
||||
title: "距离不足,无效",
|
||||
icon: "none",
|
||||
});
|
||||
await playAudioKeys("射击无效", { interrupt: false });
|
||||
await playAudioKeys(getInvalidShotAudioKey(task.message?.shootData), {
|
||||
interrupt: false,
|
||||
});
|
||||
notifyMatchAudioAck(task);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user