Commit 50ce3366 authored by 未闻皂名's avatar 未闻皂名

2023/12/24 自我回避调整更新

parent a39953b3
Pipeline #24597 passed with stages
in 17 minutes and 22 seconds
-- Rush Duel 操作 -- Rush Duel 操作
RushDuel = RushDuel or {} RushDuel = RushDuel or {}
-- 特殊调整,里侧守备表示特殊召唤时不用给对方确认
RushDuel.DisableSpecialSummonConfirm = false
-- 内部方法: 选择匹配卡片, 执行操作 -- 内部方法: 选择匹配卡片, 执行操作
function RushDuel._private_action_select_match(hint, filter, tp, s_range, o_range, min, max, expect, hint_selection, confirm, action, ...) function RushDuel._private_action_select_match(hint, filter, tp, s_range, o_range, min, max, expect, hint_selection, confirm, action, ...)
if min < 2 or Duel.IsExistingMatchingCard(filter, tp, s_range, o_range, min, expect, ...) then if min < 2 or Duel.IsExistingMatchingCard(filter, tp, s_range, o_range, min, expect, ...) then
...@@ -61,13 +64,14 @@ function RushDuel._special_summon(target, effect, player, position, break_effect ...@@ -61,13 +64,14 @@ function RushDuel._special_summon(target, effect, player, position, break_effect
Duel.BreakEffect() Duel.BreakEffect()
end end
local ct = Duel.SpecialSummon(target, 0, player, target_player or player, false, false, position) local ct = Duel.SpecialSummon(target, 0, player, target_player or player, false, false, position)
if (position & POS_FACEDOWN) ~= 0 then if (position & POS_FACEDOWN) ~= 0 and not RushDuel.DisableSpecialSummonConfirm then
Duel.ConfirmCards(1 - player, target) Duel.ConfirmCards(1 - player, target)
local og = Duel.GetOperatedGroup():Filter(Card.IsFacedown, nil) local og = Duel.GetOperatedGroup():Filter(Card.IsFacedown, nil)
if og:GetCount() > 1 then if og:GetCount() > 1 then
Duel.ShuffleSetCard(og) Duel.ShuffleSetCard(og)
end end
end end
RushDuel.DisableSpecialSummonConfirm = false
return ct return ct
end end
-- 内部方法: 盖放魔法陷阱 -- 内部方法: 盖放魔法陷阱
......
...@@ -26,6 +26,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,6 +26,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if RD.Draw()~=0 then if RD.Draw()~=0 then
RD.DisableSpecialSummonConfirm=true
RD.CanSelectAndSpecialSummon(aux.Stringid(m,1),cm.spfilter,tp,LOCATION_HAND,0,1,3,nil,e,POS_FACEDOWN_DEFENSE,true) RD.CanSelectAndSpecialSummon(aux.Stringid(m,1),cm.spfilter,tp,LOCATION_HAND,0,1,3,nil,e,POS_FACEDOWN_DEFENSE,true)
end end
end end
\ No newline at end of file
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