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
bfb1c8bd
Commit
bfb1c8bd
authored
Jun 15, 2018
by
nekrozar
Committed by
mercury233
Jun 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update LCheckOtherMaterial (#1065)
parent
c22519ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
utility.lua
utility.lua
+6
-3
No files found.
utility.lua
View file @
bfb1c8bd
...
@@ -1835,10 +1835,13 @@ function Auxiliary.GetLinkCount(c)
...
@@ -1835,10 +1835,13 @@ function Auxiliary.GetLinkCount(c)
else
return
1
end
else
return
1
end
end
end
function
Auxiliary
.
LCheckOtherMaterial
(
c
,
mg
,
lc
)
function
Auxiliary
.
LCheckOtherMaterial
(
c
,
mg
,
lc
)
local
le
=
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
)
local
le
=
{
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
)}
if
not
le
then
return
true
end
if
not
le
then
return
true
end
local
f
=
le
:
GetValue
()
for
_
,
te
in
pairs
(
le
)
do
return
f
(
nil
,
lc
,
mg
)
local
f
=
te
:
GetValue
()
if
f
(
nil
,
lc
,
mg
)
then
return
true
end
end
return
false
end
end
function
Auxiliary
.
LCheckMaterialCompatibility
(
sg
,
lc
)
function
Auxiliary
.
LCheckMaterialCompatibility
(
sg
,
lc
)
for
tc
in
Auxiliary
.
Next
(
sg
)
do
for
tc
in
Auxiliary
.
Next
(
sg
)
do
...
...
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