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
e2f466f5
Commit
e2f466f5
authored
Jul 08, 2025
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
97228cda
Pipeline
#38715
failed with stages
in 85 minutes and 23 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
147 additions
and
42 deletions
+147
-42
expansions/script/c11600001.lua
expansions/script/c11600001.lua
+64
-20
expansions/script/c11600035.lua
expansions/script/c11600035.lua
+49
-8
expansions/script/c11600036.lua
expansions/script/c11600036.lua
+1
-1
expansions/script/c11600152.lua
expansions/script/c11600152.lua
+24
-4
expansions/script/c11600196.lua
expansions/script/c11600196.lua
+9
-9
No files found.
expansions/script/c11600001.lua
View file @
e2f466f5
...
...
@@ -52,15 +52,18 @@ end
function
s
.
mtfilter1
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
and
c
:
IsCanBeFusionMaterial
()
end
function
s
.
mtfilter2
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsFaceup
()
end
function
s
.
spfilter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x5540
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
s
.
fcheck
(
tp
,
sg
,
fc
)
return
sg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
<=
1
return
sg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
<=
1
and
sg
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
tp
)
<=
1
end
function
s
.
gcheck
(
sg
)
return
sg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
<=
1
return
sg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
<=
1
end
function
s
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
@@ -68,6 +71,10 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
s
.
mtfilter1
,
nil
)
local
mg2
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
mg1
:
Merge
(
mg2
)
if
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
then
local
mg3
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
mg1
:
Merge
(
mg3
)
end
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
s
.
gcheck
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
...
...
@@ -91,9 +98,14 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
s
.
spfilter1
,
nil
,
e
)
local
mg2
=
Duel
.
GetMatchingGroup
(
s
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
)
mg1
:
Merge
(
mg2
)
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
s
.
gcheck
local
sg1
=
Duel
.
GetMatchingGroup
(
s
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg3
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
then
mg3
:
Merge
(
mg1
)
end
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
s
.
gcheck
local
sg3
=
Duel
.
GetMatchingGroup
(
s
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg3
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
local
mg2
=
nil
...
...
@@ -103,7 +115,7 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
local
fgroup
=
ce
:
GetTarget
()
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
sg2
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
sg2
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
1
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
end
if
sg1
:
GetCount
()
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
)
then
local
sg
=
sg1
:
Clone
()
...
...
@@ -111,16 +123,22 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
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
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
s
.
gcheck
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
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
)
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
and
tc
:
IsSetCard
(
0x5540
)
and
sg3
:
GetCount
()
>
0
then
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
s
.
gcheck
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg3
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
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
,
mg1
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat2
)
Duel
.
SendtoGrave
(
mat2
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
end
else
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
local
fop
=
ce
:
GetOperation
()
...
...
@@ -192,6 +210,16 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
)
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
if
res
then
return
true
end
if
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
and
e
:
GetHandler
():
IsSetCard
(
0x5540
)
then
local
mg3
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
mg1
:
Merge
(
mg3
)
end
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
s
.
gcheck
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
...
...
@@ -209,6 +237,14 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
s
.
filter1
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg3
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
mg3
:
Merge
(
mg1
)
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
s
.
gcheck
local
sg
=
Duel
.
GetMatchingGroup
(
s
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg3
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
sg1
:
Merge
(
sg
)
local
mg2
=
nil
local
sg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
...
@@ -225,11 +261,19 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
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
,
nil
,
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
)
if
tc
:
IsSetCard
(
0x5540
)
and
e
:
GetHandler
():
IsSetCard
(
0x5540
)
and
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg3
,
nil
,
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
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
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
)
end
else
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
local
fop
=
ce
:
GetOperation
()
...
...
expansions/script/c11600035.lua
View file @
e2f466f5
...
...
@@ -33,6 +33,16 @@ end
function
s
.
cfilter
(
c
)
return
c
:
IsCode
(
11600016
)
and
c
:
IsFaceup
()
end
function
s
.
mtfilter2
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsFaceup
()
end
function
s
.
fcheck
(
tp
,
sg
,
fc
)
return
sg
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
tp
)
<=
1
end
function
s
.
spfilter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSetCard
(
0x5540
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
chkf
=
tp
...
...
@@ -42,6 +52,16 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
mg1
:
Merge
(
mg2
)
end
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
if
res
then
return
true
end
if
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
then
local
mg3
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
mg1
:
Merge
(
mg3
)
end
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
nil
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
...
...
@@ -63,6 +83,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
mg1
:
Merge
(
mg2
)
end
local
sg1
=
Duel
.
GetMatchingGroup
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg4
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
then
mg4
:
Merge
(
mg1
)
end
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
nil
local
sg3
=
Duel
.
GetMatchingGroup
(
s
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg4
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
local
mg3
=
nil
local
sg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
...
@@ -79,14 +108,26 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
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
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat1
)
local
tdg
=
mat1
:
Filter
(
s
.
tdfilter
,
nil
)
mat1
:
Sub
(
tdg
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
tdg
,
nil
,
2
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
tc
:
IsSetCard
(
0x5540
)
and
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg4
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat1
)
local
tdg
=
mat1
:
Filter
(
s
.
tdfilter
,
nil
)
mat1
:
Sub
(
tdg
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
tdg
,
nil
,
2
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
else
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat1
)
local
tdg
=
mat1
:
Filter
(
s
.
tdfilter
,
nil
)
mat1
:
Sub
(
tdg
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
tdg
,
nil
,
2
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
else
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg3
,
nil
,
chkf
)
local
fop
=
ce
:
GetOperation
()
...
...
expansions/script/c11600036.lua
View file @
e2f466f5
...
...
@@ -14,7 +14,7 @@ function s.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCode
(
EVENT_LEAVE_FIELD
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
id
+
10000
)
...
...
expansions/script/c11600152.lua
View file @
e2f466f5
...
...
@@ -87,13 +87,26 @@ function s.filter2(c,e,tp,m,f,gc,chkf)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
true
)
and
c
:
CheckFusionMaterial
(
m
,
gc
,
chkf
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
function
s
.
mtfilter2
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
and
c
:
IsCanBeFusionMaterial
()
and
c
:
IsFaceup
()
end
function
s
.
fcheck
(
tp
,
sg
,
fc
)
return
sg
:
FilterCount
(
Card
.
IsControler
,
nil
,
1
-
tp
)
<=
1
end
function
s
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
local
chkf
=
tp
local
mg1
=
Duel
.
GetMatchingGroup
(
s
.
filter0
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_PZONE
,
0
,
nil
)
mg1
:
AddCard
(
c
)
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
if
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
then
local
mg3
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
mg1
:
Merge
(
mg3
)
end
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
nil
local
res
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
...
...
@@ -113,8 +126,15 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
local
chkf
=
tp
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
local
mg1
=
Duel
.
GetMatchingGroup
(
s
.
filter1
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_PZONE
,
0
,
nil
,
e
)
mg1
:
AddCard
(
c
)
local
sg1
=
Duel
.
GetMatchingGroup
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
c
,
chkf
)
if
Duel
.
GetFlagEffect
(
tp
,
11600036
)
>
0
then
local
mg3
=
Duel
.
GetMatchingGroup
(
s
.
mtfilter2
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
mg1
:
Merge
(
mg3
)
end
aux
.
FCheckAdditional
=
s
.
fcheck
aux
.
GCheckAdditional
=
nil
local
sg1
=
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
aux
.
FCheckAdditional
=
nil
aux
.
GCheckAdditional
=
nil
local
mg2
=
nil
local
sg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
...
...
expansions/script/c11600196.lua
View file @
e2f466f5
...
...
@@ -30,8 +30,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
0
,
0
,
0
)
if
Duel
.
GetFlagEffect
(
tp
,
id
)
>
1
then
if
Duel
.
GetFlagEffect
(
tp
,
id
)
<
1
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
...
...
@@ -39,18 +38,19 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetOperation
(
s
.
thop2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
0
,
0
,
0
)
end
end
function
s
.
cfilter2
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsLocation
(
LOCATION_EXTRA
))
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5541
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
function
s
.
cfilter2
(
c
,
e
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
(
c
:
IsLocation
(
LOCATION_EXTRA
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
))
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5541
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ss
=
Duel
.
GetLocationCount
(
LOCATION_MZONE
)
local
sg
=
eg
:
Filter
(
s
.
cfilter2
,
nil
,
tp
)
local
ss
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
sg
=
eg
:
Filter
(
s
.
cfilter2
,
nil
,
e
,
tp
)
if
Duel
.
GetFlagEffect
(
tp
,
id
+
10000
)
<
2
and
sg
:
GetCount
()
<=
ss
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
Duel
.
SpecialSummon
(
s
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
RegisterFlagEffect
(
tp
,
id
+
10000
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
Duel
.
SpecialSummon
(
t
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
RegisterFlagEffect
(
tp
,
id
+
10000
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
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