Commit b5ee2735 authored by chechunchi's avatar chechunchi

fix small

parent c5665437
Pipeline #19684 passed with stages
in 5 minutes and 15 seconds
...@@ -16,6 +16,7 @@ import onMsgSelectOption from "./selectOption"; ...@@ -16,6 +16,7 @@ import onMsgSelectOption from "./selectOption";
import onMsgShuffleHand from "./shuffleHand"; import onMsgShuffleHand from "./shuffleHand";
import onMsgSelectBattleCmd from "./selectBattleCmd"; import onMsgSelectBattleCmd from "./selectBattleCmd";
import onMsgPosChange from "./posChange"; import onMsgPosChange from "./posChange";
import onMsgSelectUnselectCard from "./selectUnselectCard";
export default function handleGameMsg(pb: ygopro.YgoStocMsg) { export default function handleGameMsg(pb: ygopro.YgoStocMsg) {
const dispatch = store.dispatch; const dispatch = store.dispatch;
...@@ -102,6 +103,11 @@ export default function handleGameMsg(pb: ygopro.YgoStocMsg) { ...@@ -102,6 +103,11 @@ export default function handleGameMsg(pb: ygopro.YgoStocMsg) {
break; break;
} }
case "select_unselect_card": {
onMsgSelectUnselectCard(msg.select_unselect_card, dispatch);
break;
}
default: { default: {
break; break;
} }
......
...@@ -18,6 +18,7 @@ import YesNoModal from "./yesNoModal"; ...@@ -18,6 +18,7 @@ import YesNoModal from "./yesNoModal";
import PositionModal from "./positionModal"; import PositionModal from "./positionModal";
import OptionModal from "./optionModal"; import OptionModal from "./optionModal";
import Phase from "./phase"; import Phase from "./phase";
import CheckCardModalV2 from "./checkCardModalV2";
// Ref: https://github.com/brianzinn/react-babylonjs/issues/126 // Ref: https://github.com/brianzinn/react-babylonjs/issues/126
const NeosDuel = () => ( const NeosDuel = () => (
...@@ -51,6 +52,7 @@ const NeosDuel = () => ( ...@@ -51,6 +52,7 @@ const NeosDuel = () => (
<YesNoModal /> <YesNoModal />
<PositionModal /> <PositionModal />
<OptionModal /> <OptionModal />
<CheckCardModalV2 />
</> </>
); );
......
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