Commit e9f37a42 authored by wind2009's avatar wind2009

update SinglePick

parent 5751227a
...@@ -100,7 +100,7 @@ function Auxiliary.SaveDeck() ...@@ -100,7 +100,7 @@ function Auxiliary.SaveDeck()
Duel.SavePickDeck(p,g) Duel.SavePickDeck(p,g)
end end
end end
function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed,packed) function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed,packed,optional)
if not Duel.IsPlayerNeedToPickDeck(p) then return end if not Duel.IsPlayerNeedToPickDeck(p) then return end
local g1=Group.CreateGroup() local g1=Group.CreateGroup()
local g2=Group.CreateGroup() local g2=Group.CreateGroup()
...@@ -166,6 +166,14 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed,p ...@@ -166,6 +166,14 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed,p
end end
Duel.ResetTimeLimit(p,90) Duel.ResetTimeLimit(p,90)
if optional and ag:GetFirst():IsLocation(LOCATION_DECK) then
Duel.ConfirmCards(p,ag)
if Duel.SelectOption(tp,1190,1192)==1 then
Duel.Exile(ag,REASON_RULE)
return false
end
end
local tg=Group.CreateGroup() local tg=Group.CreateGroup()
local rg=ag local rg=ag
while true do while true do
...@@ -189,6 +197,7 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed,p ...@@ -189,6 +197,7 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed,p
end end
Duel.SendtoDeck(g3,nil,0,REASON_RULE) Duel.SendtoDeck(g3,nil,0,REASON_RULE)
end end
return true
end end
function Auxiliary.ArbitraryPick(p,count,pick_lists,lists_count,copy,lv_diff,fixed) function Auxiliary.ArbitraryPick(p,count,pick_lists,lists_count,copy,lv_diff,fixed)
if not Duel.IsPlayerNeedToPickDeck(p) then return end if not Duel.IsPlayerNeedToPickDeck(p) then return 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