Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
REIKAI
ygopro-222DIY-cards
Commits
ca8a2bdb
Commit
ca8a2bdb
authored
Feb 20, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interweb
parent
3dd7a292
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
expansions/script/c10199990.lua
expansions/script/c10199990.lua
+11
-8
No files found.
expansions/script/c10199990.lua
View file @
ca8a2bdb
...
@@ -2279,7 +2279,10 @@ end
...
@@ -2279,7 +2279,10 @@ end
function
rscon
.
sumtype
(
sumtbl
,
sumfilter
,
matchall
)
function
rscon
.
sumtype
(
sumtbl
,
sumfilter
,
matchall
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
checkg
=
e
:
IsHasType
(
EFFECT_TYPE_FIELD
)
and
rsgf
.
Mix2
(
c
)
or
eg
:
Clone
()
sumfilter
=
sumfilter
or
aux
.
TRUE
local
code
=
e
:
GetCode
()
local
fieldres
=
(
code
==
EVENT_SUMMON_SUCCESS
or
code
==
EVENT_SPSUMMON_SUCCESS
or
code
==
EVENT_FLIP_SUMMON_SUCCESS
)
and
e
:
IsHasType
(
EFFECT_TYPE_FIELD
)
local
checkg
=
not
fieldres
and
rsgf
.
Mix2
(
c
)
or
eg
:
Clone
()
sumtbl
=
sumtbl
or
"sp"
sumtbl
=
sumtbl
or
"sp"
local
tf
=
false
local
tf
=
false
local
codetbl1
=
{
"sp"
,
"adv"
,
"rit"
,
"fus"
,
"syn"
,
"xyz"
,
"link"
,
"pen"
}
local
codetbl1
=
{
"sp"
,
"adv"
,
"rit"
,
"fus"
,
"syn"
,
"xyz"
,
"link"
,
"pen"
}
...
@@ -2293,19 +2296,19 @@ function rscon.sumtype(sumtbl,sumfilter,matchall)
...
@@ -2293,19 +2296,19 @@ function rscon.sumtype(sumtbl,sumfilter,matchall)
stypeg
:
AddCard
(
tc
)
stypeg
:
AddCard
(
tc
)
end
end
end
end
if
#
stypeg
<=
0
or
(
matchall
and
not
stypeg
:
Equal
(
checkg
))
then
return
false
end
local
mat
=
tc
:
GetMaterial
()
local
mat
=
tc
:
GetMaterial
()
if
sumfilter
then
if
sumfilter
then
local
res
=
sumfilter
(
tc
,
e
,
tp
,
re
,
rp
,
mat
)
local
res
=
sumfilter
(
tc
,
e
,
tp
,
re
,
rp
,
mat
)
if
res
then
filterg
:
AddCard
(
tc
)
end
if
res
then
filterg
:
AddCard
(
tc
)
end
end
end
if
#
filterg
<=
0
or
(
matchall
and
not
filterg
:
Equal
(
checkg
))
then
return
false
end
return
true
end
end
if
#
stypeg
<=
0
or
(
matchall
and
not
stypeg
:
Equal
(
checkg
))
then
return
false
end
if
#
filterg
<=
0
or
(
matchall
and
not
filterg
:
Equal
(
checkg
))
then
return
false
end
return
true
end
end
end
end
--Condition: Negate Effect/Activation
--Condition: Negate Effect/Activation
...
...
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