Commit b17dda93 authored by nanahira's avatar nanahira

update

parent 9d3b9542
...@@ -45,8 +45,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,8 +45,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if not cm.target(e,tp,eg,ep,ev,re,r,rp,0) then return end if not cm.target(e,tp,eg,ep,ev,re,r,rp,0) then return end
local g=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_DECK,0,nil)
local tg=Senya.SelectGroup(tp,HINTMSG_SET,g,cm.check,nil,5,5) local tg=Senya.SelectGroup(tp,HINTMSG_SET,g,cm.check,nil,5,5)
Duel.SSet(tp,tg)
for tc in aux.Next(tg) do for tc in aux.Next(tg) do
Duel.SSet(tp,tc)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER) e1:SetCode(EFFECT_CANNOT_TRIGGER)
...@@ -69,7 +69,6 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +69,6 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():SetCardTarget(tc) e:GetHandler():SetCardTarget(tc)
end end
end end
Duel.ConfirmCards(1-tp,tg)
end end
function cm.rfilter(c,ec) function cm.rfilter(c,ec)
return cm[c] and c:IsType(TYPE_TRAP) and ec:IsHasCardTarget(c) return cm[c] and c:IsType(TYPE_TRAP) and ec:IsHasCardTarget(c)
...@@ -94,4 +93,4 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp) ...@@ -94,4 +93,4 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
end end
if c:IsHasCardTarget(tc) then c:CancelCardTarget(tc) end if c:IsHasCardTarget(tc) then c:CancelCardTarget(tc) end
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