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
11b58fa8
Commit
11b58fa8
authored
Jan 02, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Add material card as a param for the value of EFFECT_EXTRA_LINK_MATERIAL"
This reverts commit
66220be0
.
parent
18629eab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utility.lua
utility.lua
+2
-2
No files found.
utility.lua
View file @
11b58fa8
...
@@ -1867,7 +1867,7 @@ function Auxiliary.LCheckOtherMaterial(c,mg,lc,tp)
...
@@ -1867,7 +1867,7 @@ function Auxiliary.LCheckOtherMaterial(c,mg,lc,tp)
local
le
=
{
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
,
tp
)}
local
le
=
{
c
:
IsHasEffect
(
EFFECT_EXTRA_LINK_MATERIAL
,
tp
)}
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
,
mg
,
c
)
then
return
false
end
if
f
and
not
f
(
te
,
lc
,
mg
)
then
return
false
end
end
end
return
true
return
true
end
end
...
@@ -1887,7 +1887,7 @@ function Auxiliary.LExtraMaterialCount(mg,lc,tp)
...
@@ -1887,7 +1887,7 @@ function Auxiliary.LExtraMaterialCount(mg,lc,tp)
for
_
,
te
in
pairs
(
le
)
do
for
_
,
te
in
pairs
(
le
)
do
local
sg
=
mg
:
Filter
(
aux
.
TRUE
,
tc
)
local
sg
=
mg
:
Filter
(
aux
.
TRUE
,
tc
)
local
f
=
te
:
GetValue
()
local
f
=
te
:
GetValue
()
if
not
f
or
f
(
te
,
lc
,
sg
,
tc
)
then
if
not
f
or
f
(
te
,
lc
,
sg
)
then
te
:
UseCountLimit
(
tp
)
te
:
UseCountLimit
(
tp
)
end
end
end
end
...
...
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