Commit a7340d82 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/reset' into 'main'

修复无法结束回合的问题。

See merge request !364
parents c2dd78e6 80d2c890
......@@ -33,7 +33,6 @@ import styles from "./index.module.scss";
import PhaseType = ygopro.StocGameMessage.MsgNewPhase.PhaseType;
import { openChatBox } from "../ChatBox";
const { phase: store } = matStore;
const { useToken } = theme;
const clearAllIdleInteractivities = () => {
for (const card of cardStore.inner) {
......@@ -63,8 +62,11 @@ const initialPhaseBind: [
];
export const Menu = () => {
const { enableBp, enableM2, enableEp, currentPhase } = useSnapshot(store);
const { currentPlayer, chainSetting } = useSnapshot(matStore);
const {
currentPlayer,
chainSetting,
phase: { enableBp, enableM2, enableEp, currentPhase },
} = useSnapshot(matStore);
const [phaseBind, setPhaseBind] = useState(initialPhaseBind);
const [phaseSwitchItems, setPhaseSwitchItems] = useState<MenuProps["items"]>(
[],
......
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