Commit 575153e8 authored by Tachibana's avatar Tachibana

E

parent 47557104
Pipeline #15724 passed with stages
in 32 minutes and 19 seconds
......@@ -8,7 +8,10 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp,c)
local op={}
local os={}
for i=2,4,1 do
if Duel.GetMatchingGroupCount(Card.IsType,tp,0,i*(i==2 and 1 or 4),nil,TYPE_SPELL+TYPE_TRAP)>0 then
if i==2 and Duel.GetFieldGroupCount(tp,0,2)>0 then
op[1]=aux.Stringid(m,1)
os[1]=i
elseif i~=2 and Duel.GetMatchingGroupCount(Card.IsType,tp,0,i*4,nil,TYPE_SPELL+TYPE_TRAP)>0 then
op[#op+1]=aux.Stringid(m,i-1)
os[#os+1]=i
end
......@@ -19,5 +22,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp,c)
Duel.BreakEffect()
os = Duel.GetMatchingGroup(Card.IsType,tp,0,op*(op==2 and 1 or 4),nil,TYPE_SPELL+TYPE_TRAP)
if op==2 then Duel.ConfirmCards(tp,Duel.GetFieldGroup(tp,0,LOCATION_HAND)) end
Duel.Remove(os,POS_FACEUP,REASON_EFFECT)
end
\ No newline at end of file
if #os>0 then Duel.Remove(os,POS_FACEUP,REASON_EFFECT) end
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