Commit b9e0438f authored by GuGu's avatar GuGu

Update c86379509.lua

parent e703bf12
Pipeline #33205 passed with stage
in 10 seconds
......@@ -142,33 +142,26 @@ function c86379509.gop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local seq=c:GetSequence()
local ct=Duel.GetMatchingGroupCount(c86379509.filter,tp,LOCATION_GRAVE,0,nil,seq)
local g=Group.CreateGroup()
local f1=Duel.GetMatchingGroup(c86379509.filter1,tp,LOCATION_DECK,0,nil)
local f2=Duel.GetMatchingGroup(c86379509.filter4,tp,LOCATION_DECK,0,nil)
local f3=Duel.GetMatchingGroup(c86379509.filter5,tp,LOCATION_DECK,0,nil)
local f4=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_DECK,0,nil)
if ct>=5 then
local g=Duel.SelectMatchingCard(tp,c86379509.filter1,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
if tc then
Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0)
Duel.ConfirmDecktop(tp,1)
end
elseif ct>=10 then
local g=Duel.SelectMatchingCard(tp,c86379509.filter4,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
if tc then
Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0)
Duel.ConfirmDecktop(tp,1)
end
elseif ct>=15 then
local g=Duel.SelectMatchingCard(tp,c86379509.filter5,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
if tc then
Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0)
Duel.ConfirmDecktop(tp,1)
end
elseif ct>=30 then
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
g:Merge(f1)
end
if ct>=10 then
g:Merge(f2)
end
if ct>=15 then
g:Merge(f3)
end
if ct>=30 then
g:Merge(f4)
end
if g:GetCount()>0 then
local tg=g:FilterSelect(tp,aux.TRUE,1,1,nil)
local tc=tg:GetFirst()
if tc then
Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0)
......
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