Commit e615ed1f authored by chechunchi's avatar chechunchi

update move service

parent 0896be2d
Pipeline #19651 passed with stages
in 7 minutes and 17 seconds
...@@ -10,6 +10,7 @@ import { ...@@ -10,6 +10,7 @@ import {
import { fetchMagicMeta } from "../../reducers/duel/magicSlice"; import { fetchMagicMeta } from "../../reducers/duel/magicSlice";
import { fetchCemeteryMeta } from "../../reducers/duel/cemeretySlice"; import { fetchCemeteryMeta } from "../../reducers/duel/cemeretySlice";
import { insertHandMeta } from "../../reducers/duel/handsSlice"; import { insertHandMeta } from "../../reducers/duel/handsSlice";
import { fetchExclusionMeta } from "../../reducers/duel/exclusionSlice";
export default (move: MsgMove, dispatch: AppDispatch) => { export default (move: MsgMove, dispatch: AppDispatch) => {
const code = move.code; const code = move.code;
...@@ -86,6 +87,17 @@ export default (move: MsgMove, dispatch: AppDispatch) => { ...@@ -86,6 +87,17 @@ export default (move: MsgMove, dispatch: AppDispatch) => {
break; break;
} }
case ygopro.CardZone.REMOVED: {
dispatch(
fetchExclusionMeta({
controler: to.controler,
sequence: to.sequence,
code,
})
);
break;
}
default: { default: {
console.log(`Unhandled zone type ${to.location}`); 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