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