Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Vury Leo
pre-release-database-cdb
Commits
71599f55
Commit
71599f55
authored
Mar 18, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ヤミーウェイ
parent
862472ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
331 deletions
+52
-331
script/c100236019.lua
script/c100236019.lua
+17
-110
script/c100236020.lua
script/c100236020.lua
+17
-110
script/c100236021.lua
script/c100236021.lua
+18
-111
No files found.
script/c100236019.lua
View file @
71599f55
...
...
@@ -2,18 +2,17 @@
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--synchro summon
c
:
EnableReviveLimit
()
aux
.
AddSynchroMixProcedure
(
c
,
s
.
matfilter1
,
nil
,
nil
,
s
.
matfilter2
,
1
,
1
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetDescription
(
1164
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABL
E
)
e0
:
SetCode
(
373
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_
IGNORE_IMMUN
E
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetCondition
(
s
.
LSynCondition
)
e0
:
SetTarget
(
s
.
LSynTarget
)
e0
:
SetOperation
(
Auxiliary
.
SynOperation
())
e0
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
e0
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e0
:
SetTarget
(
s
.
syntg
)
e0
:
SetValue
(
s
.
synval
)
c
:
RegisterEffect
(
e0
)
c
:
EnableReviveLimit
()
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
...
...
@@ -40,113 +39,21 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
matfilter1
(
c
,
syncard
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
if
c
:
IsSynchroType
(
TYPE_LINK
)
and
c
:
IsControler
(
tp
)
then
return
true
end
return
c
:
IsSynchroType
(
TYPE_TUNER
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
and
(
c
:
IsControler
(
tp
)
or
Duel
.
GetSynchroMaterial
(
tp
):
IsContains
(
c
))
end
function
s
.
matfilter2
(
c
,
syncard
,
tp
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsNotTuner
(
syncard
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
and
(
c
:
IsControler
(
tp
)
or
Duel
.
GetSynchroMaterial
(
tp
):
IsContains
(
c
))
end
function
s
.
val
(
c
,
syncard
)
if
c
:
IsSynchroType
(
TYPE_LINK
)
then
return
c
:
GetLink
()
else
return
c
:
GetSynchroLevel
(
syncard
)
end
function
s
.
matfilter1
(
c
,
syncard
)
return
c
:
IsTuner
(
syncard
)
or
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsLink
(
1
)
end
function
s
.
synfilter
(
c
,
syncard
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
local
tsg
=
c
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
g3
or
g2
return
tsg
:
CheckSubGroup
(
s
.
goal
,
minc
,
maxc
,
tp
,
lv
,
syncard
,
c
)
function
s
.
matfilter2
(
c
,
syncard
)
return
c
:
IsNotTuner
(
syncard
)
and
not
c
:
IsType
(
TYPE_LINK
)
end
function
s
.
goal
(
g
,
tp
,
lv
,
syncard
,
tuc
)
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
syncard
)
<=
0
then
return
false
end
if
tuc
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
g
:
IsExists
(
Card
.
IsLocation
,
2
,
tuc
,
LOCATION_HAND
)
then
return
false
end
local
lg
=
g
:
__add
(
tuc
)
return
lg
:
CheckWithSumEqual
(
s
.
val
,
lv
,
#
lg
,
#
lg
,
syncard
)
end
function
s
.
LSynCondition
(
e
,
c
,
tuner
,
mg
,
min
,
max
)
if
c
==
nil
then
return
true
end
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
minc
=
1
local
maxc
=
c
:
GetLevel
()
-
1
if
min
then
if
min
>
minc
then
minc
=
min
end
if
max
<
maxc
then
maxc
=
max
end
if
minc
>
maxc
then
return
false
end
end
local
g1
=
nil
local
g2
=
nil
local
g3
=
nil
if
mg
then
g1
=
mg
:
Filter
(
s
.
matfilter1
,
nil
,
c
,
tp
)
g2
=
mg
:
Filter
(
s
.
matfilter2
,
nil
,
c
,
tp
)
g3
=
g2
:
Clone
()
else
g1
=
Duel
.
GetMatchingGroup
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g2
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g3
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
end
local
pe
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_SMATERIAL
)
local
lv
=
c
:
GetLevel
()
local
sg
=
nil
if
tuner
then
return
s
.
matfilter1
(
c
,
tp
)
and
s
.
synfilter
(
tuner
,
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
elseif
pe
then
return
s
.
matfilter1
(
pe
:
GetOwner
(),
tp
)
and
s
.
synfilter
(
pe
:
GetOwner
(),
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
else
return
g1
:
IsExists
(
s
.
synfilter
,
1
,
nil
,
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
end
function
s
.
syntg
(
e
,
c
)
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsLink
(
1
)
end
function
s
.
LSynTarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
,
tuner
,
mg
,
min
,
max
)
local
minc
=
1
local
maxc
=
c
:
GetLevel
()
-
1
if
min
then
if
min
>
minc
then
minc
=
min
end
if
max
<
maxc
then
maxc
=
max
end
if
minc
>
maxc
then
return
false
end
end
local
g1
=
nil
local
g2
=
nil
local
g3
=
nil
if
mg
then
g1
=
mg
:
Filter
(
s
.
matfilter1
,
nil
,
c
,
tp
)
g2
=
mg
:
Filter
(
s
.
matfilter2
,
nil
,
c
,
tp
)
g3
=
g2
:
Clone
()
else
g1
=
Duel
.
GetMatchingGroup
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g2
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g3
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
end
local
pe
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_SMATERIAL
)
local
lv
=
c
:
GetLevel
()
local
tuc
=
nil
if
tuner
then
tuc
=
tuner
function
s
.
synval
(
e
,
syncard
)
if
e
:
GetHandler
()
==
syncard
then
return
1
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
if
not
pe
then
local
sg
=
g1
:
Filter
(
s
.
synfilter
,
nil
,
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
):
CancelableSelect
(
tp
,
1
,
1
,
nil
)
if
sg
then
tuc
=
sg
:
GetFirst
()
else
return
false
end
else
tuc
=
pe
:
GetOwner
()
Group
.
FromCards
(
tuc
):
Select
(
tp
,
1
,
1
,
nil
)
end
return
0
end
local
tsg
=
tuc
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
g3
or
g2
Duel
.
Hint
(
tp
,
HINT_SELECTMSG
,
HINTMSG_SMATERIAL
)
local
g
=
tsg
:
SelectSubGroup
(
tp
,
s
.
goal
,
true
,
minc
,
maxc
,
tp
,
lv
,
c
,
tuc
)
if
g
then
g
:
AddCard
(
tuc
)
g
:
KeepAlive
()
e
:
SetLabelObject
(
g
)
return
true
else
return
false
end
end
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
...
...
script/c100236020.lua
View file @
71599f55
...
...
@@ -2,18 +2,17 @@
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--synchro summon
c
:
EnableReviveLimit
()
aux
.
AddSynchroMixProcedure
(
c
,
s
.
matfilter1
,
nil
,
nil
,
s
.
matfilter2
,
1
,
1
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetDescription
(
1164
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABL
E
)
e0
:
SetCode
(
373
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_
IGNORE_IMMUN
E
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetCondition
(
s
.
LSynCondition
)
e0
:
SetTarget
(
s
.
LSynTarget
)
e0
:
SetOperation
(
Auxiliary
.
SynOperation
())
e0
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
e0
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e0
:
SetTarget
(
s
.
syntg
)
e0
:
SetValue
(
s
.
synval
)
c
:
RegisterEffect
(
e0
)
c
:
EnableReviveLimit
()
--position change
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
...
...
@@ -40,113 +39,21 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
matfilter1
(
c
,
syncard
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
if
c
:
IsSynchroType
(
TYPE_LINK
)
and
c
:
IsControler
(
tp
)
then
return
true
end
return
c
:
IsSynchroType
(
TYPE_TUNER
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
and
(
c
:
IsControler
(
tp
)
or
Duel
.
GetSynchroMaterial
(
tp
):
IsContains
(
c
))
end
function
s
.
matfilter2
(
c
,
syncard
,
tp
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsNotTuner
(
syncard
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
and
(
c
:
IsControler
(
tp
)
or
Duel
.
GetSynchroMaterial
(
tp
):
IsContains
(
c
))
end
function
s
.
val
(
c
,
syncard
)
if
c
:
IsSynchroType
(
TYPE_LINK
)
then
return
c
:
GetLink
()
else
return
c
:
GetSynchroLevel
(
syncard
)
end
function
s
.
matfilter1
(
c
,
syncard
)
return
c
:
IsTuner
(
syncard
)
or
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsLink
(
1
)
end
function
s
.
synfilter
(
c
,
syncard
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
local
tsg
=
c
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
g3
or
g2
return
tsg
:
CheckSubGroup
(
s
.
goal
,
minc
,
maxc
,
tp
,
lv
,
syncard
,
c
)
function
s
.
matfilter2
(
c
,
syncard
)
return
c
:
IsNotTuner
(
syncard
)
and
not
c
:
IsType
(
TYPE_LINK
)
end
function
s
.
goal
(
g
,
tp
,
lv
,
syncard
,
tuc
)
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
syncard
)
<=
0
then
return
false
end
if
tuc
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
g
:
IsExists
(
Card
.
IsLocation
,
2
,
tuc
,
LOCATION_HAND
)
then
return
false
end
local
lg
=
g
:
__add
(
tuc
)
return
lg
:
CheckWithSumEqual
(
s
.
val
,
lv
,
#
lg
,
#
lg
,
syncard
)
function
s
.
syntg
(
e
,
c
)
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsLink
(
1
)
end
function
s
.
LSynCondition
(
e
,
c
,
tuner
,
mg
,
min
,
max
)
if
c
==
nil
then
return
true
end
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
minc
=
1
local
maxc
=
c
:
GetLevel
()
-
1
if
min
then
if
min
>
minc
then
minc
=
min
end
if
max
<
maxc
then
maxc
=
max
end
if
minc
>
maxc
then
return
false
end
end
local
g1
=
nil
local
g2
=
nil
local
g3
=
nil
if
mg
then
g1
=
mg
:
Filter
(
s
.
matfilter1
,
nil
,
c
,
tp
)
g2
=
mg
:
Filter
(
s
.
matfilter2
,
nil
,
c
,
tp
)
g3
=
g2
:
Clone
()
else
g1
=
Duel
.
GetMatchingGroup
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g2
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g3
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
end
local
pe
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_SMATERIAL
)
local
lv
=
c
:
GetLevel
()
local
sg
=
nil
if
tuner
then
return
s
.
matfilter1
(
c
,
tp
)
and
s
.
synfilter
(
tuner
,
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
elseif
pe
then
return
s
.
matfilter1
(
pe
:
GetOwner
(),
tp
)
and
s
.
synfilter
(
pe
:
GetOwner
(),
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
else
return
g1
:
IsExists
(
s
.
synfilter
,
1
,
nil
,
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
end
end
function
s
.
LSynTarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
,
tuner
,
mg
,
min
,
max
)
local
minc
=
1
local
maxc
=
c
:
GetLevel
()
-
1
if
min
then
if
min
>
minc
then
minc
=
min
end
if
max
<
maxc
then
maxc
=
max
end
if
minc
>
maxc
then
return
false
end
end
local
g1
=
nil
local
g2
=
nil
local
g3
=
nil
if
mg
then
g1
=
mg
:
Filter
(
s
.
matfilter1
,
nil
,
c
,
tp
)
g2
=
mg
:
Filter
(
s
.
matfilter2
,
nil
,
c
,
tp
)
g3
=
g2
:
Clone
()
else
g1
=
Duel
.
GetMatchingGroup
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g2
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g3
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
end
local
pe
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_SMATERIAL
)
local
lv
=
c
:
GetLevel
()
local
tuc
=
nil
if
tuner
then
tuc
=
tuner
function
s
.
synval
(
e
,
syncard
)
if
e
:
GetHandler
()
==
syncard
then
return
1
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
if
not
pe
then
local
sg
=
g1
:
Filter
(
s
.
synfilter
,
nil
,
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
):
CancelableSelect
(
tp
,
1
,
1
,
nil
)
if
sg
then
tuc
=
sg
:
GetFirst
()
else
return
false
end
else
tuc
=
pe
:
GetOwner
()
Group
.
FromCards
(
tuc
):
Select
(
tp
,
1
,
1
,
nil
)
end
return
0
end
local
tsg
=
tuc
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
g3
or
g2
Duel
.
Hint
(
tp
,
HINT_SELECTMSG
,
HINTMSG_SMATERIAL
)
local
g
=
tsg
:
SelectSubGroup
(
tp
,
s
.
goal
,
true
,
minc
,
maxc
,
tp
,
lv
,
c
,
tuc
)
if
g
then
g
:
AddCard
(
tuc
)
g
:
KeepAlive
()
e
:
SetLabelObject
(
g
)
return
true
else
return
false
end
end
function
s
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
...
...
script/c100236021.lua
View file @
71599f55
...
...
@@ -2,18 +2,17 @@
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--synchro summon
c
:
EnableReviveLimit
()
aux
.
AddSynchroMixProcedure
(
c
,
s
.
matfilter1
,
nil
,
nil
,
s
.
matfilter2
,
1
,
1
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetDescription
(
1164
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABL
E
)
e0
:
SetCode
(
373
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_
IGNORE_IMMUN
E
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetCondition
(
s
.
LSynCondition
)
e0
:
SetTarget
(
s
.
LSynTarget
)
e0
:
SetOperation
(
Auxiliary
.
SynOperation
())
e0
:
SetValue
(
SUMMON_TYPE_SYNCHRO
)
e0
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e0
:
SetTarget
(
s
.
syntg
)
e0
:
SetValue
(
s
.
synval
)
c
:
RegisterEffect
(
e0
)
c
:
EnableReviveLimit
()
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
...
...
@@ -37,116 +36,24 @@ function s.initial_effect(c)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetCost
(
s
.
spcost
)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
SetOperation
(
s
.
spop
)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
matfilter1
(
c
,
syncard
,
tp
)
if
c
:
IsFacedown
()
then
return
false
end
if
c
:
IsSynchroType
(
TYPE_LINK
)
and
c
:
IsControler
(
tp
)
then
return
true
end
return
c
:
IsSynchroType
(
TYPE_TUNER
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
and
(
c
:
IsControler
(
tp
)
or
Duel
.
GetSynchroMaterial
(
tp
):
IsContains
(
c
))
end
function
s
.
matfilter2
(
c
,
syncard
,
tp
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsNotTuner
(
syncard
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
and
(
c
:
IsControler
(
tp
)
or
Duel
.
GetSynchroMaterial
(
tp
):
IsContains
(
c
))
end
function
s
.
val
(
c
,
syncard
)
if
c
:
IsSynchroType
(
TYPE_LINK
)
then
return
c
:
GetLink
()
else
return
c
:
GetSynchroLevel
(
syncard
)
end
function
s
.
matfilter1
(
c
,
syncard
)
return
c
:
IsTuner
(
syncard
)
or
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsLink
(
1
)
end
function
s
.
synfilter
(
c
,
syncard
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
local
tsg
=
c
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
g3
or
g2
return
tsg
:
CheckSubGroup
(
s
.
goal
,
minc
,
maxc
,
tp
,
lv
,
syncard
,
c
)
function
s
.
matfilter2
(
c
,
syncard
)
return
c
:
IsNotTuner
(
syncard
)
and
not
c
:
IsType
(
TYPE_LINK
)
end
function
s
.
goal
(
g
,
tp
,
lv
,
syncard
,
tuc
)
if
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
syncard
)
<=
0
then
return
false
end
if
tuc
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
g
:
IsExists
(
Card
.
IsLocation
,
2
,
tuc
,
LOCATION_HAND
)
then
return
false
end
local
lg
=
g
:
__add
(
tuc
)
return
lg
:
CheckWithSumEqual
(
s
.
val
,
lv
,
#
lg
,
#
lg
,
syncard
)
end
function
s
.
LSynCondition
(
e
,
c
,
tuner
,
mg
,
min
,
max
)
if
c
==
nil
then
return
true
end
if
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsFaceup
()
then
return
false
end
local
tp
=
c
:
GetControler
()
local
minc
=
1
local
maxc
=
c
:
GetLevel
()
-
1
if
min
then
if
min
>
minc
then
minc
=
min
end
if
max
<
maxc
then
maxc
=
max
end
if
minc
>
maxc
then
return
false
end
end
local
g1
=
nil
local
g2
=
nil
local
g3
=
nil
if
mg
then
g1
=
mg
:
Filter
(
s
.
matfilter1
,
nil
,
c
,
tp
)
g2
=
mg
:
Filter
(
s
.
matfilter2
,
nil
,
c
,
tp
)
g3
=
g2
:
Clone
()
else
g1
=
Duel
.
GetMatchingGroup
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g2
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g3
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
end
local
pe
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_SMATERIAL
)
local
lv
=
c
:
GetLevel
()
local
sg
=
nil
if
tuner
then
return
s
.
matfilter1
(
c
,
tp
)
and
s
.
synfilter
(
tuner
,
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
elseif
pe
then
return
s
.
matfilter1
(
pe
:
GetOwner
(),
tp
)
and
s
.
synfilter
(
pe
:
GetOwner
(),
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
else
return
g1
:
IsExists
(
s
.
synfilter
,
1
,
nil
,
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
)
end
function
s
.
syntg
(
e
,
c
)
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsLink
(
1
)
end
function
s
.
LSynTarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
,
tuner
,
mg
,
min
,
max
)
local
minc
=
1
local
maxc
=
c
:
GetLevel
()
-
1
if
min
then
if
min
>
minc
then
minc
=
min
end
if
max
<
maxc
then
maxc
=
max
end
if
minc
>
maxc
then
return
false
end
end
local
g1
=
nil
local
g2
=
nil
local
g3
=
nil
if
mg
then
g1
=
mg
:
Filter
(
s
.
matfilter1
,
nil
,
c
,
tp
)
g2
=
mg
:
Filter
(
s
.
matfilter2
,
nil
,
c
,
tp
)
g3
=
g2
:
Clone
()
else
g1
=
Duel
.
GetMatchingGroup
(
s
.
matfilter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g2
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
g3
=
Duel
.
GetMatchingGroup
(
s
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
tp
)
end
local
pe
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_SMATERIAL
)
local
lv
=
c
:
GetLevel
()
local
tuc
=
nil
if
tuner
then
tuc
=
tuner
function
s
.
synval
(
e
,
syncard
)
if
e
:
GetHandler
()
==
syncard
then
return
1
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
if
not
pe
then
local
sg
=
g1
:
Filter
(
s
.
synfilter
,
nil
,
c
,
lv
,
g2
,
g3
,
minc
,
maxc
,
tp
):
CancelableSelect
(
tp
,
1
,
1
,
nil
)
if
sg
then
tuc
=
sg
:
GetFirst
()
else
return
false
end
else
tuc
=
pe
:
GetOwner
()
Group
.
FromCards
(
tuc
):
Select
(
tp
,
1
,
1
,
nil
)
end
return
0
end
local
tsg
=
tuc
:
IsHasEffect
(
EFFECT_HAND_SYNCHRO
)
and
g3
or
g2
Duel
.
Hint
(
tp
,
HINT_SELECTMSG
,
HINTMSG_SMATERIAL
)
local
g
=
tsg
:
SelectSubGroup
(
tp
,
s
.
goal
,
true
,
minc
,
maxc
,
tp
,
lv
,
c
,
tuc
)
if
g
then
g
:
AddCard
(
tuc
)
g
:
KeepAlive
()
e
:
SetLabelObject
(
g
)
return
true
else
return
false
end
end
function
s
.
gspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
...
...
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