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
2f555005
Commit
2f555005
authored
Jun 21, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refine
parent
acd3b719
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
utility.lua
utility.lua
+6
-11
No files found.
utility.lua
View file @
2f555005
...
@@ -1842,27 +1842,22 @@ function Auxiliary.GetLinkMaterials(tp,f,lc)
...
@@ -1842,27 +1842,22 @@ function Auxiliary.GetLinkMaterials(tp,f,lc)
if
mg2
:
GetCount
()
>
0
then
mg
:
Merge
(
mg2
)
end
if
mg2
:
GetCount
()
>
0
then
mg
:
Merge
(
mg2
)
end
return
mg
return
mg
end
end
function
Auxiliary
.
LCheckOtherMaterial
(
c
,
s
g
,
lc
)
function
Auxiliary
.
LCheckOtherMaterial
(
c
,
m
g
,
lc
)
local
le
=
{
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
)}
local
le
=
{
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
)}
for
_
,
te
in
pairs
(
le
)
do
for
_
,
te
in
pairs
(
le
)
do
local
f
=
te
:
GetValue
()
local
f
=
te
:
GetValue
()
if
f
and
not
f
(
te
,
lc
,
s
g
)
then
return
false
end
if
f
and
not
f
(
te
,
lc
,
m
g
)
then
return
false
end
end
end
return
true
return
true
end
end
function
Auxiliary
.
LCheckMaterialCompatibility
(
sg
,
lc
)
function
Auxiliary
.
LUncompatibilityFilter
(
c
,
sg
,
lc
)
for
tc
in
Auxiliary
.
Next
(
sg
)
do
local
mg
=
sg
:
Filter
(
aux
.
TRUE
,
c
)
local
mg
=
sg
:
Filter
(
aux
.
TRUE
,
tc
)
return
not
Auxiliary
.
LCheckOtherMaterial
(
c
,
mg
,
lc
)
local
res
=
Auxiliary
.
LCheckOtherMaterial
(
tc
,
mg
,
lc
)
mg
:
DeleteGroup
()
if
not
res
then
return
false
end
end
return
true
end
end
function
Auxiliary
.
LCheckRecursive
(
c
,
tp
,
sg
,
mg
,
lc
,
ct
,
minc
,
maxc
,
gf
)
function
Auxiliary
.
LCheckRecursive
(
c
,
tp
,
sg
,
mg
,
lc
,
ct
,
minc
,
maxc
,
gf
)
sg
:
AddCard
(
c
)
sg
:
AddCard
(
c
)
ct
=
ct
+
1
ct
=
ct
+
1
local
res
=
Auxiliary
.
LCheckMaterialCompatibility
(
sg
,
lc
)
local
res
=
not
sg
:
IsExists
(
Auxiliary
.
LUncompatibilityFilter
,
1
,
nil
,
sg
,
lc
)
and
(
Auxiliary
.
LCheckGoal
(
tp
,
sg
,
lc
,
minc
,
ct
,
gf
)
and
(
Auxiliary
.
LCheckGoal
(
tp
,
sg
,
lc
,
minc
,
ct
,
gf
)
or
ct
<
maxc
and
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
sg
,
tp
,
sg
,
mg
,
lc
,
ct
,
minc
,
maxc
,
gf
))
or
ct
<
maxc
and
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
sg
,
tp
,
sg
,
mg
,
lc
,
ct
,
minc
,
maxc
,
gf
))
sg
:
RemoveCard
(
c
)
sg
:
RemoveCard
(
c
)
...
...
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