Commit 1edb0dae authored by nanahira's avatar nanahira

change_pick_rule

parent 9b9f64ac
...@@ -58,11 +58,11 @@ function Auxiliary.LoadDB() ...@@ -58,11 +58,11 @@ function Auxiliary.LoadDB()
end end
end end
end end
function Auxiliary.SinglePick(p,list) function Auxiliary.SinglePick(p,list,count)
local g1=Group.CreateGroup() local g1=Group.CreateGroup()
local g2=Group.CreateGroup() local g2=Group.CreateGroup()
for _,g in ipairs({g1,g2}) do for _,g in ipairs({g1,g2}) do
for i=1,2 do for i=1,count do
local code=list[math.random(#list)] local code=list[math.random(#list)]
g:AddCard(Duel.CreateToken(p,code)) g:AddCard(Duel.CreateToken(p,code))
end end
...@@ -82,22 +82,29 @@ function Auxiliary.StartPick(e) ...@@ -82,22 +82,29 @@ function Auxiliary.StartPick(e)
Duel.Exile(g,REASON_RULE) Duel.Exile(g,REASON_RULE)
for i=1,5 do for i=1,5 do
for p=0,1 do for p=0,1 do
Auxiliary.SinglePick(p,extra) Auxiliary.SinglePick(p,extra,4)
end end
end end
for i=1,10 do for i=1,11 do
local list=main local list=main
if i==7 then list=semi_limited local count=4
elseif i==8 or i==9 then list=limited if i==9 then
elseif i==10 then list=forbidden end list=semi_limited
elseif i==10 then
list=limited
count=3
elseif i==11 then
list=forbidden
count=1
end
for p=0,1 do for p=0,1 do
Auxiliary.SinglePick(p,list) Auxiliary.SinglePick(p,list,count)
end end
end end
Duel.ShuffleDeck(0) Duel.ShuffleDeck(0)
Duel.ShuffleDeck(1) Duel.ShuffleDeck(1)
Duel.Draw(0,4,REASON_RULE) Duel.Draw(0,5,REASON_RULE)
Duel.Draw(1,4,REASON_RULE) Duel.Draw(1,5,REASON_RULE)
e:Reset() e:Reset()
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