Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
e6a3e6e1
Commit
e6a3e6e1
authored
May 04, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
68ea66e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
utility.lua
utility.lua
+11
-11
No files found.
utility.lua
View file @
e6a3e6e1
...
...
@@ -641,13 +641,10 @@ function Auxiliary.FCheckMixRep(c,sg,g,fc,sub,cc,fun1,fun2,...)
elseif
sub
and
fun2
(
c
,
fc
,
true
)
then
res
=
sg
:
IsExists
(
Auxiliary
.
FCheckMixRep
,
1
,
g
,
sg
,
g
,
fc
,
false
,
cc
,
fun1
,
...
)
end
elseif
sub
then
local
ct1
=
sg
:
FilterCount
(
fun1
,
g
,
fc
,
false
)
local
ct2
=
sg
:
FilterCount
(
fun1
,
g
,
fc
,
true
)
res
=
ct2
<=
cc
and
ct2
==
sg
:
GetCount
()
-
g
:
GetCount
()
and
ct2
-
ct1
<=
1
else
local
ct
=
sg
:
FilterCount
(
fun1
,
g
,
fc
,
false
)
res
=
ct
<=
cc
and
ct
==
sg
:
GetCount
()
-
g
:
GetCount
()
elseif
fun1
(
c
,
fc
,
sub
)
then
local
ct1
=
sg
:
FilterCount
(
fun1
,
g
,
fc
,
sub
)
local
ct2
=
sg
:
FilterCount
(
fun1
,
g
,
fc
,
false
)
res
=
ct1
<=
cc
and
ct1
==
sg
:
GetCount
()
-
g
:
GetCount
()
and
(
not
sub
or
ct1
-
ct2
<=
1
)
end
g
:
RemoveCard
(
c
)
return
res
...
...
@@ -667,7 +664,7 @@ function Auxiliary.FCheckSelectMixRep(c,tp,mg,sg,g,fc,sub,cc,fun1,fun2,...)
elseif
sub
and
fun2
(
c
,
fc
,
true
)
then
res
=
mg
:
IsExists
(
Auxiliary
.
FCheckSelectMixRep
,
1
,
g
,
tp
,
mg
,
sg
,
g
,
fc
,
false
,
cc
,
fun1
,
...
)
end
else
else
if
fun1
(
c
,
fc
,
sub
)
then
local
ct1
=
sg
:
FilterCount
(
fun1
,
g
,
fc
,
sub
)
local
ct2
=
sg
:
FilterCount
(
fun1
,
g
,
fc
,
false
)
if
ct1
<=
cc
and
ct1
==
sg
:
FilterCount
(
aux
.
TRUE
,
g
)
and
(
not
sub
or
ct1
-
ct2
<=
1
)
then
...
...
@@ -677,9 +674,9 @@ function Auxiliary.FCheckSelectMixRep(c,tp,mg,sg,g,fc,sub,cc,fun1,fun2,...)
res
=
not
Auxiliary
.
FCheckAdditional
or
Auxiliary
.
FCheckAdditional
(
tp
,
g2
,
fc
)
elseif
cc
>
0
then
if
fun1
(
c
,
fc
,
false
)
then
res
=
mg
:
IsExists
(
Auxiliary
.
FCheckSelectMixRep
,
1
,
g
,
tp
,
mg
,
sg
,
g
,
fc
,
sub
,
cc
-
1
,
fun1
)
elseif
sub
and
fun1
(
c
,
fc
,
true
)
then
res
=
mg
:
IsExists
(
Auxiliary
.
FCheckSelectMixRep
,
1
,
g
,
tp
,
mg
,
sg
,
g
,
fc
,
false
,
cc
-
1
,
fun1
)
res
=
mg
:
IsExists
(
Auxiliary
.
FCheckSelectMixRep
M
,
1
,
g
,
tp
,
mg
,
sg
,
g
,
fc
,
sub
,
cc
-
1
,
fun1
)
elseif
sub
then
res
=
mg
:
IsExists
(
Auxiliary
.
FCheckSelectMixRep
M
,
1
,
g
,
tp
,
mg
,
sg
,
g
,
fc
,
false
,
cc
-
1
,
fun1
)
end
end
end
...
...
@@ -687,6 +684,9 @@ function Auxiliary.FCheckSelectMixRep(c,tp,mg,sg,g,fc,sub,cc,fun1,fun2,...)
g
:
RemoveCard
(
c
)
return
res
end
function
Auxiliary
.
FCheckSelectMixRepM
(
c
,
tp
,
...
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
Auxiliary
.
FCheckSelectMixRep
(
c
,
tp
,
...
)
end
function
Auxiliary
.
FSelectMixRep
(
c
,
tp
,
mg
,
sg
,
fc
,
sub
,
cc
,
...
)
sg
:
AddCard
(
c
)
local
res
=
false
...
...
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