Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
9bdb0bf4
Commit
9bdb0bf4
authored
Jun 09, 2024
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-scripts
parents
54653563
7a8f84e3
Changes
80
Hide whitespace changes
Inline
Side-by-side
Showing
80 changed files
with
164 additions
and
99 deletions
+164
-99
c10424147.lua
c10424147.lua
+2
-2
c11221418.lua
c11221418.lua
+1
-1
c11510448.lua
c11510448.lua
+4
-1
c11646785.lua
c11646785.lua
+5
-1
c12615446.lua
c12615446.lua
+1
-1
c12744567.lua
c12744567.lua
+1
-1
c14602126.lua
c14602126.lua
+1
-1
c15092394.lua
c15092394.lua
+1
-1
c18678554.lua
c18678554.lua
+1
-1
c19272658.lua
c19272658.lua
+5
-2
c19310321.lua
c19310321.lua
+4
-1
c1992816.lua
c1992816.lua
+4
-1
c20424878.lua
c20424878.lua
+1
-1
c23689428.lua
c23689428.lua
+1
-1
c24434049.lua
c24434049.lua
+5
-2
c24701066.lua
c24701066.lua
+1
-1
c25550531.lua
c25550531.lua
+2
-2
c2609443.lua
c2609443.lua
+1
-1
c26708437.lua
c26708437.lua
+1
-1
c27068117.lua
c27068117.lua
+1
-1
c28770951.lua
c28770951.lua
+1
-1
c29599813.lua
c29599813.lua
+1
-1
c29601381.lua
c29601381.lua
+1
-1
c30761649.lua
c30761649.lua
+1
-1
c31755044.lua
c31755044.lua
+1
-1
c32245230.lua
c32245230.lua
+1
-1
c32559361.lua
c32559361.lua
+1
-1
c34721681.lua
c34721681.lua
+1
-1
c34876719.lua
c34876719.lua
+1
-1
c39030163.lua
c39030163.lua
+1
-1
c39943352.lua
c39943352.lua
+1
-1
c43841694.lua
c43841694.lua
+4
-2
c46060017.lua
c46060017.lua
+1
-1
c46261704.lua
c46261704.lua
+1
-1
c46576366.lua
c46576366.lua
+1
-1
c4820694.lua
c4820694.lua
+4
-1
c48739166.lua
c48739166.lua
+1
-1
c49033797.lua
c49033797.lua
+1
-1
c52645235.lua
c52645235.lua
+1
-1
c53334641.lua
c53334641.lua
+1
-1
c55285840.lua
c55285840.lua
+6
-1
c55470553.lua
c55470553.lua
+1
-1
c56818977.lua
c56818977.lua
+1
-1
c57031794.lua
c57031794.lua
+5
-1
c57450198.lua
c57450198.lua
+5
-1
c5916510.lua
c5916510.lua
+1
-1
c60195675.lua
c60195675.lua
+1
-1
c60944809.lua
c60944809.lua
+1
-1
c60954556.lua
c60954556.lua
+1
-1
c67331360.lua
c67331360.lua
+1
-1
c67436768.lua
c67436768.lua
+1
-1
c67865534.lua
c67865534.lua
+1
-1
c68250822.lua
c68250822.lua
+1
-1
c69073023.lua
c69073023.lua
+1
-1
c69217334.lua
c69217334.lua
+3
-4
c69757518.lua
c69757518.lua
+30
-11
c69809989.lua
c69809989.lua
+1
-1
c70597485.lua
c70597485.lua
+1
-0
c71166481.lua
c71166481.lua
+1
-1
c72502414.lua
c72502414.lua
+1
-1
c73881652.lua
c73881652.lua
+1
-1
c74852810.lua
c74852810.lua
+2
-2
c76587747.lua
c76587747.lua
+1
-1
c78876707.lua
c78876707.lua
+1
-1
c79094383.lua
c79094383.lua
+1
-1
c79933029.lua
c79933029.lua
+2
-2
c83203672.lua
c83203672.lua
+1
-1
c83319610.lua
c83319610.lua
+4
-0
c83888009.lua
c83888009.lua
+1
-1
c85252081.lua
c85252081.lua
+5
-1
c8696773.lua
c8696773.lua
+1
-1
c8809344.lua
c8809344.lua
+1
-1
c89928517.lua
c89928517.lua
+1
-1
c90126061.lua
c90126061.lua
+1
-1
c92015800.lua
c92015800.lua
+1
-1
c9349094.lua
c9349094.lua
+1
-1
c96142517.lua
c96142517.lua
+2
-1
c97584719.lua
c97584719.lua
+1
-1
c98049934.lua
c98049934.lua
+2
-2
c99397762.lua
c99397762.lua
+1
-1
No files found.
c10424147.lua
View file @
9bdb0bf4
...
@@ -67,7 +67,7 @@ function c10424147.spop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,7 +67,7 @@ function c10424147.spop1(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c10424147
.
spfilter3
(
c
,
e
)
function
c10424147
.
spfilter3
(
c
,
e
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x20dc
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeEffectTarget
(
e
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x20dc
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanOverlay
()
end
end
function
c10424147
.
spfilter4
(
c
,
e
,
tp
)
function
c10424147
.
spfilter4
(
c
,
e
,
tp
)
return
c
:
IsCode
(
84025439
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
return
c
:
IsCode
(
84025439
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
...
@@ -87,7 +87,7 @@ function c10424147.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -87,7 +87,7 @@ function c10424147.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c10424147
.
mtfilter
(
c
,
e
)
function
c10424147
.
mtfilter
(
c
,
e
)
return
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
end
end
function
c10424147
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10424147
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
c11221418.lua
View file @
9bdb0bf4
...
@@ -129,7 +129,7 @@ function c11221418.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -129,7 +129,7 @@ function c11221418.spop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
local
mc
=
Duel
.
GetFirstTarget
()
local
mc
=
Duel
.
GetFirstTarget
()
if
tc
:
GetFlagEffect
(
11221418
)
~=
0
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
tc
:
GetFlagEffect
(
11221418
)
~=
0
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
mc
and
mc
:
IsRelateToEffect
(
e
)
then
if
mc
and
mc
:
IsRelateToEffect
(
e
)
and
mc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
mc
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
mc
))
end
end
end
end
...
...
c11510448.lua
View file @
9bdb0bf4
...
@@ -69,10 +69,13 @@ function c11510448.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -69,10 +69,13 @@ function c11510448.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c11510448
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c11510448
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
end
end
function
c11510448
.
opfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsCanOverlay
()
end
function
c11510448
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11510448
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
tc1
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
):
GetFirst
()
local
tc1
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_MZONE
):
GetFirst
()
local
g2
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
local
g2
=
g
:
Filter
(
c11510448
.
opfilter
,
nil
)
if
tc1
and
tc1
:
IsFaceup
()
and
not
tc1
:
IsImmuneToEffect
(
e
)
and
g2
:
GetCount
()
>
0
then
if
tc1
and
tc1
:
IsFaceup
()
and
not
tc1
:
IsImmuneToEffect
(
e
)
and
g2
:
GetCount
()
>
0
then
Duel
.
Overlay
(
tc1
,
g2
)
Duel
.
Overlay
(
tc1
,
g2
)
end
end
...
...
c11646785.lua
View file @
9bdb0bf4
...
@@ -77,10 +77,14 @@ function c11646785.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -77,10 +77,14 @@ function c11646785.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c11646785
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11646785
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11646785
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c11646785
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
mg
=
g
:
GetFirst
():
GetOverlayGroup
()
if
mg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
mg
,
REASON_RULE
)
end
Duel
.
Overlay
(
c
,
g
)
Duel
.
Overlay
(
c
,
g
)
end
end
end
end
c12615446.lua
View file @
9bdb0bf4
...
@@ -75,7 +75,7 @@ end
...
@@ -75,7 +75,7 @@ end
function
c12615446
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12615446
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
c
,
tc
)
Duel
.
Overlay
(
c
,
tc
)
end
end
end
end
c12744567.lua
View file @
9bdb0bf4
...
@@ -38,7 +38,7 @@ end
...
@@ -38,7 +38,7 @@ end
function
c12744567
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12744567
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
og
=
tc
:
GetOverlayGroup
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c14602126.lua
View file @
9bdb0bf4
...
@@ -33,7 +33,7 @@ function c14602126.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +33,7 @@ function c14602126.activate(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
lc
=
tg
:
GetFirst
()
local
lc
=
tg
:
GetFirst
()
if
lc
==
tc
then
lc
=
tg
:
GetNext
()
end
if
lc
==
tc
then
lc
=
tg
:
GetNext
()
end
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
tp
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
lc
:
IsRelateToEffect
(
e
)
and
lc
:
IsControler
(
1
-
tp
)
and
not
lc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
tp
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
lc
:
IsRelateToEffect
(
e
)
and
lc
:
IsControler
(
1
-
tp
)
and
lc
:
IsType
(
TYPE_MONSTER
)
and
not
lc
:
IsImmuneToEffect
(
e
)
then
local
og
=
lc
:
GetOverlayGroup
()
local
og
=
lc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c15092394.lua
View file @
9bdb0bf4
...
@@ -70,7 +70,7 @@ function c15092394.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,7 +70,7 @@ function c15092394.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
c
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
...
...
c18678554.lua
View file @
9bdb0bf4
...
@@ -59,7 +59,7 @@ function c18678554.matop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +59,7 @@ function c18678554.matop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_GRAVE
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_GRAVE
)
if
aux
.
NecroValleyNegateCheck
(
g
)
then
return
end
if
aux
.
NecroValleyNegateCheck
(
g
)
then
return
end
local
tg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tg
=
g
:
FilterSelect
(
tp
,
Card
.
IsCanOverlay
,
1
,
1
,
nil
)
if
#
tg
>
0
then
if
#
tg
>
0
then
Duel
.
Overlay
(
tc
,
tg
)
Duel
.
Overlay
(
tc
,
tg
)
end
end
...
...
c19272658.lua
View file @
9bdb0bf4
...
@@ -35,6 +35,9 @@ end
...
@@ -35,6 +35,9 @@ end
function
c19272658
.
ovfilter
(
c
)
function
c19272658
.
ovfilter
(
c
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsFaceup
()
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsFaceup
()
end
end
function
c19272658
.
ovfilter2
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanOverlay
()
end
function
c19272658
.
ovtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c19272658
.
ovtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c19272658
.
ovfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c19272658
.
ovfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c19272658
.
ovfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c19272658
.
ovfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
@@ -45,8 +48,8 @@ function c19272658.ovtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,8 +48,8 @@ function c19272658.ovtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c19272658
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c19272658
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
Card
.
IsType
),
tp
,
0
,
LOCATION_GRAVE
,
nil
,
TYPE_MONSTER
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c19272658
.
ovfilter2
),
tp
,
0
,
LOCATION_GRAVE
,
nil
)
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
and
g
:
GetCount
()
>
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Overlay
(
tc
,
sg
)
Duel
.
Overlay
(
tc
,
sg
)
...
...
c19310321.lua
View file @
9bdb0bf4
...
@@ -29,10 +29,13 @@ function c19310321.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -29,10 +29,13 @@ function c19310321.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c19310321
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c19310321
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g2
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g2
,
2
,
0
,
0
)
end
end
function
c19310321
.
ovfilter
(
c
,
e
)
return
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
end
function
c19310321
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c19310321
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
tc
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c19310321
.
ovfilter
,
tc
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Overlay
(
tc
,
g
)
Duel
.
Overlay
(
tc
,
g
)
end
end
...
...
c1992816.lua
View file @
9bdb0bf4
...
@@ -59,10 +59,13 @@ function c1992816.oltg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -59,10 +59,13 @@ function c1992816.oltg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c1992816
.
matfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c1992816
.
matfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
2
,
0
,
0
)
end
end
function
c1992816
.
olfilter
(
c
,
e
)
return
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
end
function
c1992816
.
olop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1992816
.
olop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c1992816
.
olfilter
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Overlay
(
c
,
g
)
Duel
.
Overlay
(
c
,
g
)
end
end
...
...
c20424878.lua
View file @
9bdb0bf4
...
@@ -58,7 +58,7 @@ end
...
@@ -58,7 +58,7 @@ end
function
c20424878
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20424878
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
then
local
og
=
c
:
GetOverlayGroup
()
local
og
=
c
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c23689428.lua
View file @
9bdb0bf4
...
@@ -44,7 +44,7 @@ end
...
@@ -44,7 +44,7 @@ end
function
c23689428
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23689428
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
...
...
c24434049.lua
View file @
9bdb0bf4
...
@@ -53,9 +53,12 @@ function s.gmattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -53,9 +53,12 @@ function s.gmattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
gmattgfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
2
,
nil
,
c
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
gmattgfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
2
,
nil
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
#
g
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
#
g
,
0
,
0
)
end
end
function
s
.
gmafilter
(
c
,
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
end
function
s
.
gmatop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
gmatop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetTargetsRelateToChain
():
Filter
(
aux
.
NOT
(
Card
.
IsImmuneToEffect
)
,
nil
,
e
)
local
g
=
Duel
.
GetTargetsRelateToChain
():
Filter
(
s
.
gmafilter
,
nil
,
e
)
if
c
:
IsRelateToChain
()
and
#
g
>
0
then
if
c
:
IsRelateToChain
()
and
#
g
>
0
then
Duel
.
Overlay
(
c
,
g
)
Duel
.
Overlay
(
c
,
g
)
end
end
...
@@ -72,7 +75,7 @@ end
...
@@ -72,7 +75,7 @@ end
function
s
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
re
:
GetHandler
()
local
tc
=
re
:
GetHandler
()
if
c
:
IsRelateToChain
()
and
tc
:
IsRelateToChain
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToChain
()
and
tc
:
IsRelateToChain
()
and
tc
:
IsCanOverlay
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
tc
:
CancelToGrave
()
tc
:
CancelToGrave
()
Duel
.
Overlay
(
c
,
tc
)
Duel
.
Overlay
(
c
,
tc
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
...
...
c24701066.lua
View file @
9bdb0bf4
...
@@ -76,7 +76,7 @@ end
...
@@ -76,7 +76,7 @@ end
function
c24701066
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24701066
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
c
,
tc
)
Duel
.
Overlay
(
c
,
tc
)
end
end
end
end
...
...
c25550531.lua
View file @
9bdb0bf4
...
@@ -65,7 +65,7 @@ function s.sptgexfilter(c,e,tp,code)
...
@@ -65,7 +65,7 @@ function s.sptgexfilter(c,e,tp,code)
and
c
:
IsType
(
TYPE_XYZ
)
and
sc
:
IsCanBeXyzMaterial
(
c
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sc
,
c
)
>
0
and
c
:
IsType
(
TYPE_XYZ
)
and
sc
:
IsCanBeXyzMaterial
(
c
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sc
,
c
)
>
0
end
end
function
s
.
sptgfilter
(
c
,
e
,
tp
)
function
s
.
sptgfilter
(
c
,
e
,
tp
)
return
not
c
:
IsPublic
()
and
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsSetCard
(
0x18c
)
return
not
c
:
IsPublic
()
and
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsSetCard
(
0x18c
)
and
c
:
IsCanOverlay
()
and
Duel
.
IsExistingMatchingCard
(
s
.
sptgexfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
s
.
sptgexfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -89,5 +89,5 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -89,5 +89,5 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
if
not
sc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
g
)
end
if
not
sc
:
IsImmuneToEffect
(
e
)
and
sc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
tc
,
g
)
end
end
end
c2609443.lua
View file @
9bdb0bf4
...
@@ -63,7 +63,7 @@ function c2609443.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,7 +63,7 @@ function c2609443.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
math.ceil
(
atk
/
2
))
e1
:
SetValue
(
math.ceil
(
atk
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
ac
:
RegisterEffect
(
e1
)
ac
:
RegisterEffect
(
e1
)
if
not
ac
:
IsHasEffect
(
EFFECT_REVERSE_UPDATE
)
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
if
not
ac
:
IsHasEffect
(
EFFECT_REVERSE_UPDATE
)
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Overlay
(
e
:
GetHandler
(),
tc
)
Duel
.
Overlay
(
e
:
GetHandler
(),
tc
)
end
end
...
...
c26708437.lua
View file @
9bdb0bf4
...
@@ -26,7 +26,7 @@ end
...
@@ -26,7 +26,7 @@ end
function
c26708437
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c26708437
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
c
:
CancelToGrave
()
c
:
CancelToGrave
()
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
...
...
c27068117.lua
View file @
9bdb0bf4
...
@@ -32,7 +32,7 @@ end
...
@@ -32,7 +32,7 @@ end
function
c27068117
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27068117
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
then
c
:
CancelToGrave
()
c
:
CancelToGrave
()
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
...
...
c28770951.lua
View file @
9bdb0bf4
...
@@ -38,7 +38,7 @@ end
...
@@ -38,7 +38,7 @@ end
function
c28770951
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28770951
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
...
...
c29599813.lua
View file @
9bdb0bf4
...
@@ -66,7 +66,7 @@ end
...
@@ -66,7 +66,7 @@ end
function
s
.
xop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
xop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
tc
:
CancelToGrave
()
tc
:
CancelToGrave
()
local
og
=
tc
:
GetOverlayGroup
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
...
...
c29601381.lua
View file @
9bdb0bf4
...
@@ -52,7 +52,7 @@ end
...
@@ -52,7 +52,7 @@ end
function
c29601381
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29601381
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
local
og
=
c
:
GetOverlayGroup
()
local
og
=
c
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c30761649.lua
View file @
9bdb0bf4
...
@@ -73,7 +73,7 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,7 +73,7 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
~=
2
then
return
end
if
#
g
~=
2
then
return
end
local
tc1
=
e
:
GetLabelObject
()
local
tc1
=
e
:
GetLabelObject
()
local
tc2
=
g
:
Filter
(
Card
.
IsControler
,
tc1
,
1
-
tp
):
GetFirst
()
local
tc2
=
g
:
Filter
(
Card
.
IsControler
,
tc1
,
1
-
tp
):
GetFirst
()
if
tc1
:
IsType
(
TYPE_XYZ
)
and
not
tc1
:
IsImmuneToEffect
(
e
)
and
tc2
and
not
tc2
:
IsImmuneToEffect
(
e
)
then
if
tc1
:
IsType
(
TYPE_XYZ
)
and
tc1
:
IsFaceup
()
and
not
tc1
:
IsImmuneToEffect
(
e
)
and
tc2
and
not
tc2
:
IsImmuneToEffect
(
e
)
and
tc2
:
IsControler
(
1
-
tp
)
and
tc2
:
IsType
(
TYPE_MONSTER
)
then
local
og
=
tc2
:
GetOverlayGroup
()
local
og
=
tc2
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c31755044.lua
View file @
9bdb0bf4
...
@@ -35,7 +35,7 @@ end
...
@@ -35,7 +35,7 @@ end
function
c31755044
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31755044
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
...
...
c32245230.lua
View file @
9bdb0bf4
...
@@ -75,7 +75,7 @@ function c32245230.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,7 +75,7 @@ function c32245230.spop(e,tp,eg,ep,ev,re,r,rp)
sc
:
SetMaterial
(
nil
)
sc
:
SetMaterial
(
nil
)
if
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
sc
:
CompleteProcedure
()
sc
:
CompleteProcedure
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
c
))
end
end
end
end
...
...
c32559361.lua
View file @
9bdb0bf4
...
@@ -45,7 +45,7 @@ end
...
@@ -45,7 +45,7 @@ end
function
c32559361
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32559361
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetBattleTarget
()
local
tc
=
c
:
GetBattleTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
tc
:
IsRelateToBattle
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToBattle
()
and
tc
:
IsType
(
TYPE_MONSTER
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsCanOverlay
(
)
then
local
og
=
tc
:
GetOverlayGroup
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c34721681.lua
View file @
9bdb0bf4
...
@@ -70,7 +70,7 @@ function c34721681.posop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,7 +70,7 @@ function c34721681.posop(e,tp,eg,ep,ev,re,r,rp)
if
opt
==
0
then
if
opt
==
0
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
else
else
if
c
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
c
)
Duel
.
Overlay
(
tc
,
c
)
end
end
end
end
...
...
c34876719.lua
View file @
9bdb0bf4
...
@@ -39,7 +39,7 @@ function c34876719.ovcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,7 +39,7 @@ function c34876719.ovcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c34876719
.
ovfilter
(
c
,
sc
)
function
c34876719
.
ovfilter
(
c
,
sc
)
local
no
=
aux
.
GetXyzNumber
(
c
)
local
no
=
aux
.
GetXyzNumber
(
c
)
return
no
and
no
>=
101
and
no
<=
107
and
c
:
IsSetCard
(
0x48
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeXyzMaterial
(
sc
)
return
no
and
no
>=
101
and
no
<=
107
and
c
:
IsSetCard
(
0x48
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeXyzMaterial
(
sc
)
and
c
:
IsCanOverlay
()
end
end
function
c34876719
.
ovtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c34876719
.
ovtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c34876719
.
ovfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c34876719
.
ovfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
:
GetHandler
())
end
...
...
c39030163.lua
View file @
9bdb0bf4
...
@@ -46,7 +46,7 @@ function c39030163.mttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -46,7 +46,7 @@ function c39030163.mttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetTargetCard
(
tg
)
Duel
.
SetTargetCard
(
tg
)
end
end
function
c39030163
.
matfilter
(
c
,
e
)
function
c39030163
.
matfilter
(
c
,
e
)
return
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
end
end
function
c39030163
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39030163
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c39943352.lua
View file @
9bdb0bf4
...
@@ -50,7 +50,7 @@ end
...
@@ -50,7 +50,7 @@ end
function
c39943352
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39943352
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
then
if
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
...
...
c43841694.lua
View file @
9bdb0bf4
...
@@ -29,11 +29,13 @@ function c43841694.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -29,11 +29,13 @@ function c43841694.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c43841694
.
filter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
2
,
nil
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c43841694
.
filter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g1
,
1
,
0
,
0
)
end
end
function
c43841694
.
ovfilter
(
c
,
e
)
return
c
:
IsRelateToEffect
(
e
)
and
c
:
IsSetCard
(
0x106e
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsCanOverlay
()
end
function
c43841694
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43841694
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
sg
:
RemoveCard
(
tc
)
local
sg
=
g
:
Filter
(
c43841694
.
ovfilter
,
tc
,
e
)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
sg
:
GetCount
()
>
0
then
if
sg
:
GetCount
()
>
0
then
...
...
c46060017.lua
View file @
9bdb0bf4
...
@@ -74,7 +74,7 @@ end
...
@@ -74,7 +74,7 @@ end
function
c46060017
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c46060017
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
c46261704.lua
View file @
9bdb0bf4
...
@@ -53,7 +53,7 @@ function c46261704.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +53,7 @@ function c46261704.spop(e,tp,eg,ep,ev,re,r,rp)
local
mg
=
Duel
.
GetMatchingGroup
(
c46261704
.
mfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
c46261704
.
mfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
Duel
.
ChangeAttackTarget
(
tc
)
and
mg
:
GetCount
()
>
0
if
Duel
.
ChangeAttackTarget
(
tc
)
and
mg
:
GetCount
()
>
0
and
c
:
IsRelateToChain
()
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
aux
.
NecroValleyFilter
()(
c
)
and
c
:
IsRelateToChain
()
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
aux
.
NecroValleyFilter
()(
c
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
46261704
,
2
))
then
and
c
:
IsCanOverlay
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
46261704
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
sc
=
mg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
sc
=
mg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
...
...
c46576366.lua
View file @
9bdb0bf4
...
@@ -51,7 +51,7 @@ end
...
@@ -51,7 +51,7 @@ end
function
c46576366
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c46576366
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
c4820694.lua
View file @
9bdb0bf4
...
@@ -71,10 +71,13 @@ function c4820694.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -71,10 +71,13 @@ function c4820694.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c4820694
.
mfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c4820694
.
mfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g2
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g2
,
1
,
0
,
0
)
end
end
function
c4820694
.
matfilter
(
c
,
e
)
return
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
end
function
c4820694
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4820694
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
tc
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c4820694
.
matfilter
,
tc
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Overlay
(
tc
,
g
)
Duel
.
Overlay
(
tc
,
g
)
end
end
...
...
c48739166.lua
View file @
9bdb0bf4
...
@@ -40,7 +40,7 @@ end
...
@@ -40,7 +40,7 @@ end
function
c48739166
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c48739166
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsCanOverlay
()
then
local
og
=
tc
:
GetOverlayGroup
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c49033797.lua
View file @
9bdb0bf4
...
@@ -45,7 +45,7 @@ function c49033797.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +45,7 @@ function c49033797.activate(e,tp,eg,ep,ev,re,r,rp)
if
sc
then
if
sc
then
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
c
:
CancelToGrave
()
c
:
CancelToGrave
()
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
c
))
end
end
...
...
c52645235.lua
View file @
9bdb0bf4
...
@@ -74,7 +74,7 @@ end
...
@@ -74,7 +74,7 @@ end
function
s
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
re
:
GetHandler
()
local
tc
=
re
:
GetHandler
()
if
c
:
IsRelateToChain
()
and
tc
:
IsRelateToChain
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToChain
()
and
tc
:
IsRelateToChain
()
and
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
tc
:
CancelToGrave
()
tc
:
CancelToGrave
()
Duel
.
Overlay
(
c
,
tc
)
Duel
.
Overlay
(
c
,
tc
)
if
Duel
.
IsExistingMatchingCard
(
s
.
rthfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
s
.
rthfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
...
...
c53334641.lua
View file @
9bdb0bf4
...
@@ -72,7 +72,7 @@ function c53334641.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -72,7 +72,7 @@ function c53334641.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c53334641
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53334641
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c53334641
.
mtfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c53334641
.
mtfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c55285840.lua
View file @
9bdb0bf4
...
@@ -34,8 +34,13 @@ function c55285840.matop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,8 +34,13 @@ function c55285840.matop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
1
)
if
c
:
IsRelateToEffect
(
e
)
and
g
:
GetCount
()
==
1
then
if
c
:
IsRelateToEffect
(
e
)
and
g
:
GetCount
()
==
1
then
local
tc
=
g
:
GetFirst
()
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
Duel
.
Overlay
(
c
,
g
)
if
tc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
c
,
g
)
else
Duel
.
SendtoGrave
(
g
,
REASON_RULE
)
end
end
end
end
end
function
c55285840
.
tgfilter
(
c
)
function
c55285840
.
tgfilter
(
c
)
...
...
c55470553.lua
View file @
9bdb0bf4
...
@@ -61,7 +61,7 @@ function c55470553.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,7 +61,7 @@ function c55470553.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
~=
0
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
~=
0
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsCanOverlay
()
then
local
og
=
tc
:
GetOverlayGroup
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c56818977.lua
View file @
9bdb0bf4
...
@@ -59,7 +59,7 @@ end
...
@@ -59,7 +59,7 @@ end
function
c56818977
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56818977
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
local
og
=
c
:
GetOverlayGroup
()
local
og
=
c
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c57031794.lua
View file @
9bdb0bf4
...
@@ -74,10 +74,14 @@ function c57031794.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -74,10 +74,14 @@ function c57031794.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c57031794
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c57031794
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c57031794
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c57031794
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
mg
=
g
:
GetFirst
():
GetOverlayGroup
()
if
mg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
mg
,
REASON_RULE
)
end
Duel
.
Overlay
(
c
,
g
)
Duel
.
Overlay
(
c
,
g
)
end
end
end
end
c57450198.lua
View file @
9bdb0bf4
...
@@ -85,10 +85,14 @@ function c57450198.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -85,10 +85,14 @@ function c57450198.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c57450198
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c57450198
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c57450198
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c57450198
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
mg
=
g
:
GetFirst
():
GetOverlayGroup
()
if
mg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
mg
,
REASON_RULE
)
end
Duel
.
Overlay
(
c
,
g
)
Duel
.
Overlay
(
c
,
g
)
end
end
end
end
c5916510.lua
View file @
9bdb0bf4
...
@@ -64,7 +64,7 @@ function c5916510.ovop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,7 +64,7 @@ function c5916510.ovop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
Is
Faceup
(
)
then
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
Is
Type
(
TYPE_MONSTER
)
then
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
end
end
end
end
c60195675.lua
View file @
9bdb0bf4
...
@@ -66,7 +66,7 @@ end
...
@@ -66,7 +66,7 @@ end
function
c60195675
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60195675
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
c
,
tc
)
Duel
.
Overlay
(
c
,
tc
)
end
end
end
end
...
...
c60944809.lua
View file @
9bdb0bf4
...
@@ -58,7 +58,7 @@ function c60944809.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -58,7 +58,7 @@ function c60944809.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c60944809
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60944809
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
Is
Faceup
(
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
and
tc
:
Is
Type
(
TYPE_MONSTER
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanOverlay
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanOverlay
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c60954556.lua
View file @
9bdb0bf4
...
@@ -90,7 +90,7 @@ end
...
@@ -90,7 +90,7 @@ end
function
c60954556
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60954556
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
Is
Faceup
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
Is
RelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
(
)
then
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
end
end
end
end
c67331360.lua
View file @
9bdb0bf4
...
@@ -50,7 +50,7 @@ function c67331360.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -50,7 +50,7 @@ function c67331360.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
ft
>
0
and
Duel
.
IsExistingTarget
(
c67331360
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
ft
>
0
and
Duel
.
IsExistingTarget
(
c67331360
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
local
ct
=
math.min
(
2
,
ft
)
local
ct
=
math.min
(
2
,
ft
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
or
not
Duel
.
IsExistingMatchingCard
(
c67331360
.
cfilter
,
tp
,
LOCATION_
MZONE
,
0
,
1
,
nil
)
then
ct
=
1
end
or
not
Duel
.
IsExistingMatchingCard
(
c67331360
.
cfilter
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
nil
)
then
ct
=
1
end
local
g
=
Duel
.
GetMatchingGroup
(
c67331360
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c67331360
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
c67331360
.
gcheck
,
false
,
1
,
ct
,
e
,
tp
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
c67331360
.
gcheck
,
false
,
1
,
ct
,
e
,
tp
)
...
...
c67436768.lua
View file @
9bdb0bf4
...
@@ -59,7 +59,7 @@ end
...
@@ -59,7 +59,7 @@ end
function
c67436768
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67436768
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
local
og
=
c
:
GetOverlayGroup
()
local
og
=
c
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c67865534.lua
View file @
9bdb0bf4
...
@@ -106,7 +106,7 @@ end
...
@@ -106,7 +106,7 @@ end
function
c67865534
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67865534
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
Is
Faceup
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
Is
RelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
(
)
then
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
end
end
end
end
c68250822.lua
View file @
9bdb0bf4
...
@@ -60,7 +60,7 @@ function c68250822.operation1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -60,7 +60,7 @@ function c68250822.operation1(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c68250822
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
tc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c68250822
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
tc
)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
local
tc2
=
g
:
GetFirst
()
local
tc2
=
g
:
GetFirst
()
if
not
tc
:
IsImmuneToEffect
(
e
)
and
not
tc2
:
IsImmuneToEffect
(
e
)
then
if
not
tc
:
IsImmuneToEffect
(
e
)
and
not
tc2
:
IsImmuneToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
local
og
=
tc
:
GetOverlayGroup
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c69073023.lua
View file @
9bdb0bf4
...
@@ -55,7 +55,7 @@ function c69073023.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,7 @@ function c69073023.spop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
==
hc
then
tc
=
g
:
GetNext
()
end
if
tc
==
hc
then
tc
=
g
:
GetNext
()
end
if
hc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
hc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
hc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
hc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
and
tc
:
IsCanOverlay
()
then
local
og
=
tc
:
GetOverlayGroup
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c69217334.lua
View file @
9bdb0bf4
...
@@ -32,7 +32,7 @@ function c69217334.lvfilter(c,tp)
...
@@ -32,7 +32,7 @@ function c69217334.lvfilter(c,tp)
end
end
function
c69217334
.
lvcfilter
(
c
,
mc
)
function
c69217334
.
lvcfilter
(
c
,
mc
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsPublic
()
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsPublic
()
and
(
not
mc
or
not
c
:
IsLevel
(
mc
:
GetLevel
()
))
and
not
c
:
IsLevel
(
mc
:
GetLevel
(
))
end
end
function
c69217334
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c69217334
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c69217334
.
lvfilter
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c69217334
.
lvfilter
(
chkc
,
tp
)
end
...
@@ -43,10 +43,9 @@ end
...
@@ -43,10 +43,9 @@ end
function
c69217334
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69217334
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
ec
=
tc
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
then
ec
=
nil
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c69217334
.
lvcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
c
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c69217334
.
lvcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
t
c
)
if
cg
:
GetCount
()
>
0
then
if
cg
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
local
pc
=
cg
:
GetFirst
()
local
pc
=
cg
:
GetFirst
()
...
...
c69757518.lua
View file @
9bdb0bf4
...
@@ -60,28 +60,47 @@ function c69757518.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -60,28 +60,47 @@ function c69757518.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
end
end
function
c69757518
.
tdfilter
(
c
)
function
c69757518
.
tdfilter
(
c
,
e
)
return
c
:
IsAbleToDeck
()
or
c
:
IsCanOverlay
()
return
c
:
IsCanBeEffectTarget
(
e
)
and
(
c
:
IsAbleToDeck
()
or
c
:
IsCanOverlay
())
end
function
c69757518
.
gcheck
(
g
)
return
g
:
IsExists
(
Card
.
IsCanOverlay
,
1
,
nil
)
end
end
function
c69757518
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c69757518
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
local
g
=
Duel
.
GetMatchingGroup
(
c69757518
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
)
and
Duel
.
IsExistingTarget
(
c69757518
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
2
,
nil
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
g
:
CheckSubGroup
(
c69757518
.
gcheck
,
2
,
2
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c69757518
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
2
,
2
,
nil
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c69757518
.
gcheck
,
false
,
2
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
sg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
sg
,
2
,
0
,
0
)
end
end
function
c69757518
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69757518
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
sg
:
GetCount
()
>
1
then
if
sg
:
GetCount
()
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
HintSelection
(
sg
)
local
sg1
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
elseif
sg
:
GetCount
()
>
1
then
local
og
=
sg
:
Filter
(
Card
.
IsCanOverlay
,
nil
)
local
sg1
=
nil
if
og
:
GetCount
()
==
0
then
return
elseif
og
:
GetCount
()
==
1
then
sg1
=
sg
-
og
elseif
og
:
GetCount
()
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
sg1
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
HintSelection
(
sg1
)
if
Duel
.
SendtoDeck
(
sg1
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SendtoDeck
(
sg1
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
then
sg
:
Sub
(
sg1
)
sg
:
Sub
(
sg1
)
Duel
.
Overlay
(
c
,
sg
)
local
sc
=
sg
:
GetFirst
()
if
sc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
c
,
sg
)
end
end
end
end
end
end
end
c69809989.lua
View file @
9bdb0bf4
...
@@ -62,7 +62,7 @@ function c69809989.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -62,7 +62,7 @@ function c69809989.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c69809989
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69809989
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
Is
Faceup
()
and
tc
:
Is
RelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c69809989
.
mfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c69809989
.
mfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c70597485.lua
View file @
9bdb0bf4
...
@@ -79,6 +79,7 @@ function c70597485.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -79,6 +79,7 @@ function c70597485.thop(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToHand
,
1
,
1
,
nil
)
local
tg
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToHand
,
1
,
1
,
nil
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
end
end
end
end
end
end
c71166481.lua
View file @
9bdb0bf4
...
@@ -61,7 +61,7 @@ end
...
@@ -61,7 +61,7 @@ end
function
c71166481
.
xop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71166481
.
xop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
local
mg
=
c
:
GetOverlayGroup
()
local
mg
=
c
:
GetOverlayGroup
()
if
mg
:
GetCount
()
>
0
then
Duel
.
Overlay
(
tc
,
mg
,
false
)
end
if
mg
:
GetCount
()
>
0
then
Duel
.
Overlay
(
tc
,
mg
,
false
)
end
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
...
...
c72502414.lua
View file @
9bdb0bf4
...
@@ -25,7 +25,7 @@ end
...
@@ -25,7 +25,7 @@ end
function
c72502414
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72502414
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
c73881652.lua
View file @
9bdb0bf4
...
@@ -37,7 +37,7 @@ function c73881652.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -37,7 +37,7 @@ function c73881652.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c73881652
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73881652
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c73881652
.
matfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c73881652
.
matfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c74852810.lua
View file @
9bdb0bf4
...
@@ -32,10 +32,10 @@ function c74852810.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,10 +32,10 @@ function c74852810.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc2
=
g
:
GetFirst
()
local
tc2
=
g
:
GetFirst
()
if
tc1
==
tc2
then
tc2
=
g
:
GetNext
()
end
if
tc1
==
tc2
then
tc2
=
g
:
GetNext
()
end
if
tc1
:
IsFacedown
(
)
or
not
tc1
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc1
:
IsControler
(
1
-
tp
)
or
not
tc1
:
IsRelateToEffect
(
e
)
then
return
end
local
og
=
tc1
:
GetOverlayGroup
()
local
og
=
tc1
:
GetOverlayGroup
()
if
og
:
GetCount
()
==
0
then
return
end
if
og
:
GetCount
()
==
0
then
return
end
if
Duel
.
SendtoGrave
(
og
,
REASON_EFFECT
)
~=
0
and
tc2
:
Is
Faceup
()
and
tc2
:
IsRelateToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SendtoGrave
(
og
,
REASON_EFFECT
)
~=
0
and
tc2
:
Is
Controler
(
tp
)
and
tc2
:
IsRelateToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
(
)
then
c
:
CancelToGrave
()
c
:
CancelToGrave
()
Duel
.
Overlay
(
tc2
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc2
,
Group
.
FromCards
(
c
))
end
end
...
...
c76587747.lua
View file @
9bdb0bf4
...
@@ -31,7 +31,7 @@ function c76587747.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function c76587747.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
NegateActivation
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c76587747
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c76587747
.
cfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
and
not
g
:
GetFirst
():
IsImmuneToEffect
(
e
)
then
if
g
:
GetCount
()
>
0
and
not
g
:
GetFirst
():
IsImmuneToEffect
(
e
)
and
rc
:
IsCanOverlay
()
then
rc
:
CancelToGrave
()
rc
:
CancelToGrave
()
Duel
.
Overlay
(
g
:
GetFirst
(),
Group
.
FromCards
(
rc
))
Duel
.
Overlay
(
g
:
GetFirst
(),
Group
.
FromCards
(
rc
))
end
end
...
...
c78876707.lua
View file @
9bdb0bf4
...
@@ -73,7 +73,7 @@ function c78876707.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,7 +73,7 @@ function c78876707.spop(e,tp,eg,ep,ev,re,r,rp)
tc
:
SetMaterial
(
nil
)
tc
:
SetMaterial
(
nil
)
if
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
...
...
c79094383.lua
View file @
9bdb0bf4
...
@@ -38,7 +38,7 @@ end
...
@@ -38,7 +38,7 @@ end
function
c79094383
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79094383
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
end
end
...
...
c79933029.lua
View file @
9bdb0bf4
...
@@ -48,7 +48,7 @@ function s.sptgexfilter(c,e,tp,code)
...
@@ -48,7 +48,7 @@ function s.sptgexfilter(c,e,tp,code)
and
c
:
IsType
(
TYPE_XYZ
)
and
sc
:
IsCanBeXyzMaterial
(
c
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sc
,
c
)
>
0
and
c
:
IsType
(
TYPE_XYZ
)
and
sc
:
IsCanBeXyzMaterial
(
c
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sc
,
c
)
>
0
end
end
function
s
.
sptgfilter
(
c
,
e
,
tp
)
function
s
.
sptgfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsSetCard
(
0x18c
)
return
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsSetCard
(
0x18c
)
and
c
:
IsCanOverlay
()
and
Duel
.
IsExistingMatchingCard
(
s
.
sptgexfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
s
.
sptgexfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
@@ -74,5 +74,5 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,5 +74,5 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Overlay
(
tc
,
c
)
Duel
.
Overlay
(
tc
,
c
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
if
not
sc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Overlay
(
tc
,
sc
)
end
if
not
sc
:
IsImmuneToEffect
(
e
)
and
sc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
tc
,
sc
)
end
end
end
c83203672.lua
View file @
9bdb0bf4
...
@@ -38,7 +38,7 @@ end
...
@@ -38,7 +38,7 @@ end
function
c83203672
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83203672
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
local
og
=
c
:
GetOverlayGroup
()
local
og
=
c
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
...
...
c83319610.lua
View file @
9bdb0bf4
...
@@ -48,6 +48,10 @@ function c83319610.mtop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,6 +48,10 @@ function c83319610.mtop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83319610
.
filter2
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
tc
,
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83319610
.
filter2
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
tc
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
mg
=
g
:
GetFirst
():
GetOverlayGroup
()
if
mg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
mg
,
REASON_RULE
)
end
Duel
.
Overlay
(
tc
,
g
)
Duel
.
Overlay
(
tc
,
g
)
end
end
end
end
...
...
c83888009.lua
View file @
9bdb0bf4
...
@@ -65,7 +65,7 @@ function c83888009.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,7 +65,7 @@ function c83888009.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c83888009
.
ovfilter
(
c
)
function
c83888009
.
ovfilter
(
c
)
local
no
=
aux
.
GetXyzNumber
(
c
)
local
no
=
aux
.
GetXyzNumber
(
c
)
return
no
and
no
>=
101
and
no
<=
107
and
c
:
IsType
(
TYPE_XYZ
)
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
return
no
and
no
>=
101
and
no
<=
107
and
c
:
IsType
(
TYPE_XYZ
)
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsCanOverlay
()
end
end
function
c83888009
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83888009
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
83888009
)
Duel
.
Hint
(
HINT_CARD
,
0
,
83888009
)
...
...
c85252081.lua
View file @
9bdb0bf4
...
@@ -77,10 +77,14 @@ function c85252081.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -77,10 +77,14 @@ function c85252081.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c85252081
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c85252081
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c85252081
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c85252081
.
mtfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
mg
=
g
:
GetFirst
():
GetOverlayGroup
()
if
mg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
mg
,
REASON_RULE
)
end
Duel
.
Overlay
(
c
,
g
)
Duel
.
Overlay
(
c
,
g
)
end
end
end
end
c8696773.lua
View file @
9bdb0bf4
...
@@ -70,7 +70,7 @@ end
...
@@ -70,7 +70,7 @@ end
function
c8696773
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8696773
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
end
end
end
end
c8809344.lua
View file @
9bdb0bf4
...
@@ -59,7 +59,7 @@ end
...
@@ -59,7 +59,7 @@ end
function
c8809344
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8809344
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
local
og
=
c
:
GetOverlayGroup
()
local
og
=
c
:
GetOverlayGroup
()
if
og
:
GetCount
()
==
0
then
return
end
if
og
:
GetCount
()
==
0
then
return
end
Duel
.
SendtoGrave
(
og
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
og
,
REASON_EFFECT
)
...
...
c89928517.lua
View file @
9bdb0bf4
...
@@ -31,7 +31,7 @@ function c89928517.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function c89928517.operation(e,tp,eg,ep,ev,re,r,rp)
local
p
=
tp
local
p
=
tp
while
i
<=
1
do
while
i
<=
1
do
local
tc
=
tg
:
Filter
(
Card
.
IsControler
,
nil
,
p
):
GetFirst
()
local
tc
=
tg
:
Filter
(
Card
.
IsControler
,
nil
,
p
):
GetFirst
()
if
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
)
>
0
if
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
,
p
)
>
0
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
p
,
false
,
false
)
and
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
p
,
false
,
false
)
and
Duel
.
SelectYesNo
(
p
,
aux
.
Stringid
(
89928517
,
1
))
then
and
Duel
.
SelectYesNo
(
p
,
aux
.
Stringid
(
89928517
,
1
))
then
Duel
.
SpecialSummonStep
(
tc
,
0
,
p
,
p
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
tc
,
0
,
p
,
p
,
false
,
false
,
POS_FACEUP
)
...
...
c90126061.lua
View file @
9bdb0bf4
...
@@ -68,7 +68,7 @@ end
...
@@ -68,7 +68,7 @@ end
function
c90126061
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90126061
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
Is
Faceup
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
Is
RelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
(
)
then
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
end
end
end
end
...
...
c92015800.lua
View file @
9bdb0bf4
...
@@ -82,7 +82,7 @@ end
...
@@ -82,7 +82,7 @@ end
function
c92015800
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c92015800
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
end
end
end
end
c9349094.lua
View file @
9bdb0bf4
...
@@ -48,7 +48,7 @@ function c9349094.ovop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c9349094.ovop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
end
end
end
end
...
...
c96142517.lua
View file @
9bdb0bf4
...
@@ -74,7 +74,8 @@ function c96142517.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,7 +74,8 @@ function c96142517.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c96142517
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
rk
+
1
,
tg
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c96142517
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
rk
+
1
,
tg
)
local
sc
=
g
:
GetFirst
()
local
sc
=
g
:
GetFirst
()
if
sc
then
if
sc
then
Duel
.
Overlay
(
sc
,
mg
)
local
og
=
mg
:
Filter
(
Card
.
IsCanOverlay
,
nil
)
Duel
.
Overlay
(
sc
,
og
)
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
c97584719.lua
View file @
9bdb0bf4
...
@@ -74,7 +74,7 @@ end
...
@@ -74,7 +74,7 @@ end
function
c97584719
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97584719
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
Duel
.
Overlay
(
c
,
tc
)
Duel
.
Overlay
(
c
,
tc
)
end
end
end
end
...
...
c98049934.lua
View file @
9bdb0bf4
...
@@ -70,7 +70,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,7 +70,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
matcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
matcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
rp
==
tp
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
rp
==
tp
and
re
:
IsActiveType
(
TYPE_QUICKPLAY
)
and
re
:
GetHandler
():
IsSetCard
(
0x18c
)
and
re
:
IsActiveType
(
TYPE_QUICKPLAY
)
and
re
:
GetHandler
():
IsSetCard
(
0x18c
)
and
re
:
GetHandler
():
IsCanOverlay
()
end
end
function
s
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
re
:
GetHandler
():
IsCanOverlay
()
end
if
chk
==
0
then
return
re
:
GetHandler
():
IsCanOverlay
()
end
...
@@ -80,7 +80,7 @@ end
...
@@ -80,7 +80,7 @@ end
function
s
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
matop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
re
:
GetHandler
()
local
tc
=
re
:
GetHandler
()
if
c
:
IsRelateToChain
()
and
tc
:
IsRelateToChain
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToChain
()
and
tc
:
IsRelateToChain
()
and
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsCanOverlay
()
then
tc
:
CancelToGrave
()
tc
:
CancelToGrave
()
Duel
.
Overlay
(
c
,
tc
)
Duel
.
Overlay
(
c
,
tc
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
...
...
c99397762.lua
View file @
9bdb0bf4
...
@@ -23,7 +23,7 @@ end
...
@@ -23,7 +23,7 @@ end
function
c99397762
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99397762
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsCanOverlay
()
then
c
:
CancelToGrave
()
c
:
CancelToGrave
()
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
--
--
...
...
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