Commit 5e2b4825 authored by Chunchi Che's avatar Chunchi Che

修复换Side额外卡组暂时错误和优化一些回放的小问题

parent 150a052d
......@@ -91,12 +91,11 @@ async function _handle(e: MessageEvent) {
break;
}
case "stoc_game_msg": {
await handleGameMsg(pb);
if (!replayStore.isReplay) {
// 如果不是回放模式,则记录回放数据
replayStore.record(packet);
}
await handleGameMsg(pb);
break;
}
......
......@@ -58,7 +58,10 @@ export const Component: React.FC = () => {
setDeck(JSON.parse(JSON.stringify(sideDeck)));
message.info("重置成功");
};
const onSummit = () => sendUpdateDeck(deck);
const onSummit = () => {
sendUpdateDeck(deck);
window.myExtraDeckCodes = [...deck.extra];
};
useEffect(() => {
if (stage === SideStage.SIDE_CHANGED) {
......
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