Commit 46794a85 authored by Chunchi Che's avatar Chunchi Che

update move service

parent c52e4dfd
......@@ -4,6 +4,7 @@ import { AppDispatch } from "../../store";
import { fetchMonsterMeta } from "../../reducers/duel/monstersSlice";
import { removeHand } from "../../reducers/duel/mod";
import { fetchMagicMeta } from "../../reducers/duel/magicSlice";
import { fetchCemeteryMeta } from "../../reducers/duel/cemeretySlice";
export default (move: MsgMove, dispatch: AppDispatch) => {
const code = move.code;
......@@ -48,6 +49,17 @@ export default (move: MsgMove, dispatch: AppDispatch) => {
break;
}
case ygopro.CardZone.GRAVE: {
dispatch(
fetchCemeteryMeta({
controler: to.controler,
sequence: to.sequence,
code,
})
);
break;
}
default: {
console.log(`Unhandled zone type ${to.location}`);
......
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