Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-2pick
Commits
f1e81a50
Commit
f1e81a50
authored
Jan 02, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8ce4c840
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
2pick/pick.lua
2pick/pick.lua
+4
-2
No files found.
2pick/pick.lua
View file @
f1e81a50
...
@@ -79,14 +79,16 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count)
...
@@ -79,14 +79,16 @@ function Auxiliary.SinglePick(p,list,count,ex_list,ex_count)
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
()
local
plist
=
list
[
p
]
for
_
,
g
in
ipairs
({
g1
,
g2
})
do
for
_
,
g
in
ipairs
({
g1
,
g2
})
do
for
i
=
1
,
count
do
for
i
=
1
,
count
do
local
code
=
list
[
math.random
(
#
list
)]
local
code
=
plist
[
math.random
(
#
p
list
)]
g
:
AddCard
(
Duel
.
CreateToken
(
p
,
code
))
g
:
AddCard
(
Duel
.
CreateToken
(
p
,
code
))
end
end
if
ex_list
and
ex_count
then
if
ex_list
and
ex_count
then
local
ex_plist
=
ex_list
[
p
]
for
i
=
1
,
ex_count
do
for
i
=
1
,
ex_count
do
local
code
=
ex_
list
[
math.random
(
#
ex_
list
)]
local
code
=
ex_
plist
[
math.random
(
#
ex_p
list
)]
g
:
AddCard
(
Duel
.
CreateToken
(
p
,
code
))
g
:
AddCard
(
Duel
.
CreateToken
(
p
,
code
))
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment