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

Use SelectUnselect

parent bc641325
...@@ -154,11 +154,9 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed) ...@@ -154,11 +154,9 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count,copy,lv_diff,fixed)
end end
Duel.SendtoDeck(g,nil,0,REASON_RULE) Duel.SendtoDeck(g,nil,0,REASON_RULE)
end end
local sg=g1:Clone()
sg:Merge(g2)
Duel.ResetTimeLimit(p,70) Duel.ResetTimeLimit(p,70)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK)
local sc=sg:Select(p,1,1,nil):GetFirst() local sc=g1:SelectUnselect(g2,p,false,false,#g1,#g2)
local tg=g1:IsContains(sc) and g1 or g2 local tg=g1:IsContains(sc) and g1 or g2
local rg=g1:IsContains(sc) and g2 or g1 local rg=g1:IsContains(sc) and g2 or g1
if sc:IsLocation(LOCATION_DECK) then if sc:IsLocation(LOCATION_DECK) then
......
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