Commit 71fe4c20 authored by 未闻皂名's avatar 未闻皂名

2023/11/6 bug修复

parent d3f4e079
Pipeline #23958 passed with stages
in 10 minutes and 50 seconds
...@@ -26,12 +26,12 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,12 +26,12 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<=2 return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<=2
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_MZONE,0,nil) local ct=Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_MZONE,0,nil)*2
if chk==0 then return ct>0 and Duel.IsPlayerCanDiscardDeck(tp,ct) end if chk==0 then return ct>0 and Duel.IsPlayerCanDiscardDeck(tp,ct) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,ct) Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,ct)
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_MZONE,0,nil) local ct=Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_MZONE,0,nil)*2
if RD.SendDeckTopToGraveAndExists(tp,ct,cm.exfilter,2,nil) then if RD.SendDeckTopToGraveAndExists(tp,ct,cm.exfilter,2,nil) then
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
......
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