Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
53e0b325
Commit
53e0b325
authored
Dec 16, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto Push by Nanahira
parent
6f4d270b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
expansions/script/c37564765.lua
expansions/script/c37564765.lua
+4
-4
No files found.
expansions/script/c37564765.lua
View file @
53e0b325
...
@@ -270,11 +270,11 @@ end
...
@@ -270,11 +270,11 @@ end
function
cm
.
MustMaterialCheck
(
v
,
tp
,
code
)
function
cm
.
MustMaterialCheck
(
v
,
tp
,
code
)
if
not
v
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
code
)
end
if
not
v
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
code
)
end
local
t
=
cm
.
GetValueType
(
v
)
local
t
=
cm
.
GetValueType
(
v
)
if
v
~=
"Card"
and
v
~=
"Group"
then
error
(
"Parameter 1 must be \"
Card
\
" or \"
Group
\
"."
,
2
)
end
if
t
~=
"Card"
and
t
~=
"Group"
then
error
(
"Parameter 1 must be \"
Card
\
" or \"
Group
\
"."
,
2
)
end
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
code
)}
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
code
)}
for
_
,
te
in
ipairs
(
t
e
)
do
for
_
,
te
in
ipairs
(
c
e
)
do
if
(
cm
.
GetValueType
(
v
)
==
"Card"
and
v
~=
te
:
GetHandler
())
if
(
t
==
"Card"
and
v
~=
te
:
GetHandler
())
or
(
cm
.
GetValueType
(
v
)
==
"Group"
and
not
v
:
IsExists
(
te
:
GetHandler
()))
then
return
false
end
or
(
t
==
"Group"
and
not
v
:
IsExists
(
te
:
GetHandler
()))
then
return
false
end
end
end
return
true
return
true
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