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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
99af3eec
Commit
99af3eec
authored
Jul 27, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
d5fd948c
Pipeline
#4332
passed with stages
in 34 minutes and 35 seconds
Changes
16
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
128 additions
and
255 deletions
+128
-255
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c23000000.lua
expansions/script/c23000000.lua
+85
-7
expansions/script/c26800000.lua
expansions/script/c26800000.lua
+21
-0
expansions/script/c26819007.lua
expansions/script/c26819007.lua
+2
-19
expansions/script/c26819008.lua
expansions/script/c26819008.lua
+2
-19
expansions/script/c26819009.lua
expansions/script/c26819009.lua
+2
-19
expansions/script/c26819010.lua
expansions/script/c26819010.lua
+2
-19
expansions/script/c26819011.lua
expansions/script/c26819011.lua
+2
-19
expansions/script/c26819012.lua
expansions/script/c26819012.lua
+2
-19
expansions/script/c26819013.lua
expansions/script/c26819013.lua
+2
-19
expansions/script/c26819019.lua
expansions/script/c26819019.lua
+2
-19
expansions/script/c26819021.lua
expansions/script/c26819021.lua
+1
-19
expansions/script/c26819022.lua
expansions/script/c26819022.lua
+1
-19
expansions/script/c26819023.lua
expansions/script/c26819023.lua
+1
-19
expansions/script/c26819025.lua
expansions/script/c26819025.lua
+2
-20
expansions/script/c26819028.lua
expansions/script/c26819028.lua
+1
-19
No files found.
expansions/222DIY.cdb
View file @
99af3eec
No preview for this file type
expansions/script/c23000000.lua
View file @
99af3eec
...
...
@@ -4,6 +4,7 @@ bm=bm or {}
bm
.
setcode
=
0x350
--血族
bm
.
name
=
23000000
bm
.
version
=
20210727
mz
=
LOCATION_MZONE
pz
=
LOCATION_PZONE
...
...
@@ -221,7 +222,7 @@ function bm.matfilter1(c,syncard,tp,e)
if
c
:
IsSynchroType
(
TYPE_XYZ
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
(
c
:
IsType
(
TYPE_TUNER
)
or
e
:
GetLabel
()
==
100
)
then
return
true
end
return
c
:
IsSynchroType
(
TYPE_TUNER
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
and
(
c
:
IsFaceup
()
or
not
c
:
IsLocation
(
LOCATION_MZONE
))
end
function
bm
.
matfilter2
(
c
,
syncard
,
e
)
function
bm
.
matfilter2
(
c
,
syncard
,
tp
,
e
)
if
e
:
GetLabel
()
==
100
and
not
bm
.
nf
(
c
)
then
return
false
end
if
c
:
IsSynchroType
(
TYPE_XYZ
)
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
e
:
GetLabel
()
~=
100
then
return
true
end
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsNotTuner
(
syncard
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
)
...
...
@@ -255,13 +256,13 @@ function bm.syncon(e,c,tuner,mg)
end
if
mg
then
g1
=
mg
:
Filter
(
bm
.
matfilter1
,
nil
,
c
,
tp
,
e
)
g2
=
mg
:
Filter
(
bm
.
matfilter2
,
nil
,
c
,
e
)
g2
=
mg
:
Filter
(
bm
.
matfilter2
,
nil
,
c
,
tp
,
e
)
g3
=
g2
:
Clone
()
else
local
mpg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
mz
,
mz
,
nil
)
g1
=
mpg
:
Filter
(
bm
.
matfilter1
,
nil
,
c
,
tp
,
e
)
g2
=
mpg
:
Filter
(
bm
.
matfilter2
,
nil
,
c
,
e
)
g3
=
Duel
.
GetMatchingGroup
(
bm
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
e
)
g2
=
mpg
:
Filter
(
bm
.
matfilter2
,
nil
,
c
,
tp
,
e
)
g3
=
Duel
.
GetMatchingGroup
(
bm
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
tp
,
e
)
end
local
lv
=
c
:
GetLevel
()
local
sg
=
nil
...
...
@@ -284,13 +285,13 @@ function bm.syntg(e,tp,eg,ep,ev,re,r,rp,chk,c,tuner,mg)
end
if
mg
then
g1
=
mg
:
Filter
(
bm
.
matfilter1
,
nil
,
c
,
tp
,
e
)
g2
=
mg
:
Filter
(
bm
.
matfilter2
,
nil
,
c
,
e
)
g2
=
mg
:
Filter
(
bm
.
matfilter2
,
nil
,
c
,
tp
,
e
)
g3
=
g2
:
Clone
()
else
local
mpg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
mz
,
mz
,
nil
)
g1
=
mpg
:
Filter
(
bm
.
matfilter1
,
nil
,
c
,
tp
,
e
)
g2
=
mpg
:
Filter
(
bm
.
matfilter2
,
nil
,
c
,
e
)
g3
=
Duel
.
GetMatchingGroup
(
bm
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
e
)
g2
=
mpg
:
Filter
(
bm
.
matfilter2
,
nil
,
c
,
tp
,
e
)
g3
=
Duel
.
GetMatchingGroup
(
bm
.
matfilter2
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
LOCATION_MZONE
,
nil
,
c
,
tp
,
e
)
end
local
pe
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_MUST_BE_SMATERIAL
)
local
lv
=
c
:
GetLevel
()
...
...
@@ -365,4 +366,81 @@ function bm.eqlimit(e,c)
end
function
bm
.
rcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_COST
)
~=
0
and
re
:
IsActivated
()
and
re
.
__overlay_remove_replace_yilong
.
flag
and
ep
==
e
:
GetOwnerPlayer
()
and
re
:
GetActivateLocation
()
&
LOCATION_MZONE
~=
0
and
re
:
GetHandler
()
==
e
:
GetHandler
()
end
--Fusion Effect
function
bm
.
handfusion
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
29280589
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
ha
+
mz
)
e1
:
SetCost
(
bm
.
hfcost
)
e1
:
SetTarget
(
bm
.
hftarget
)
e1
:
SetOperation
(
bm
.
hfactivate
)
return
e1
end
function
bm
.
hfcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsLocation
(
mz
)
or
not
e
:
GetHandler
():
IsPublic
()
end
end
function
bm
.
hffilter1
(
c
,
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
end
function
bm
.
hffilter2
(
c
,
e
,
tp
,
m
,
f
,
gc
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
bm
.
nf
(
c
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
gc
,
chkf
)
end
function
bm
.
hftarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
)
local
res
=
Duel
.
IsExistingMatchingCard
(
bm
.
hffilter2
,
tp
,
ex
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
local
fgroup
=
ce
:
GetTarget
()
local
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
res
=
Duel
.
IsExistingMatchingCard
(
bm
.
hffilter2
,
tp
,
ex
,
0
,
1
,
nil
,
e
,
tp
,
mg2
,
mf
,
c
,
chkf
)
end
end
return
res
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
ex
)
end
function
bm
.
hfactivate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
chkf
=
tp
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
bm
.
hffilter1
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
bm
.
hffilter2
,
tp
,
ex
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
local
mg2
=
nil
local
sg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
local
fgroup
=
ce
:
GetTarget
()
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
sg2
=
Duel
.
GetMatchingGroup
(
bm
.
hffilter2
,
tp
,
ex
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
c
,
chkf
)
end
if
sg1
:
GetCount
()
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
)
then
local
sg
=
sg1
:
Clone
()
if
sg2
then
sg
:
Merge
(
sg2
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
c
,
chkf
)
tc
:
SetMaterial
(
mat1
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
c
,
chkf
)
local
fop
=
ce
:
GetOperation
()
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
end
tc
:
CompleteProcedure
()
end
end
\ No newline at end of file
expansions/script/c26800000.lua
View file @
99af3eec
...
...
@@ -89,3 +89,24 @@ function Amana.spcop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
--
function
Amana
.
Momoka
(
c
,
m
)
local
ea
=
Effect
.
CreateEffect
(
c
)
ea
:
SetType
(
EFFECT_TYPE_SINGLE
)
ea
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
ea
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
ea
:
SetRange
(
LOCATION_HAND
)
ea
:
SetCountLimit
(
1
,
m
+
900
)
ea
:
SetValue
(
Amana
.
matval
)
c
:
RegisterEffect
(
ea
)
end
function
Amana
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
Amana
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
Amana
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
Amana
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
Amana
.
exmfilter
,
1
,
nil
)
end
expansions/script/c26819007.lua
View file @
99af3eec
--桃华·冬之赠礼
local
m
=
26819007
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -32,16 +25,6 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819008.lua
View file @
99af3eec
--桃华·常夏小憩
local
m
=
26819008
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -30,16 +23,6 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819009.lua
View file @
99af3eec
--桃华·绚烂景色
local
m
=
26819009
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -33,16 +26,6 @@ function cm.initial_effect(c)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819010.lua
View file @
99af3eec
--桃华·棉雪之戏
local
m
=
26819010
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -30,16 +23,6 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819011.lua
View file @
99af3eec
--桃华·午后茶会
local
m
=
26819011
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -29,16 +22,6 @@ function cm.initial_effect(c)
e7
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e7
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819012.lua
View file @
99af3eec
--桃华·心意甜点
local
m
=
26819012
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -29,16 +22,6 @@ function cm.initial_effect(c)
e2
:
SetValue
(
aux
.
imval1
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819013.lua
View file @
99af3eec
--桃华·勇气之行
local
m
=
26819013
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -33,16 +26,6 @@ function cm.initial_effect(c)
e3
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819019.lua
View file @
99af3eec
--桃华·盛夏祈福
local
m
=
26819019
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -33,16 +26,6 @@ function cm.initial_effect(c)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819021.lua
View file @
99af3eec
...
...
@@ -3,15 +3,7 @@ local m=26819021
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -31,16 +23,6 @@ function cm.initial_effect(c)
e2
:
SetValue
(
cm
.
cspval
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819022.lua
View file @
99af3eec
...
...
@@ -3,15 +3,7 @@ local m=26819022
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -34,16 +26,6 @@ function cm.initial_effect(c)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819023.lua
View file @
99af3eec
...
...
@@ -3,15 +3,7 @@ local m=26819023
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -33,16 +25,6 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819025.lua
View file @
99af3eec
--桃华·闪耀侍者
local
m
=
26819025
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c
810
00000.lua"
)
Duel
.
LoadScript
(
"c
268
00000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -33,16 +25,6 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
end
...
...
expansions/script/c26819028.lua
View file @
99af3eec
...
...
@@ -3,15 +3,7 @@ local m=26819028
local
cm
=
_G
[
"c"
..
m
]
Duel
.
LoadScript
(
"c26800000.lua"
)
function
cm
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_EXTRA_LINK_MATERIAL
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCountLimit
(
1
,
m
+
900
)
e0
:
SetValue
(
cm
.
matval
)
c
:
RegisterEffect
(
e0
)
Amana
.
Momoka
(
c
,
m
)
--effect gain
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -33,16 +25,6 @@ function cm.initial_effect(c)
e2
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
cm
.
exmfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
and
c
:
IsCode
(
m
)
end
function
cm
.
matval
(
e
,
lc
,
mg
,
c
,
tp
)
if
not
lc
:
IsSetCard
(
0x3603
)
then
return
false
,
nil
end
return
true
,
not
mg
or
mg
:
IsExists
(
cm
.
mfilter
,
1
,
nil
)
and
not
mg
:
IsExists
(
cm
.
exmfilter
,
1
,
nil
)
end
function
cm
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_LINK
)
~=
0
and
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x3603
)
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