Commit 812b46a4 authored by mercury233's avatar mercury233

use constant in deck MoveSequence

parent 56242327
...@@ -54,7 +54,7 @@ function c16605586.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c16605586.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
end end
if tc:IsLocation(LOCATION_DECK) then if tc:IsLocation(LOCATION_DECK) then
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -22,7 +22,7 @@ function c16693254.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -22,7 +22,7 @@ function c16693254.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -28,7 +28,7 @@ function c17559367.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c17559367.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -23,7 +23,7 @@ function c18658572.cfop(e,tp,eg,ep,ev,re,r,rp) ...@@ -23,7 +23,7 @@ function c18658572.cfop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0) local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local tc=g:GetMinGroup(Card.GetSequence):GetFirst() local tc=g:GetMinGroup(Card.GetSequence):GetFirst()
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
if tc:IsAbleToRemove(tp,POS_FACEDOWN) and Duel.SelectYesNo(tp,aux.Stringid(18658572,1)) then if tc:IsAbleToRemove(tp,POS_FACEDOWN) and Duel.SelectYesNo(tp,aux.Stringid(18658572,1)) then
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
......
...@@ -38,7 +38,7 @@ function c23020408.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c23020408.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.HintSelection(g) Duel.HintSelection(g)
if tc:IsLocation(LOCATION_DECK) then if tc:IsLocation(LOCATION_DECK) then
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
else else
Duel.SendtoDeck(tc,nil,SEQ_DECKTOP,REASON_EFFECT) Duel.SendtoDeck(tc,nil,SEQ_DECKTOP,REASON_EFFECT)
end end
......
...@@ -40,7 +40,7 @@ function c23153227.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c23153227.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
else else
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -39,7 +39,7 @@ function c23384666.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c23384666.tdop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -74,7 +74,7 @@ function c23672629.tpop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +74,7 @@ function c23672629.tpop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -17,7 +17,7 @@ function c23927567.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c23927567.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
else else
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -17,7 +17,7 @@ function c24140059.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c24140059.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
else else
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -36,7 +36,7 @@ function c26534688.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c26534688.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(26534688,3)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(26534688,3))
local tc=g:Select(tp,1,1,nil):GetFirst() local tc=g:Select(tp,1,1,nil):GetFirst()
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -95,12 +95,12 @@ function c26964762.deckop(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,12 +95,12 @@ function c26964762.deckop(e,tp,eg,ep,ev,re,r,rp)
local tc2=g2:GetFirst() local tc2=g2:GetFirst()
if tc1 then if tc1 then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc1,0) Duel.MoveSequence(tc1,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
if tc2 then if tc2 then
Duel.ShuffleDeck(1-tp) Duel.ShuffleDeck(1-tp)
Duel.MoveSequence(tc2,0) Duel.MoveSequence(tc2,SEQ_DECKTOP)
Duel.ConfirmDecktop(1-tp,1) Duel.ConfirmDecktop(1-tp,1)
end end
end end
...@@ -70,7 +70,7 @@ function c27753563.cmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function c27753563.cmop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0) local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local tc=g:GetMinGroup(Card.GetSequence):GetFirst() local tc=g:GetMinGroup(Card.GetSequence):GetFirst()
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
local opt=Duel.SelectOption(tp,aux.Stringid(27753563,1),aux.Stringid(27753563,2)) local opt=Duel.SelectOption(tp,aux.Stringid(27753563,1),aux.Stringid(27753563,2))
Duel.MoveSequence(tc,opt) Duel.MoveSequence(tc,opt)
......
...@@ -53,7 +53,7 @@ function c29107423.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c29107423.thop(e,tp,eg,ep,ev,re,r,rp)
local dc=dg:GetFirst() local dc=dg:GetFirst()
if dc then if dc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(dc,0) Duel.MoveSequence(dc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
if Duel.IsExistingMatchingCard(c29107423.sumfilter,tp,LOCATION_HAND,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(29107423,3)) then if Duel.IsExistingMatchingCard(c29107423.sumfilter,tp,LOCATION_HAND,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(29107423,3)) then
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -40,7 +40,7 @@ function c30786387.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c30786387.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
local tg=rg:GetFirst() local tg=rg:GetFirst()
while tg do while tg do
Duel.MoveSequence(tg,0) Duel.MoveSequence(tg,SEQ_DECKTOP)
tg=rg:GetNext() tg=rg:GetNext()
end end
Duel.SortDecktop(tp,tp,3) Duel.SortDecktop(tp,tp,3)
......
...@@ -67,7 +67,7 @@ function c31712840.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,7 +67,7 @@ function c31712840.spop(e,tp,eg,ep,ev,re,r,rp)
local tc2=g2:GetFirst() local tc2=g2:GetFirst()
if tc2 then if tc2 then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc2,0) Duel.MoveSequence(tc2,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -127,7 +127,7 @@ function c32354768.stop(e,tp,eg,ep,ev,re,r,rp) ...@@ -127,7 +127,7 @@ function c32354768.stop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -51,7 +51,7 @@ function c34086406.operation2(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c34086406.operation2(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -66,7 +66,7 @@ function c36224040.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function c36224040.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -45,7 +45,7 @@ function c365213.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c365213.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:Select(tp,1,1,nil):GetFirst() local tc=g:Select(tp,1,1,nil):GetFirst()
if tc:IsLocation(LOCATION_DECK) then if tc:IsLocation(LOCATION_DECK) then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
else else
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
......
...@@ -61,7 +61,7 @@ function c45593826.dtop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +61,7 @@ function c45593826.dtop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -38,7 +38,7 @@ function c46552140.sortop(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c46552140.sortop(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
tc=g:GetNext() tc=g:GetNext()
end end
Duel.SortDecktop(tp,tp,g:GetCount()) Duel.SortDecktop(tp,tp,g:GetCount())
......
...@@ -35,7 +35,7 @@ function c49776811.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c49776811.ctop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -64,7 +64,7 @@ function c59479050.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c59479050.tdop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -50,7 +50,7 @@ function c62200831.dtop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c62200831.dtop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -72,7 +72,7 @@ function c62312469.stop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,7 @@ function c62312469.stop(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
local tc=g1:GetFirst() local tc=g1:GetFirst()
while tc do while tc do
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
tc=g1:GetNext() tc=g1:GetNext()
end end
Duel.SortDecktop(tp,tp,4) Duel.SortDecktop(tp,tp,4)
......
...@@ -49,7 +49,7 @@ function c62434031.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c62434031.tdop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -85,9 +85,9 @@ function c69327790.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,9 +85,9 @@ function c69327790.tdop(e,tp,eg,ep,ev,re,r,rp)
if fc:GetControler()==gc:GetControler() and fc:IsLocation(LOCATION_DECK) and gc:IsLocation(LOCATION_DECK) then if fc:GetControler()==gc:GetControler() and fc:IsLocation(LOCATION_DECK) and gc:IsLocation(LOCATION_DECK) then
local op=Duel.SelectOption(tp,aux.Stringid(69327790,3),aux.Stringid(69327790,4)) local op=Duel.SelectOption(tp,aux.Stringid(69327790,3),aux.Stringid(69327790,4))
if op==0 then if op==0 then
Duel.MoveSequence(fc,0) Duel.MoveSequence(fc,SEQ_DECKTOP)
else else
Duel.MoveSequence(gc,0) Duel.MoveSequence(gc,SEQ_DECKTOP)
end end
end end
end end
......
...@@ -45,7 +45,7 @@ function c70222318.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c70222318.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
......
...@@ -30,7 +30,7 @@ function c72957245.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,7 +30,7 @@ function c72957245.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
local dc=Duel.SelectMatchingCard(tp,c72957245.cfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst() local dc=Duel.SelectMatchingCard(tp,c72957245.cfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(dc,0) Duel.MoveSequence(dc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -67,7 +67,7 @@ function c78362751.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,7 +67,7 @@ function c78362751.spop2(e,tp,eg,ep,ev,re,r,rp)
if tc:IsLocation(LOCATION_GRAVE) then if tc:IsLocation(LOCATION_GRAVE) then
Duel.SendtoDeck(tc,nil,SEQ_DECKTOP,REASON_EFFECT) Duel.SendtoDeck(tc,nil,SEQ_DECKTOP,REASON_EFFECT)
end end
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
tc=dg:GetNext() tc=dg:GetNext()
end end
Duel.SortDecktop(tp,tp,#dg) Duel.SortDecktop(tp,tp,#dg)
......
...@@ -24,7 +24,7 @@ function c81020140.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,7 +24,7 @@ function c81020140.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c81020140.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c81020140.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(g:GetFirst(),0) Duel.MoveSequence(g:GetFirst(),SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -66,7 +66,7 @@ function c82434071.opop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function c82434071.opop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
else else
......
...@@ -40,7 +40,7 @@ function c856784.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c856784.activate(e,tp,eg,ep,ev,re,r,rp)
else else
tc=sg:GetFirst() tc=sg:GetFirst()
end end
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
sg:RemoveCard(tc) sg:RemoveCard(tc)
end end
end end
......
...@@ -23,7 +23,7 @@ function c88733579.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -23,7 +23,7 @@ function c88733579.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -20,7 +20,7 @@ function c89529919.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c89529919.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
end end
...@@ -18,13 +18,13 @@ function c90359458.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,13 +18,13 @@ function c90359458.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(90359458,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(90359458,0))
local tc=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_DECK,0,1,1,nil):GetFirst() local tc=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
if Duel.GetFieldGroupCount(1-tp,LOCATION_DECK,0)<2 then return end if Duel.GetFieldGroupCount(1-tp,LOCATION_DECK,0)<2 then return end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(90359458,0)) Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(90359458,0))
local tc2=Duel.SelectMatchingCard(1-tp,nil,1-tp,LOCATION_DECK,0,1,1,nil):GetFirst() local tc2=Duel.SelectMatchingCard(1-tp,nil,1-tp,LOCATION_DECK,0,1,1,nil):GetFirst()
Duel.ShuffleDeck(1-tp) Duel.ShuffleDeck(1-tp)
Duel.MoveSequence(tc2,0) Duel.MoveSequence(tc2,SEQ_DECKTOP)
Duel.ConfirmDecktop(1-tp,1) Duel.ConfirmDecktop(1-tp,1)
end end
...@@ -79,6 +79,6 @@ function c92362073.tpop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,6 +79,6 @@ function c92362073.tpop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
end end
end end
...@@ -17,7 +17,7 @@ function c95214051.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c95214051.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.ShuffleDeck(1-tp) Duel.ShuffleDeck(1-tp)
Duel.MoveSequence(tc,0) Duel.MoveSequence(tc,SEQ_DECKTOP)
Duel.ConfirmDecktop(1-tp,1) Duel.ConfirmDecktop(1-tp,1)
end end
end end
...@@ -92,7 +92,7 @@ function c95856586.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,7 +92,7 @@ function c95856586.tdop(e,tp,eg,ep,ev,re,r,rp)
local dc=Duel.SelectMatchingCard(tp,c95856586.tdfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst() local dc=Duel.SelectMatchingCard(tp,c95856586.tdfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
if dc then if dc then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.MoveSequence(dc,0) Duel.MoveSequence(dc,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1) Duel.ConfirmDecktop(tp,1)
end end
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