Commit 86855072 authored by nanahira's avatar nanahira Committed by GitHub

updates for Duel.PreserveSelectDeckSequence (#2432)

* updates for Duel.PreserveSelectDeckSequence

* fix missing ShufleHand
parent 2cd179f5
...@@ -20,7 +20,9 @@ function c43618262.cfop(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,9 @@ function c43618262.cfop(e,tp,eg,ep,ev,re,r,rp)
if g:FilterCount(Card.IsAbleToHand,nil,tp)==0 then return end if g:FilterCount(Card.IsAbleToHand,nil,tp)==0 then return end
Duel.ConfirmDecktop(1-p,5) Duel.ConfirmDecktop(1-p,5)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.PreserveSelectDeckSequence(true)
local tc=g:FilterSelect(tp,Card.IsAbleToHand,1,1,nil,tp):GetFirst() local tc=g:FilterSelect(tp,Card.IsAbleToHand,1,1,nil,tp):GetFirst()
Duel.PreserveSelectDeckSequence(false)
local num=math.floor(3000/100) local num=math.floor(3000/100)
local t={} local t={}
for i=1,num do for i=1,num do
......
...@@ -85,7 +85,9 @@ function c94392192.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +85,9 @@ function c94392192.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmDecktop(1-tp,ct) Duel.ConfirmDecktop(1-tp,ct)
local g=Duel.GetDecktopGroup(1-tp,ct) local g=Duel.GetDecktopGroup(1-tp,ct)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
Duel.PreserveSelectDeckSequence(true)
local sg=g:FilterSelect(tp,c94392192.rmfilter,1,1,nil,tp) local sg=g:FilterSelect(tp,c94392192.rmfilter,1,1,nil,tp)
Duel.PreserveSelectDeckSequence(false)
if #sg>0 then if #sg>0 then
Duel.DisableShuffleCheck(true) Duel.DisableShuffleCheck(true)
Duel.Remove(sg,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(sg,POS_FACEDOWN,REASON_EFFECT)
......
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