Commit bf0a16f2 authored by chechunchi's avatar chechunchi

optimize handleDropdownMenu

parent a2581ce5
......@@ -319,7 +319,15 @@ const handleDropdownMenu = (cards: CardType[], isField: boolean) => {
} else {
// 场地: 选择卡片
const option = await displaySimpleSelectCardsModal({
selectables: cards.map((card) => ({
selectables: cards
// 过滤掉不能发效果的卡
.filter(
(card) =>
card.idleInteractivities.find(
({ interactType }) => interactType === InteractType.ACTIVATE
) !== undefined
)
.map((card) => ({
meta: card.meta,
location: card.location,
card,
......
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