Commit bf0a16f2 authored by chechunchi's avatar chechunchi

optimize handleDropdownMenu

parent a2581ce5
Pipeline #22472 passed with stages
in 15 minutes and 39 seconds
......@@ -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