Commit e810500d authored by mercury233's avatar mercury233

use constant in deck MoveSequence

parent 812b46a4
...@@ -24,6 +24,6 @@ function c10321588.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,6 +24,6 @@ function c10321588.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
...@@ -61,7 +61,7 @@ function c10530913.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +61,7 @@ function c10530913.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL) Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
function c10530913.thcon(e,tp,eg,ep,ev,re,r,rp) function c10530913.thcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -47,7 +47,7 @@ function c10753491.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c10753491.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ac) Duel.SortDecktop(tp,tp,ac)
for i=1,ac do for i=1,ac do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
......
...@@ -75,7 +75,7 @@ function s.activate2(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,7 +75,7 @@ function s.activate2(e,tp,eg,ep,ev,re,r,rp)
end end
for i=1,#dg do for i=1,#dg do
local mg=Duel.GetDecktopGroup(p,1) local mg=Duel.GetDecktopGroup(p,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
p=1-tp p=1-tp
end end
......
...@@ -58,7 +58,7 @@ function c11302671.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c11302671.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ct) Duel.SortDecktop(tp,tp,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
...@@ -37,7 +37,7 @@ function c11434258.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c11434258.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(p,p,2) Duel.SortDecktop(p,p,2)
for i=1,2 do for i=1,2 do
local mg=Duel.GetDecktopGroup(p,1) local mg=Duel.GetDecktopGroup(p,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
...@@ -33,7 +33,7 @@ function c11682713.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c11682713.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL) Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
function c11682713.tdcon(e,tp,eg,ep,ev,re,r,rp) function c11682713.tdcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -37,7 +37,7 @@ function c13093792.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c13093792.operation(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
function c13093792.spellcon(e,tp,eg,ep,ev,re,r,rp,chk) function c13093792.spellcon(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -34,7 +34,7 @@ function c14057297.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,7 +34,7 @@ function c14057297.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(p,p,ct) Duel.SortDecktop(p,p,ct)
for j=1,ct do for j=1,ct do
local mg=Duel.GetDecktopGroup(p,1) local mg=Duel.GetDecktopGroup(p,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
p=1-p p=1-p
......
...@@ -69,7 +69,7 @@ function c14386013.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +69,7 @@ function c14386013.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(p,p,ct) Duel.SortDecktop(p,p,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(p,1) local mg=Duel.GetDecktopGroup(p,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(p,ct,REASON_EFFECT) Duel.Draw(p,ct,REASON_EFFECT)
......
...@@ -90,6 +90,6 @@ function c15521027.opd(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,6 +90,6 @@ function c15521027.opd(e,tp,eg,ep,ev,re,r,rp)
if op==0 then return end if op==0 then return end
for i=1,ct do for i=1,ct do
local tg=Duel.GetDecktopGroup(tp,1) local tg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(tg:GetFirst(),1) Duel.MoveSequence(tg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
...@@ -34,7 +34,7 @@ function c16598965.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,7 +34,7 @@ function c16598965.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,2) Duel.SortDecktop(tp,tp,2)
for i=1,2 do for i=1,2 do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
if f2 and (not res or Duel.SelectYesNo(tp,aux.Stringid(16598965,2))) and Duel.Draw(1-tp,1,REASON_EFFECT)==1 then if f2 and (not res or Duel.SelectYesNo(tp,aux.Stringid(16598965,2))) and Duel.Draw(1-tp,1,REASON_EFFECT)==1 then
......
...@@ -18,7 +18,7 @@ function c19959742.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c19959742.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectOption(tp,aux.Stringid(19959742,1),aux.Stringid(19959742,2))==1 then if Duel.SelectOption(tp,aux.Stringid(19959742,1),aux.Stringid(19959742,2))==1 then
for i=1,3 do for i=1,3 do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
...@@ -32,7 +32,7 @@ function c25824484.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c25824484.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_REVEAL) Duel.SendtoGrave(tc,REASON_EFFECT+REASON_REVEAL)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
function c25824484.sdcon(e,tp,eg,ep,ev,re,r,rp) function c25824484.sdcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -26,7 +26,7 @@ function c27995943.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,7 +26,7 @@ function c27995943.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetDecktopGroup(tp,1) local g=Duel.GetDecktopGroup(tp,1)
Duel.ConfirmCards(tp,g) Duel.ConfirmCards(tp,g)
if not g:GetFirst():IsAbleToHand() or Duel.SelectYesNo(tp,aux.Stringid(27995943,0)) then if not g:GetFirst():IsAbleToHand() or Duel.SelectYesNo(tp,aux.Stringid(27995943,0)) then
Duel.MoveSequence(g:GetFirst(),1) Duel.MoveSequence(g:GetFirst(),SEQ_DECKBOTTOM)
else else
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
......
...@@ -46,7 +46,7 @@ function c36046926.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c36046926.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ac) Duel.SortDecktop(tp,tp,ac)
for i=1,ac do for i=1,ac do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
......
...@@ -39,7 +39,7 @@ function c47077318.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c47077318.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL) Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
function c47077318.tdcon(e,tp,eg,ep,ev,re,r,rp) function c47077318.tdcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -52,7 +52,7 @@ function c47674738.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c47674738.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ct) Duel.SortDecktop(tp,tp,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
......
...@@ -28,6 +28,6 @@ function c47741109.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,6 +28,6 @@ function c47741109.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL) Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
...@@ -61,7 +61,7 @@ function c48519867.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +61,7 @@ function c48519867.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ct) Duel.SortDecktop(tp,tp,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
...@@ -43,7 +43,7 @@ function c49838105.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c49838105.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_REVEAL) Duel.SendtoGrave(tc,REASON_EFFECT+REASON_REVEAL)
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
function c49838105.cfcon(e,tp,eg,ep,ev,re,r,rp) function c49838105.cfcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -55,7 +55,7 @@ function c50482813.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c50482813.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,#g-1) Duel.SortDecktop(tp,tp,#g-1)
for i=1,#g-1 do for i=1,#g-1 do
local dg=Duel.GetDecktopGroup(tp,1) local dg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(dg:GetFirst(),1) Duel.MoveSequence(dg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
......
...@@ -39,7 +39,7 @@ function c51335426.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c51335426.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(p,p,ct) Duel.SortDecktop(p,p,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(p,1) local mg=Duel.GetDecktopGroup(p,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
......
...@@ -22,7 +22,7 @@ function c52263685.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -22,7 +22,7 @@ function c52263685.activate(e,tp,eg,ep,ev,re,r,rp)
if ct>0 then if ct>0 then
Duel.Hint(HINT_SELECTMSG,p,aux.Stringid(52263685,0)) Duel.Hint(HINT_SELECTMSG,p,aux.Stringid(52263685,0))
local sg=g:Select(p,1,1,nil) local sg=g:Select(p,1,1,nil)
Duel.MoveSequence(sg:GetFirst(),1) Duel.MoveSequence(sg:GetFirst(),SEQ_DECKBOTTOM)
Duel.ConfirmCards(1-p,sg) Duel.ConfirmCards(1-p,sg)
Duel.SortDecktop(p,1-p,ct-1) Duel.SortDecktop(p,1-p,ct-1)
Duel.ConfirmDecktop(1-p,ct-1) Duel.ConfirmDecktop(1-p,ct-1)
......
...@@ -47,7 +47,7 @@ function c54927180.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c54927180.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(tc1,REASON_EFFECT) Duel.SendtoGrave(tc1,REASON_EFFECT)
end end
else else
Duel.MoveSequence(tc1,1) Duel.MoveSequence(tc1,SEQ_DECKBOTTOM)
Duel.MoveSequence(tc2,1) Duel.MoveSequence(tc2,SEQ_DECKBOTTOM)
end end
end end
...@@ -79,7 +79,7 @@ function c55521751.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,7 @@ function c55521751.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(p,p,ct) Duel.SortDecktop(p,p,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(p,1) local mg=Duel.GetDecktopGroup(p,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(p,ct,REASON_EFFECT) Duel.Draw(p,ct,REASON_EFFECT)
......
...@@ -71,7 +71,7 @@ function c57261568.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function c57261568.operation(e,tp,eg,ep,ev,re,r,rp)
if opt==1 then if opt==1 then
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(1-tp,1) local mg=Duel.GetDecktopGroup(1-tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
else else
......
...@@ -49,7 +49,7 @@ function c61587183.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c61587183.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(tp,g) Duel.ConfirmCards(tp,g)
Duel.Hint(HINT_SELECTMSG,tp,0) Duel.Hint(HINT_SELECTMSG,tp,0)
local ac=Duel.SelectOption(tp,aux.Stringid(61587183,3),aux.Stringid(61587183,4)) local ac=Duel.SelectOption(tp,aux.Stringid(61587183,3),aux.Stringid(61587183,4))
if ac==1 then Duel.MoveSequence(g:GetFirst(),1) end if ac==1 then Duel.MoveSequence(g:GetFirst(),SEQ_DECKBOTTOM) end
end end
end end
end end
...@@ -33,7 +33,7 @@ function c62434031.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c62434031.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL) Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
function c62434031.tdcon(e,tp,eg,ep,ev,re,r,rp) function c62434031.tdcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,7 +38,7 @@ function c63257623.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c63257623.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL) Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
function c63257623.spcon(e,tp,eg,ep,ev,re,r,rp) function c63257623.spcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -28,6 +28,6 @@ function c63942761.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,6 +28,6 @@ function c63942761.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,5-sg:GetCount()) Duel.SortDecktop(tp,tp,5-sg:GetCount())
for i=1,5-sg:GetCount() do for i=1,5-sg:GetCount() do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
...@@ -51,7 +51,7 @@ function c73079836.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c73079836.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ct) Duel.SortDecktop(tp,tp,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
......
...@@ -43,7 +43,7 @@ function c73136204.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c73136204.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ac) Duel.SortDecktop(tp,tp,ac)
for i=1,ac do for i=1,ac do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
...@@ -72,7 +72,7 @@ function c73136204.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,7 @@ function c73136204.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ct) Duel.SortDecktop(tp,tp,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
...@@ -37,5 +37,5 @@ function c73820802.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,5 +37,5 @@ function c73820802.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT) Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT)
end end
end end
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
...@@ -42,7 +42,7 @@ function c74879881.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c74879881.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
else else
Duel.MoveSequence(tc,1) Duel.MoveSequence(tc,SEQ_DECKBOTTOM)
end end
end end
function c74879881.retcon(e,tp,eg,ep,ev,re,r,rp) function c74879881.retcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -125,7 +125,7 @@ function c74997493.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -125,7 +125,7 @@ function c74997493.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(p,p,3) Duel.SortDecktop(p,p,3)
for i=1,3 do for i=1,3 do
local mg=Duel.GetDecktopGroup(p,1) local mg=Duel.GetDecktopGroup(p,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
...@@ -25,6 +25,6 @@ function c82099401.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,6 +25,6 @@ function c82099401.operation(e,tp,eg,ep,ev,re,r,rp)
end end
Duel.BreakEffect() Duel.BreakEffect()
local back=Duel.GetDecktopGroup(tp,1) local back=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(back:GetFirst(),1) Duel.MoveSequence(back:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
...@@ -80,7 +80,7 @@ function c84211599.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,7 +80,7 @@ function c84211599.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,#g-1) Duel.SortDecktop(tp,tp,#g-1)
for i=1,#g-1 do for i=1,#g-1 do
local dg=Duel.GetDecktopGroup(tp,1) local dg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(dg:GetFirst(),1) Duel.MoveSequence(dg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
if not e:IsHasType(EFFECT_TYPE_ACTIVATE) then return end if not e:IsHasType(EFFECT_TYPE_ACTIVATE) then return end
......
...@@ -61,7 +61,7 @@ function c85914562.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +61,7 @@ function c85914562.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ct) Duel.SortDecktop(tp,tp,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
...@@ -83,7 +83,7 @@ function c90488465.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,7 +83,7 @@ function c90488465.tdop(e,tp,eg,ep,ev,re,r,rp)
end end
for i=1,#dg do for i=1,#dg do
local mg=Duel.GetDecktopGroup(p,1) local mg=Duel.GetDecktopGroup(p,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
p=1-tp p=1-tp
end end
......
...@@ -45,7 +45,7 @@ function c9464441.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c9464441.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,g:GetCount()) Duel.SortDecktop(tp,tp,g:GetCount())
for i=1,g:GetCount() do for i=1,g:GetCount() do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
......
...@@ -72,7 +72,7 @@ function c95239444.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,7 @@ function c95239444.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ac) Duel.SortDecktop(tp,tp,ac)
for i=1,ac do for i=1,ac do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
...@@ -46,7 +46,7 @@ function c99429730.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c99429730.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ac) Duel.SortDecktop(tp,tp,ac)
for i=1,ac do for i=1,ac do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
......
...@@ -45,7 +45,7 @@ function c99641328.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c99641328.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ac) Duel.SortDecktop(tp,tp,ac)
for i=1,ac do for i=1,ac do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
end end
......
...@@ -39,7 +39,7 @@ function c99927991.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c99927991.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SortDecktop(tp,tp,ct) Duel.SortDecktop(tp,tp,ct)
for i=1,ct do for i=1,ct do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(tp,1)
Duel.MoveSequence(mg:GetFirst(),1) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
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