Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Nanahira-Cards
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
List
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
nanahira
Nanahira-Cards
Commits
f1d818e8
Commit
f1d818e8
authored
Jan 28, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e797c960
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
expansions/script/c37564765.lua
expansions/script/c37564765.lua
+4
-6
No files found.
expansions/script/c37564765.lua
View file @
f1d818e8
...
@@ -168,10 +168,9 @@ function cm.SelectGroup(tp,desc,g,f,cg,min,max,...)
...
@@ -168,10 +168,9 @@ function cm.SelectGroup(tp,desc,g,f,cg,min,max,...)
local
ag
=
g
:
Filter
(
cm
.
CheckGroupRecursive
,
sg
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
local
ag
=
g
:
Filter
(
cm
.
CheckGroupRecursive
,
sg
,
sg
,
g
,
f
,
min
,
max
,
ext_params
)
while
#
sg
<
max
and
#
ag
>
0
do
while
#
sg
<
max
and
#
ag
>
0
do
local
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
and
f
(
sg
,
...
))
local
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
and
f
(
sg
,
...
))
local
seg
=
sg
:
Clone
()
local
seg
=
sg
-
cg
local
dmin
=#
sg
local
dmin
=#
s
e
g
local
dmax
=
math.min
(
max
-#
cg
,
#
g
)
local
dmax
=
math.min
(
max
-#
cg
,
#
g
)
seg
:
Sub
(
cg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
desc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
desc
)
local
tc
=
ag
:
SelectUnselect
(
seg
,
tp
,
finish
,
finish
,
dmin
,
dmax
)
local
tc
=
ag
:
SelectUnselect
(
seg
,
tp
,
finish
,
finish
,
dmin
,
dmax
)
if
not
tc
then
break
end
if
not
tc
then
break
end
...
@@ -195,10 +194,9 @@ function cm.SelectGroupWithCancel(tp,desc,g,f,cg,min,max,...)
...
@@ -195,10 +194,9 @@ function cm.SelectGroupWithCancel(tp,desc,g,f,cg,min,max,...)
while
#
sg
<
max
and
#
ag
>
0
do
while
#
sg
<
max
and
#
ag
>
0
do
local
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
and
f
(
sg
,
...
))
local
finish
=
(
#
sg
>=
min
and
#
sg
<=
max
and
f
(
sg
,
...
))
local
cancel
=
finish
or
#
sg
==
0
local
cancel
=
finish
or
#
sg
==
0
local
seg
=
sg
:
Clone
()
local
seg
=
sg
-
cg
local
dmin
=#
sg
local
dmin
=#
s
e
g
local
dmax
=
math.min
(
max
-#
cg
,
#
g
)
local
dmax
=
math.min
(
max
-#
cg
,
#
g
)
seg
:
Sub
(
cg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
desc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
desc
)
local
tc
=
ag
:
SelectUnselect
(
seg
,
tp
,
finish
,
cancel
,
dmin
,
dmax
)
local
tc
=
ag
:
SelectUnselect
(
seg
,
tp
,
finish
,
cancel
,
dmin
,
dmax
)
if
not
tc
then
if
not
tc
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