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
027c57a8
Commit
027c57a8
authored
Nov 09, 2019
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ActionDuel
parent
87fc6d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
2pick/actionduel.lua
2pick/actionduel.lua
+3
-3
No files found.
2pick/actionduel.lua
View file @
027c57a8
...
...
@@ -38,7 +38,7 @@ function ActionDuel.activate(e,tp,eg,ep,ev,re,r,rp)
local
dk1
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
local
dk2
=
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_DECK
,
0
)
if
dk1
>
0
then
for
t
=
1
,
dk1
do
for
t
=
1
,
math.min
(
dk1
,
3
)
do
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
30539496
,
3
))
then
d1
=
d1
+
1
else
...
...
@@ -47,7 +47,7 @@ function ActionDuel.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
if
dk2
>
0
then
for
t
=
1
,
dk2
do
for
t
=
1
,
math.min
(
dk2
,
3
)
do
if
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
30539496
,
3
))
then
d2
=
d2
+
1
else
...
...
@@ -56,7 +56,7 @@ function ActionDuel.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
local
rg1
=
Duel
.
GetDecktopGroup
(
tp
,
d1
)
local
rg2
=
Duel
.
GetDecktopGroup
(
tp
,
d2
)
local
rg2
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
d2
)
Duel
.
Remove
(
rg1
,
POS_FACEDOWN
,
REASON_EFFECT
)
Duel
.
Remove
(
rg2
,
POS_FACEDOWN
,
REASON_EFFECT
)
if
d1
==
d2
then
...
...
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