Commit 2cef22d1 authored by 未闻皂名's avatar 未闻皂名

2025/2/25 场上的卡返回手卡时不需要确认

parent 0282834b
Pipeline #33370 passed with stages
in 10 minutes and 25 seconds
......@@ -275,6 +275,10 @@ function RushDuel.FilterToHandTarget(card, effect, player, reason, hints)
end
return true
end
-- 过滤需要给对方确认的卡
function RushDuel.FilterToHandConfirm(card, player)
return card:IsControler(player) and card:IsPreviousLocation(LOCATION_DECK + LOCATION_GRAVE + LOCATION_REMOVED)
end
-- 操作: 加入/返回手卡, 并给对方确认加入自己手卡的卡
function RushDuel.SendToHandAndExists(target, effect, player, reason, filter, count, expect)
local hints = Group.CreateGroup()
......@@ -290,7 +294,7 @@ function RushDuel.SendToHandAndExists(target, effect, player, reason, filter, co
if Duel.SendtoHand(g, nil, REASON_EFFECT) == 0 then
return false
end
local cg = g:Filter(Card.IsControler, nil, player)
local cg = g:Filter(RushDuel.FilterToHandConfirm, nil, player)
if cg:GetCount() > 0 then
Duel.ConfirmCards(1 - player, cg)
end
......
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