Commit be7c6c84 authored by timel's avatar timel

fix: remove card list modal in message store

parent 93b6a609
Pipeline #22366 failed with stages
in 12 minutes and 24 seconds
......@@ -21,14 +21,6 @@ export interface ModalState {
interactivies: { desc: string; response: number; effectCode?: number }[];
counters: { [type: number]: number };
};
// 卡牌列表弹窗
cardListModal: {
isOpen: boolean;
list: {
meta?: CardMeta;
interactivies: { desc: string; response: number }[];
}[];
};
// Yes or No弹窗
yesNoModal: {
isOpen: boolean;
......
......@@ -259,21 +259,14 @@ const onCardClick = (card: CardType) => {
card.location.sequence
);
if (overlayMaterials.length > 0) {
messageStore.cardListModal.list =
overlayMaterials.map((overlay) => ({
meta: {
id: overlay.code,
text: overlay.meta.text,
data: overlay.meta.data,
},
interactivies: [],
})) || [];
messageStore.cardListModal.isOpen = true;
displayCardListModal({
isZone: false,
monster: card,
});
}
};
const onFieldClick = (card: CardType) => {
messageStore.cardListModal.isOpen = true;
displayCardListModal({
isZone: true,
zone: card.location.zone,
......
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