Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
Reinen
ygopro-scripts
Commits
32feab20
Commit
32feab20
authored
Apr 16, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8a912b7d
Changes
62
Show whitespace changes
Inline
Side-by-side
Showing
62 changed files
with
406 additions
and
297 deletions
+406
-297
c1003840.lua
c1003840.lua
+6
-4
c11067666.lua
c11067666.lua
+1
-1
c13361027.lua
c13361027.lua
+6
-5
c16960351.lua
c16960351.lua
+6
-4
c1896112.lua
c1896112.lua
+6
-5
c19221310.lua
c19221310.lua
+10
-5
c19580308.lua
c19580308.lua
+7
-7
c20368763.lua
c20368763.lua
+8
-4
c20663556.lua
c20663556.lua
+7
-4
c22431243.lua
c22431243.lua
+8
-4
c23408872.lua
c23408872.lua
+8
-4
c27178262.lua
c27178262.lua
+6
-6
c28529976.lua
c28529976.lua
+7
-6
c28553439.lua
c28553439.lua
+6
-5
c286392.lua
c286392.lua
+8
-4
c2903036.lua
c2903036.lua
+7
-4
c29432356.lua
c29432356.lua
+7
-4
c33909817.lua
c33909817.lua
+7
-6
c35149085.lua
c35149085.lua
+6
-6
c36734924.lua
c36734924.lua
+7
-6
c36857073.lua
c36857073.lua
+7
-4
c37507488.lua
c37507488.lua
+6
-6
c43040603.lua
c43040603.lua
+7
-3
c44928016.lua
c44928016.lua
+7
-6
c48686504.lua
c48686504.lua
+6
-5
c48964966.lua
c48964966.lua
+7
-6
c5037726.lua
c5037726.lua
+8
-4
c50766506.lua
c50766506.lua
+5
-3
c59388357.lua
c59388357.lua
+5
-5
c60417395.lua
c60417395.lua
+6
-6
c60666820.lua
c60666820.lua
+7
-7
c63487632.lua
c63487632.lua
+6
-4
c64034255.lua
c64034255.lua
+6
-6
c65282484.lua
c65282484.lua
+8
-4
c66200210.lua
c66200210.lua
+8
-4
c67757079.lua
c67757079.lua
+6
-5
c68812773.lua
c68812773.lua
+8
-4
c70156997.lua
c70156997.lua
+9
-5
c70861343.lua
c70861343.lua
+5
-4
c72491806.lua
c72491806.lua
+6
-6
c72855441.lua
c72855441.lua
+6
-6
c73146473.lua
c73146473.lua
+7
-4
c73694478.lua
c73694478.lua
+6
-6
c74926274.lua
c74926274.lua
+5
-5
c76473843.lua
c76473843.lua
+6
-5
c78794994.lua
c78794994.lua
+6
-6
c81254059.lua
c81254059.lua
+7
-6
c8240199.lua
c8240199.lua
+6
-6
c876330.lua
c876330.lua
+6
-5
c904185.lua
c904185.lua
+6
-5
c9047460.lua
c9047460.lua
+7
-4
c90960358.lua
c90960358.lua
+7
-3
c91422370.lua
c91422370.lua
+6
-5
c91842653.lua
c91842653.lua
+7
-3
c9190563.lua
c9190563.lua
+7
-4
c94145683.lua
c94145683.lua
+5
-4
c94801854.lua
c94801854.lua
+8
-4
c95772051.lua
c95772051.lua
+6
-5
c96782886.lua
c96782886.lua
+8
-6
c96965364.lua
c96965364.lua
+5
-3
c98045062.lua
c98045062.lua
+6
-5
c98280324.lua
c98280324.lua
+6
-6
No files found.
c1003840.lua
View file @
32feab20
...
...
@@ -29,22 +29,24 @@ function c1003840.initial_effect(c)
e3
:
SetOperation
(
c1003840
.
thop
)
c
:
RegisterEffect
(
e3
)
end
function
c1003840
.
cfilter
(
c
,
e
,
tp
)
function
c1003840
.
cfilter
(
c
,
e
,
tp
,
ft
)
local
lv
=
c
:
GetLevel
()
return
lv
>
0
and
c
:
IsType
(
TYPE_TUNER
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c1003840
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
lv
)
end
function
c1003840
.
spfilter
(
c
,
e
,
tp
,
lv
)
return
c
:
IsSetCard
(
0x1017
)
and
c
:
GetLevel
()
~=
lv
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c1003840
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c1003840
.
cfilter
,
1
,
nil
,
e
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c1003840
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c1003840
.
cfilter
,
1
,
nil
,
e
,
tp
,
ft
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c1003840
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
e
:
SetLabel
(
g
:
GetFirst
():
GetLevel
())
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c1003840
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c1003840
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c11067666.lua
View file @
32feab20
...
...
@@ -35,7 +35,7 @@ function c11067666.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c11067666
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c11067666
.
rmcon
(
e
)
local
c
=
e
:
GetHandler
()
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
and
c
:
IsReason
(
REASON_MATERIAL
)
and
c
:
IsReason
(
REASON_SYNCHRO
)
end
c13361027.lua
View file @
32feab20
...
...
@@ -13,12 +13,14 @@ function c13361027.initial_effect(c)
e1
:
SetOperation
(
c13361027
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c13361027
.
cfilter
(
c
)
function
c13361027
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsSetCard
(
0x29
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c13361027
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c13361027
.
cfilter
,
1
,
nil
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c13361027
.
cfilter
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c13361027
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c13361027
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
rg
,
REASON_COST
)
end
function
c13361027
.
filter
(
c
,
e
,
sp
)
...
...
@@ -26,8 +28,7 @@ function c13361027.filter(c,e,sp)
end
function
c13361027
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c13361027
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c13361027
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c13361027
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c13361027
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c16960351.lua
View file @
32feab20
...
...
@@ -17,23 +17,25 @@ function c16960351.initial_effect(c)
e2
:
SetOperation
(
c16960351
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
c16960351
.
rfilter
(
c
,
e
,
tp
)
function
c16960351
.
rfilter
(
c
,
e
,
tp
,
ft
)
local
lv
=
c
:
GetOriginalLevel
()
return
lv
>
0
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsReleasable
()
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c16960351
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
lv
)
end
function
c16960351
.
spfilter
(
c
,
e
,
tp
,
lv
)
return
c
:
GetLevel
()
==
lv
and
c
:
IsRace
(
RACE_WYRM
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c16960351
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c16960351
.
rfilter
,
1
,
nil
,
e
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c16960351
.
rfilter
,
1
,
1
,
nil
,
e
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c16960351
.
rfilter
,
1
,
nil
,
e
,
tp
,
ft
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c16960351
.
rfilter
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
local
tc
=
g
:
GetFirst
()
e
:
SetLabel
(
tc
:
GetOriginalLevel
())
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c16960351
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c16960351
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c1896112.lua
View file @
32feab20
...
...
@@ -11,13 +11,14 @@ function c1896112.initial_effect(c)
e1
:
SetOperation
(
c1896112
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c1896112
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAbleToExtraAsCost
()
function
c1896112
.
cfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAbleToExtraAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c1896112
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1896112
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c1896112
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1896112
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c1896112
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_COST
)
end
function
c1896112
.
filter
(
c
,
e
,
tp
)
...
...
@@ -25,7 +26,7 @@ function c1896112.filter(c,e,tp)
end
function
c1896112
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c1896112
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingTarget
(
c1896112
.
filter
,
1
-
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
1
-
tp
)
end
local
ft1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
...
...
c19221310.lua
View file @
32feab20
...
...
@@ -21,18 +21,23 @@ function c19221310.initial_effect(c)
e2
:
SetOperation
(
c19221310
.
desop
)
c
:
RegisterEffect
(
e2
)
end
function
c19221310
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c19221310
.
filter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
c
)
end
function
c19221310
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_LIGHT
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsAttribute
,
1
,
1
,
nil
,
ATTRIBUTE_LIGHT
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c19221310
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c19221310
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c19221310
.
filter
(
c
)
return
c
:
IsCode
(
53025096
)
and
c
:
IsAbleToGrave
()
and
(
c
:
IsLocation
(
LOCATION_HAND
+
LOCATION_DECK
)
or
c
:
IsFaceup
())
end
function
c19221310
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c19221310
.
filter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
...
...
c19580308.lua
View file @
32feab20
...
...
@@ -12,21 +12,21 @@ function c19580308.initial_effect(c)
e1
:
SetOperation
(
c19580308
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c19580308
.
cfilter
(
c
)
function
c19580308
.
cfilter
(
c
,
ft
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
(
c
:
IsSetCard
(
0xaf
)
or
c
:
IsSetCard
(
0xae
))
and
not
c
:
IsCode
(
19580308
)
and
c
:
IsAbleToGraveAsCost
()
and
not
c
:
IsCode
(
19580308
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c19580308
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
loc
=
LOCATION_HAND
+
LOCATION_ONFIELD
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
==
0
then
loc
=
LOCATION_MZONE
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c19580308
.
cfilter
,
tp
,
loc
,
0
,
1
,
nil
)
end
if
ft
==
0
then
loc
=
LOCATION_MZONE
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c19580308
.
cfilter
,
tp
,
loc
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c19580308
.
cfilter
,
tp
,
loc
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c19580308
.
cfilter
,
tp
,
loc
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c19580308
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c19580308
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c20368763.lua
View file @
32feab20
...
...
@@ -70,17 +70,21 @@ function c20368763.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c20368763
.
spcfilter
(
c
,
ft
,
tp
)
return
c
:
IsType
(
TYPE_TOKEN
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
end
function
c20368763
.
spcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
nil
,
TYPE_TOKEN
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
1
,
nil
,
TYPE_TOKEN
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c20368763
.
spcfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c20368763
.
spcfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c20368763
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x101b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c20368763
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c20368763
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c20368763
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c20368763
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c20663556.lua
View file @
32feab20
...
...
@@ -23,17 +23,20 @@ end
function
c20663556
.
indes
(
e
,
c
)
return
c
:
IsSetCard
(
0x12
)
end
function
c20663556
.
cfilter
(
c
,
ft
,
tp
)
return
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
)
end
function
c20663556
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c20663556
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c20663556
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c20663556
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x12
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c20663556
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c20663556
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c20663556
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c20663556
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c22431243.lua
View file @
32feab20
...
...
@@ -10,17 +10,21 @@ function c22431243.initial_effect(c)
e1
:
SetOperation
(
c22431243
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c22431243
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsRace
(
RACE_REPTILE
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c22431243
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
nil
,
RACE_REPTILE
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
1
,
nil
,
RACE_REPTILE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c22431243
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c22431243
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c22431243
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_DINOSAUR
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c22431243
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c22431243
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c22431243
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c22431243
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c23408872.lua
View file @
32feab20
...
...
@@ -13,9 +13,14 @@ function c23408872.initial_effect(c)
e1
:
SetOperation
(
c23408872
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c23408872
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsRace
(
RACE_AQUA
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c23408872
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
nil
,
RACE_AQUA
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
1
,
nil
,
RACE_AQUA
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c23408872
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c23408872
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c23408872
.
filter
(
c
,
e
,
tp
)
...
...
@@ -23,8 +28,7 @@ function c23408872.filter(c,e,tp)
end
function
c23408872
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c23408872
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c23408872
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c23408872
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c23408872
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c27178262.lua
View file @
32feab20
...
...
@@ -11,13 +11,14 @@ function c27178262.initial_effect(c)
e1
:
SetOperation
(
c27178262
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c27178262
.
costfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
c
:
IsAbleToGraveAsCost
()
function
c27178262
.
costfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c27178262
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c27178262
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c27178262
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c27178262
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c27178262
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c27178262
.
filter
(
c
,
e
,
tp
)
...
...
@@ -25,8 +26,7 @@ function c27178262.filter(c,e,tp)
end
function
c27178262
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c27178262
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c27178262
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c27178262
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c27178262
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c28529976.lua
View file @
32feab20
...
...
@@ -23,18 +23,19 @@ function c28529976.initial_effect(c)
e3
:
SetOperation
(
c28529976
.
desop2
)
c
:
RegisterEffect
(
e3
)
end
function
c28529976
.
cfilter
(
c
,
e
,
tp
)
function
c28529976
.
cfilter
(
c
,
e
,
tp
,
ft
)
local
lv
=
c
:
GetLevel
()
return
lv
>
0
and
lv
<=
2
and
c
:
IsRace
(
RACE_PLANT
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c28529976
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
lv
+
3
,
e
,
tp
)
end
function
c28529976
.
filter
(
c
,
lv
,
e
,
tp
)
return
c
:
GetLevel
()
<=
lv
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c28529976
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c28529976
.
cfilter
,
1
,
nil
,
e
,
tp
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c28529976
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
)
function
c28529976
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c28529976
.
cfilter
,
1
,
nil
,
e
,
tp
,
ft
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c28529976
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
e
:
SetLabel
(
rg
:
GetFirst
():
GetLevel
()
+
3
)
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
...
...
c28553439.lua
View file @
32feab20
...
...
@@ -21,15 +21,16 @@ end
function
c28553439
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c28553439
.
rfilter
(
c
,
e
)
function
c28553439
.
rfilter
(
c
,
e
,
tp
,
ft
)
return
c
:
IsReleasableByEffect
()
and
c
:
IsCanBeEffectTarget
(
e
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
end
function
c28553439
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c28553439
.
rfilter
(
chkc
,
e
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c28553439
.
rfilter
,
1
,
nil
,
e
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
c
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c28553439
.
rfilter
(
chkc
,
e
,
tp
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c28553439
.
rfilter
,
1
,
nil
,
e
,
tp
,
ft
)
and
Duel
.
IsExistingMatchingCard
(
c28553439
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c28553439
.
rfilter
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c28553439
.
rfilter
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
c286392.lua
View file @
32feab20
...
...
@@ -45,14 +45,18 @@ function c286392.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
function
c286392
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsLevelBelow
(
2
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c286392
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsLevelBelow
,
1
,
nil
,
2
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsLevelBelow
,
1
,
1
,
nil
,
2
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c286392
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c286392
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c286392
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c286392
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c2903036.lua
View file @
32feab20
...
...
@@ -10,17 +10,20 @@ function c2903036.initial_effect(c)
e1
:
SetOperation
(
c2903036
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c2903036
.
cfilter
(
c
,
ft
,
tp
)
return
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
)
end
function
c2903036
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c2903036
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c2903036
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c2903036
.
filter
(
c
,
e
,
tp
)
return
c
:
GetLevel
()
==
7
and
c
:
IsSummonableCard
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c2903036
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c2903036
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c2903036
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c2903036
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c29432356.lua
View file @
32feab20
...
...
@@ -253,17 +253,20 @@ function c29432356.penop2(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
HintSelection
(
Group
.
FromCards
(
rpz
))
end
function
c29432356
.
spcfilter
(
c
,
ft
,
tp
)
return
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
)
end
function
c29432356
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c29432356
.
spcfilter
,
1
,
nil
,
ft
,
tp
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c29432356
.
spcfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c29432356
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xc4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c29432356
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c29432356
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29432356
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c29432356
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c33909817.lua
View file @
32feab20
...
...
@@ -48,15 +48,17 @@ function c33909817.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
+
REASON_REVEAL
)
end
end
function
c33909817
.
cfilter
(
c
)
function
c33909817
.
cfilter
(
c
,
ft
)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c33909817
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
loc
=
LOCATION_HAND
+
LOCATION_MZONE
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
==
0
then
loc
=
LOCATION_MZONE
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33909817
.
cfilter
,
tp
,
loc
,
0
,
1
,
e
:
GetHandler
()
)
end
if
ft
==
0
then
loc
=
LOCATION_MZONE
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c33909817
.
cfilter
,
tp
,
loc
,
0
,
1
,
e
:
GetHandler
(),
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33909817
.
cfilter
,
tp
,
loc
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33909817
.
cfilter
,
tp
,
loc
,
0
,
1
,
1
,
e
:
GetHandler
()
,
ft
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c33909817
.
filter
(
c
,
e
,
tp
)
...
...
@@ -64,8 +66,7 @@ function c33909817.filter(c,e,tp)
end
function
c33909817
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c33909817
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c33909817
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c33909817
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c33909817
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c35149085.lua
View file @
32feab20
...
...
@@ -11,15 +11,15 @@ function c35149085.initial_effect(c)
e1
:
SetOperation
(
c35149085
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c35149085
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
and
c
:
IsRace
(
RACE_BEAST
)
and
c
:
IsAbleToHand
()
function
c35149085
.
filter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
and
c
:
IsRace
(
RACE_BEAST
)
and
c
:
IsAbleToHand
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c35149085
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c35149085
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c35149085
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
c
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c35149085
.
filter
(
chkc
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingTarget
(
c35149085
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35149085
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35149085
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
function
c35149085
.
spfilter
(
c
,
e
,
tp
,
lv
)
...
...
c36734924.lua
View file @
32feab20
...
...
@@ -58,15 +58,16 @@ function c36734924.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
sg1
)
end
end
function
c36734924
.
spfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xdd
)
and
c
:
IsAbleToDeck
()
function
c36734924
.
spfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xdd
)
and
c
:
IsAbleToDeck
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c36734924
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c36734924
.
spfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c36734924
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c36734924
.
spfilter
(
chkc
,
ft
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c36734924
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
and
ft
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c36734924
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c36734924
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
...
...
c36857073.lua
View file @
32feab20
...
...
@@ -30,9 +30,13 @@ end
function
c36857073
.
sfilter
(
c
)
return
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
end
function
c36857073
.
cfilter
(
c
,
ft
,
tp
)
return
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
)
end
function
c36857073
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c36857073
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c36857073
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c36857073
.
spfilter1
(
c
,
e
,
tp
)
...
...
@@ -40,8 +44,7 @@ function c36857073.spfilter1(c,e,tp)
end
function
c36857073
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c36857073
.
spfilter1
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c36857073
.
spfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c36857073
.
spfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c36857073
.
spfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c37507488.lua
View file @
32feab20
...
...
@@ -14,16 +14,16 @@ end
function
c37507488
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
end
function
c37507488
.
filter
(
c
)
return
c
:
IsAbleToHand
()
function
c37507488
.
filter
(
c
,
ft
)
return
c
:
IsAbleToHand
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c37507488
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c37507488
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c37507488
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
c
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c37507488
.
filter
(
chkc
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingTarget
(
c37507488
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
and
Duel
.
IsExistingMatchingCard
(
c37507488
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c37507488
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c37507488
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
c43040603.lua
View file @
32feab20
...
...
@@ -9,13 +9,17 @@ function c43040603.initial_effect(c)
e1
:
SetOperation
(
c43040603
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c43040603
.
cfilter
(
c
,
ft
,
tp
)
return
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
)
end
function
c43040603
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
aux
.
TRUE
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c43040603
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c43040603
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c43040603
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsPlayerCanSpecialSummon
(
tp
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanSpecialSummon
(
tp
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsSummonableCard
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
...
...
c44928016.lua
View file @
32feab20
...
...
@@ -12,20 +12,21 @@ function c44928016.initial_effect(c)
e1
:
SetOperation
(
c44928016
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c44928016
.
cfilter
(
c
)
function
c44928016
.
cfilter
(
c
,
ft
)
return
c
:
IsRace
(
RACE_PLANT
)
and
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
not
c
:
IsCode
(
44928016
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c44928016
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
loc
=
LOCATION_MZONE
+
LOCATION_HAND
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
==
0
then
loc
=
LOCATION_MZONE
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c44928016
.
cfilter
,
tp
,
loc
,
0
,
1
,
nil
)
end
if
ft
==
0
then
loc
=
LOCATION_MZONE
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c44928016
.
cfilter
,
tp
,
loc
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c44928016
.
cfilter
,
tp
,
loc
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c44928016
.
cfilter
,
tp
,
loc
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c44928016
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c44928016
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c48686504.lua
View file @
32feab20
...
...
@@ -12,20 +12,21 @@ function c48686504.initial_effect(c)
e1
:
SetOperation
(
c48686504
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c48686504
.
costfilter
(
c
)
function
c48686504
.
costfilter
(
c
,
ft
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
end
function
c48686504
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c48686504
.
costfilter
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c48686504
.
costfilter
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c48686504
.
costfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c48686504
.
costfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c48686504
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c48686504
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c48686504
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c48686504
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
LOCATION_DECK
)
end
function
c48686504
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c48964966.lua
View file @
32feab20
...
...
@@ -44,22 +44,23 @@ function c48964966.initial_effect(c)
e4
:
SetOperation
(
c48964966
.
operation2
)
c
:
RegisterEffect
(
e4
)
end
function
c48964966
.
filter1
(
c
)
function
c48964966
.
filter1
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
GetCode
()
~=
48964966
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c48964966
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c48964966
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c48964966
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
cc
=
Duel
.
SelectMatchingCard
(
tp
,
c48964966
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
);
Duel
.
SendtoGrave
(
cc
,
REASON_COST
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c48964966
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c48964966
.
filter2
(
c
,
e
,
sp
)
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
GetCode
()
~=
48964966
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
end
function
c48964966
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c48964966
.
filter2
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c48964966
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c48964966
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c48964966
.
filter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c5037726.lua
View file @
32feab20
...
...
@@ -11,10 +11,15 @@ function c5037726.initial_effect(c)
e1
:
SetOperation
(
c5037726
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c5037726
.
rfilter
(
c
,
ft
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c5037726
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_LIGHT
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsAttribute
,
1
,
1
,
nil
,
ATTRIBUTE_LIGHT
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c5037726
.
rfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c5037726
.
rfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c5037726
.
filter
(
c
,
e
,
tp
)
...
...
@@ -25,8 +30,7 @@ function c5037726.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c5037726
.
filter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
return
Duel
.
IsExistingTarget
(
c5037726
.
filter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
else
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c5037726
.
filter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
...
...
c50766506.lua
View file @
32feab20
...
...
@@ -16,9 +16,10 @@ function c50766506.initial_effect(c)
e2
:
SetOperation
(
c50766506
.
desop
)
c
:
RegisterEffect
(
e2
)
end
function
c50766506
.
cfilter
(
c
,
e
,
tp
)
function
c50766506
.
cfilter
(
c
,
e
,
tp
,
ft
)
local
lv
=
c
:
GetLevel
()
return
lv
>
0
and
c
:
IsSetCard
(
0x2b
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c50766506
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
,
e
,
tp
)
end
function
c50766506
.
spfilter
(
c
,
lv
,
e
,
tp
)
...
...
@@ -26,8 +27,9 @@ function c50766506.spfilter(c,lv,e,tp)
(
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEDOWN_DEFENSE
))
end
function
c50766506
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c50766506
.
cfilter
,
1
,
nil
,
e
,
tp
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c50766506
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c50766506
.
cfilter
,
1
,
nil
,
e
,
tp
,
ft
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c50766506
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
e
:
SetLabel
(
rg
:
GetFirst
():
GetLevel
())
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
c59388357.lua
View file @
32feab20
...
...
@@ -11,19 +11,19 @@ function c59388357.initial_effect(c)
e1
:
SetOperation
(
c59388357
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c59388357
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
function
c59388357
.
desfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c59388357
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c59388357
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c59388357
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingTarget
(
c59388357
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
and
Duel
.
IsExistingTarget
(
c59388357
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c59388357
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c59388357
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c59388357
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g1
,
1
,
0
,
0
)
...
...
c60417395.lua
View file @
32feab20
...
...
@@ -40,25 +40,25 @@ end
function
c60417395
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
function
c60417395
.
cfilter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToGraveAsCost
()
function
c60417395
.
cfilter1
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c60417395
.
cfilter2
(
c
)
return
c
:
IsRace
(
RACE_FIEND
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c60417395
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60417395
.
cfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c60417395
.
cfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
and
Duel
.
IsExistingMatchingCard
(
c60417395
.
cfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c60417395
.
cfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c60417395
.
cfilter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c60417395
.
cfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
g1
:
Merge
(
g2
)
Duel
.
SendtoGrave
(
g1
,
REASON_COST
)
end
function
c60417395
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c60417395
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c60666820.lua
View file @
32feab20
...
...
@@ -34,16 +34,16 @@ end
function
c60666820
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
end
function
c60666820
.
filter
(
c
)
return
c
:
IsFaceup
()
function
c60666820
.
filter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c60666820
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c60666820
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c60666820
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
c
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c60666820
.
filter
(
chkc
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c60666820
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60666820
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60666820
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
...
...
c63487632.lua
View file @
32feab20
...
...
@@ -41,18 +41,20 @@ function c63487632.initial_effect(c)
e5
:
SetLabelObject
(
e4
)
c
:
RegisterEffect
(
e5
)
end
function
c63487632
.
spfilter
(
c
)
function
c63487632
.
spfilter
(
c
,
ft
)
return
c
:
GetEquipGroup
():
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x29
)
and
c
:
IsAbleToRemoveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c63487632
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c63487632
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c63487632
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
function
c63487632
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c63487632
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c63487632
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c63487632
.
filter
(
c
)
...
...
c64034255.lua
View file @
32feab20
...
...
@@ -11,19 +11,19 @@ function c64034255.initial_effect(c)
e1
:
SetOperation
(
c64034255
.
spop
)
c
:
RegisterEffect
(
e1
)
end
function
c64034255
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToHandAsCost
()
function
c64034255
.
cfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToHandAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c64034255
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c64034255
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c64034255
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64034255
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64034255
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
if
g
:
GetFirst
():
IsAttribute
(
ATTRIBUTE_WIND
)
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
function
c64034255
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c64034255
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c65282484.lua
View file @
32feab20
...
...
@@ -50,14 +50,18 @@ end
function
c65282484
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetLabel
()
==
1
end
function
c65282484
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c65282484
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_DARK
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsAttribute
,
1
,
1
,
nil
,
ATTRIBUTE_DARK
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c65282484
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c65282484
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c65282484
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c65282484
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c66200210.lua
View file @
32feab20
...
...
@@ -65,9 +65,14 @@ function c66200210.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonComplete
()
end
end
function
c66200210
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsType
(
TYPE_TOKEN
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
end
function
c66200210
.
spcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
nil
,
TYPE_TOKEN
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsType
,
1
,
1
,
nil
,
TYPE_TOKEN
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c66200210
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c66200210
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c66200210
.
filter
(
c
,
e
,
tp
)
...
...
@@ -75,8 +80,7 @@ function c66200210.filter(c,e,tp)
end
function
c66200210
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c66200210
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c66200210
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c66200210
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c66200210
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c67757079.lua
View file @
32feab20
...
...
@@ -13,17 +13,18 @@ function c67757079.initial_effect(c)
e1
:
SetOperation
(
c67757079
.
spop
)
c
:
RegisterEffect
(
e1
)
end
function
c67757079
.
cfilter
(
c
)
function
c67757079
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
94878265
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
end
function
c67757079
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c67757079
.
cfilter
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c67757079
.
cfilter
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c67757079
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c67757079
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c67757079
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c67757079
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c68812773.lua
View file @
32feab20
...
...
@@ -51,17 +51,21 @@ end
function
c68812773
.
spfilter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0x7b
)
or
c
:
IsSetCard
(
0x55
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c68812773
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c68812773
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
nil
,
RACE_MACHINE
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c68812773
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
ct
=
Duel
.
GetMatchingGroupCount
(
c68812773
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
ct
,
nil
,
RACE_MACHINE
)
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c68812773
.
cfilter
,
1
,
ct
,
nil
,
ft
,
tp
)
ct
=
Duel
.
Release
(
rg
,
REASON_COST
)
e
:
SetLabel
(
ct
)
end
function
c68812773
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c68812773
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c68812773
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
local
ct
=
e
:
GetLabel
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
ct
,
0
,
0
)
end
...
...
c70156997.lua
View file @
32feab20
...
...
@@ -11,10 +11,15 @@ function c70156997.initial_effect(c)
e1
:
SetOperation
(
c70156997
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c70156997
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c70156997
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_EARTH
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsAttribute
,
1
,
1
,
nil
,
ATTRIBUTE_EARTH
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c70156997
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c70156997
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabelObject
(
g
:
GetFirst
())
end
...
...
@@ -26,8 +31,7 @@ function c70156997.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c70156997
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
return
Duel
.
IsExistingTarget
(
c70156997
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
else
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c70156997
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
...
...
c70861343.lua
View file @
32feab20
...
...
@@ -16,18 +16,19 @@ function c70861343.initial_effect(c)
e2
:
SetOperation
(
c70861343
.
desop
)
c
:
RegisterEffect
(
e2
)
end
function
c70861343
.
cfilter
(
c
,
e
,
tp
)
function
c70861343
.
cfilter
(
c
,
e
,
tp
,
ft
)
local
lv
=
c
:
GetLevel
()
return
c
:
IsFaceup
()
and
lv
>
0
and
c
:
IsSetCard
(
0x2b
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
Duel
.
IsExistingMatchingCard
(
c70861343
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
lv
+
3
,
e
,
tp
)
end
function
c70861343
.
filter
(
c
,
lv
,
e
,
tp
)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsRace
(
RACE_BEAST
+
RACE_WINDBEAST
+
RACE_INSECT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c70861343
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c70861343
.
cfilter
,
1
,
nil
,
e
,
tp
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c70861343
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c70861343
.
cfilter
,
1
,
nil
,
e
,
tp
,
ft
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c70861343
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
e
:
SetLabel
(
rg
:
GetFirst
():
GetLevel
()
+
3
)
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
...
...
c72491806.lua
View file @
32feab20
...
...
@@ -36,19 +36,19 @@ function c72491806.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c72491806
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
function
c72491806
.
thfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb2
)
and
c
:
IsAbleToHand
()
function
c72491806
.
thfilter
(
c
,
e
,
tp
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb2
)
and
c
:
IsAbleToHand
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
and
Duel
.
IsExistingMatchingCard
(
c72491806
.
spfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
end
function
c72491806
.
spfilter2
(
c
,
e
,
tp
,
code
)
return
c
:
IsSetCard
(
0xb2
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c72491806
.
tstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c72491806
.
thfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c72491806
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
c
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c72491806
.
thfilter
(
chkc
,
e
,
tp
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingTarget
(
c72491806
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
e
,
tp
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c72491806
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c72491806
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
,
tp
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
c72855441.lua
View file @
32feab20
...
...
@@ -35,19 +35,19 @@ function c72855441.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c72855441
.
gvfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsAbleToGrave
()
function
c72855441
.
gvfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsAbleToGrave
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c72855441
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xdd
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c72855441
.
gvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c72855441
.
gvfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c72855441
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
c
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c72855441
.
gvfilter
(
chkc
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingTarget
(
c72855441
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
and
Duel
.
IsExistingMatchingCard
(
c72855441
.
spfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c72855441
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c72855441
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
c73146473.lua
View file @
32feab20
...
...
@@ -20,16 +20,19 @@ function c73146473.initial_effect(c)
e2
:
SetOperation
(
c73146473
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c73146473
.
cfilter
(
c
,
ft
)
return
ft
>
0
or
c
:
GetSequence
()
<
5
end
function
c73146473
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x1f
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c73146473
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
c
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c73146473
.
cfilter
(
chkc
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingTarget
(
c73146473
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
and
Duel
.
IsExistingMatchingCard
(
c73146473
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c73146473
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
c73694478.lua
View file @
32feab20
...
...
@@ -24,19 +24,19 @@ function c73694478.initial_effect(c)
e2
:
SetOperation
(
c73694478
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c73694478
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10cf
)
function
c73694478
.
filter
(
c
,
e
,
tp
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10cf
)
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
and
Duel
.
IsExistingMatchingCard
(
c73694478
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
c
:
GetCode
(),
e
,
tp
)
end
function
c73694478
.
spfilter
(
c
,
code
,
e
,
tp
)
return
c
:
IsSetCard
(
0x10cf
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
c73694478
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c73694478
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c73694478
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
c
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c73694478
.
filter
(
chkc
,
e
,
tp
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingTarget
(
c73694478
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c73694478
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c73694478
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
c74926274.lua
View file @
32feab20
...
...
@@ -15,23 +15,23 @@ function c74926274.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
100
)
return
true
end
function
c74926274
.
filter
(
c
,
e
,
tp
)
function
c74926274
.
filter
(
c
,
e
,
tp
,
ft
)
local
lv
=
c
:
GetOriginalLevel
()
return
lv
>
0
and
c
:
IsAbleToGraveAsCost
()
return
lv
>
0
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
and
Duel
.
IsExistingMatchingCard
(
c74926274
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
lv
)
end
function
c74926274
.
spfilter
(
c
,
e
,
tp
,
lv
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetLevel
()
==
lv
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c74926274
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c74926274
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c74926274
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c74926274
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c74926274
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
e
:
SetLabel
(
g
:
GetFirst
():
GetOriginalLevel
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
c76473843.lua
View file @
32feab20
...
...
@@ -29,17 +29,18 @@ function c76473843.initial_effect(c)
e4
:
SetOperation
(
c76473843
.
spop
)
c
:
RegisterEffect
(
e4
)
end
function
c76473843
.
cfilter
(
c
)
function
c76473843
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c76473843
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c76473843
.
cfilter
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c76473843
.
cfilter
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c76473843
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c76473843
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c76473843
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c76473843
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c76473843
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c76473843
.
spfilter
(
c
,
e
,
tp
)
...
...
c78794994.lua
View file @
32feab20
...
...
@@ -17,19 +17,19 @@ function c78794994.initial_effect(c)
e2
:
SetOperation
(
c78794994
.
desop
)
c
:
RegisterEffect
(
e2
)
end
function
c78794994
.
costfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToGraveAsCost
()
function
c78794994
.
costfilter
(
c
,
ft
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c78794994
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c78794994
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c78794994
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78794994
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78794994
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c78794994
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsCanBeSpecialSummoned
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
0
,
tp
,
false
,
false
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c81254059.lua
View file @
32feab20
...
...
@@ -37,22 +37,23 @@ function c81254059.otop(e,tp,eg,ep,ev,re,r,rp,c)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c81254059
.
costfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3e
)
and
c
:
IsRace
(
RACE_REPTILE
)
function
c81254059
.
costfilter
(
c
,
e
,
tp
,
ft
)
return
c
:
IsSetCard
(
0x3e
)
and
c
:
IsRace
(
RACE_REPTILE
)
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
and
Duel
.
IsExistingMatchingCard
(
c81254059
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetLevel
())
end
function
c81254059
.
spfilter
(
c
,
e
,
tp
,
lv
)
return
c
:
IsSetCard
(
0x3e
)
and
c
:
IsRace
(
RACE_REPTILE
)
and
c
:
GetLevel
()
<=
lv
return
c
:
IsSetCard
(
0x3e
)
and
c
:
IsRace
(
RACE_REPTILE
)
and
c
:
IsLevelBelow
(
lv
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c81254059
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c81254059
.
costfilter
,
1
,
nil
,
e
,
tp
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c81254059
.
costfilter
,
1
,
1
,
nil
,
e
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c81254059
.
costfilter
,
1
,
nil
,
e
,
tp
,
ft
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c81254059
.
costfilter
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
e
:
SetLabel
(
sg
:
GetFirst
():
GetLevel
())
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c81254059
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c81254059
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c8240199.lua
View file @
32feab20
...
...
@@ -39,19 +39,19 @@ function c8240199.gvcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
function
c8240199
.
gvfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsAbleToGrave
()
function
c8240199
.
gvfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsAbleToGrave
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c8240199
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xdd
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c8240199
.
gvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c8240199
.
gvfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c8240199
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
c
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c8240199
.
gvfilter
(
chkc
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingTarget
(
c8240199
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
and
Duel
.
IsExistingMatchingCard
(
c8240199
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c8240199
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c8240199
.
gvfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
...
...
c876330.lua
View file @
32feab20
...
...
@@ -24,18 +24,19 @@ function c876330.initial_effect(c)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
c876330
.
spfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x29
)
and
c
:
IsAbleToGraveAsCost
()
function
c876330
.
spfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x29
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c876330
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c876330
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c876330
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
function
c876330
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c876330
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c876330
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c876330
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c904185.lua
View file @
32feab20
...
...
@@ -11,20 +11,21 @@ function c904185.initial_effect(c)
e1
:
SetOperation
(
c904185
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c904185
.
rfilter
(
c
)
function
c904185
.
rfilter
(
c
,
ft
,
tp
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
not
c
:
IsType
(
TYPE_TOKEN
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c904185
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c904185
.
rfilter
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c904185
.
rfilter
,
1
,
nil
,
ft
,
tp
)
end
local
maxc
=
10
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
maxc
=
1
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c904185
.
rfilter
,
1
,
maxc
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c904185
.
rfilter
,
1
,
maxc
,
nil
,
ft
,
tp
)
e
:
SetLabel
(
g
:
GetCount
())
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c904185
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
31533705
,
0x101b
,
0x4011
,
0
,
0
,
3
,
RACE_MACHINE
,
ATTRIBUTE_WIND
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
31533705
,
0x101b
,
0x4011
,
0
,
0
,
3
,
RACE_MACHINE
,
ATTRIBUTE_WIND
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
e
:
GetLabel
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
e
:
GetLabel
(),
0
,
0
)
end
...
...
c9047460.lua
View file @
32feab20
...
...
@@ -38,14 +38,17 @@ function c9047460.tkop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c9047460
.
cfilter
(
c
,
ft
,
tp
)
return
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
)
end
function
c9047460
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c9047460
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c9047460
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c9047460
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c9047460
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c90960358.lua
View file @
32feab20
...
...
@@ -53,15 +53,19 @@ end
function
c90960358
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
end
function
c90960358
.
spcfilter
(
c
,
ft
,
tp
)
return
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
)
end
function
c90960358
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
Duel
.
IsExistingMatchingCard
(
c90960358
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
and
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c90960358
.
spcfilter
,
1
,
nil
,
ft
,
tp
)
end
function
c90960358
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tp
=
c
:
GetControler
(
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c90960358
.
spcfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c90960358
.
sfilter
(
c
)
...
...
c91422370.lua
View file @
32feab20
...
...
@@ -11,12 +11,14 @@ function c91422370.initial_effect(c)
e1
:
SetOperation
(
c91422370
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c91422370
.
costfilter
(
c
)
function
c91422370
.
costfilter
(
c
,
ft
,
tp
)
return
c
:
IsSetCard
(
0x58
)
and
c
:
IsAttackAbove
(
1500
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c91422370
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c91422370
.
costfilter
,
1
,
nil
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c91422370
.
costfilter
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c91422370
.
costfilter
,
1
,
nil
,
ft
,
tp
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c91422370
.
costfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c91422370
.
filter
(
c
,
e
,
tp
)
...
...
@@ -26,8 +28,7 @@ function c91422370.filter2(c,atk,e,tp)
return
c
:
IsSetCard
(
0x58
)
and
c
:
GetAttack
()
==
atk
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c91422370
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c91422370
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c91422370
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_DECK
)
end
...
...
c91842653.lua
View file @
32feab20
...
...
@@ -52,15 +52,19 @@ end
function
c91842653
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15259703
)
end
function
c91842653
.
spcfilter
(
c
,
ft
,
tp
)
return
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
)
end
function
c91842653
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
Duel
.
IsExistingMatchingCard
(
c91842653
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
and
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c91842653
.
spcfilter
,
1
,
nil
,
ft
,
tp
)
end
function
c91842653
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tp
=
c
:
GetControler
(
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c91842653
.
spcfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c91842653
.
sfilter
(
c
)
...
...
c9190563.lua
View file @
32feab20
...
...
@@ -13,9 +13,13 @@ function c9190563.initial_effect(c)
e1
:
SetOperation
(
c9190563
.
spop
)
c
:
RegisterEffect
(
e1
)
end
function
c9190563
.
cfilter
(
c
,
ft
,
tp
)
return
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
)
end
function
c9190563
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c9190563
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c9190563
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c9190563
.
spfilter
(
c
,
e
,
tp
)
...
...
@@ -23,8 +27,7 @@ function c9190563.spfilter(c,e,tp)
end
function
c9190563
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c9190563
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c9190563
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c9190563
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9190563
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
c94145683.lua
View file @
32feab20
...
...
@@ -15,22 +15,23 @@ function c94145683.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
100
)
return
true
end
function
c94145683
.
filter1
(
c
,
e
,
tp
)
function
c94145683
.
filter1
(
c
,
e
,
tp
,
ft
)
local
lv
=
c
:
GetLevel
()
return
lv
>
0
and
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_WINDBEAST
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c94145683
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
,
e
,
tp
)
end
function
c94145683
.
filter2
(
c
,
lv
,
e
,
tp
)
return
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
GetLevel
()
==
lv
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c94145683
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c94145683
.
filter1
,
1
,
nil
,
e
,
tp
)
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c94145683
.
filter1
,
1
,
nil
,
e
,
tp
,
ft
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c94145683
.
filter1
,
1
,
1
,
nil
,
e
,
tp
)
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c94145683
.
filter1
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
e
:
SetLabel
(
rg
:
GetFirst
():
GetLevel
())
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
c94801854.lua
View file @
32feab20
...
...
@@ -23,17 +23,21 @@ function c94801854.initial_effect(c)
e2
:
SetOperation
(
c94801854
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
c94801854
.
spcfilter
(
c
,
ft
,
tp
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c94801854
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
nil
,
RACE_ZOMBIE
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
1
,
nil
,
RACE_ZOMBIE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c94801854
.
spcfilter
,
1
,
nil
,
ft
,
tp
)
end
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c94801854
.
spcfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c94801854
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
GetDefense
()
==
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c94801854
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c94801854
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c94801854
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c94801854
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c95772051.lua
View file @
32feab20
...
...
@@ -23,18 +23,19 @@ function c95772051.initial_effect(c)
e2
:
SetOperation
(
c95772051
.
thop
)
c
:
RegisterEffect
(
e2
)
end
function
c95772051
.
spfilter
(
c
)
function
c95772051
.
spfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c95772051
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c95772051
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c95772051
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c95772051
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c95772051
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c95772051
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c95772051
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c96782886.lua
View file @
32feab20
...
...
@@ -11,21 +11,23 @@ function c96782886.initial_effect(c)
e1
:
SetOperation
(
c96782886
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c96782886
.
costfilter
(
c
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
GetCode
()
~=
96782886
function
c96782886
.
costfilter
(
c
,
ft
,
tp
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
not
c
:
IsCode
(
96782886
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c96782886
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
800
)
and
Duel
.
CheckReleaseGroup
(
tp
,
c96782886
.
costfilter
,
1
,
nil
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
800
)
and
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c96782886
.
costfilter
,
1
,
nil
,
ft
,
tp
)
end
Duel
.
PayLPCost
(
tp
,
800
)
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c96782886
.
costfilter
,
1
,
1
,
nil
)
local
sg
=
Duel
.
SelectReleaseGroup
(
tp
,
c96782886
.
costfilter
,
1
,
1
,
nil
,
ft
,
tp
)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c96782886
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c96782886
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c96782886
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96782886
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c96782886
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c96965364.lua
View file @
32feab20
...
...
@@ -15,20 +15,22 @@ function c96965364.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
100
)
return
true
end
function
c96965364
.
cfilter
(
c
,
e
,
tp
)
function
c96965364
.
cfilter
(
c
,
e
,
tp
,
ft
)
local
lv
=
c
:
GetLevel
()
return
lv
>
0
and
Duel
.
IsExistingMatchingCard
(
c96965364
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
+
1
,
e
,
tp
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
function
c96965364
.
spfilter
(
c
,
lv
,
e
,
tp
)
return
c
:
GetLevel
()
==
lv
and
c
:
IsRace
(
RACE_INSECT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c96965364
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c96965364
.
cfilter
,
1
,
nil
,
e
,
tp
)
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
c96965364
.
cfilter
,
1
,
nil
,
e
,
tp
,
ft
)
end
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c96965364
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
)
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c96965364
.
cfilter
,
1
,
1
,
nil
,
e
,
tp
,
ft
)
e
:
SetLabel
(
rg
:
GetFirst
():
GetLevel
())
Duel
.
Release
(
rg
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
c98045062.lua
View file @
32feab20
...
...
@@ -13,7 +13,7 @@ function c98045062.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c98045062
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
9
)
return
true
end
function
c98045062
.
filter1
(
c
)
...
...
@@ -37,10 +37,11 @@ function c98045062.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
local
b1
=
Duel
.
IsExistingTarget
(
c98045062
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
local
b2
=
nil
if
e
:
GetLabel
()
==
0
then
b2
=
Duel
.
IsExistingTarget
(
c98045062
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
else
if
e
:
GetLabel
()
==
9
then
b2
=
Duel
.
CheckReleaseGroup
(
tp
,
c98045062
.
cfilter
,
1
,
nil
,
tp
)
else
b2
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_CONTROL
)
>
0
and
Duel
.
IsExistingTarget
(
c98045062
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
e
:
SetLabel
(
0
)
...
...
@@ -60,7 +61,7 @@ function c98045062.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98045062
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
else
if
e
:
GetLabel
()
==
1
then
if
e
:
GetLabel
()
==
9
then
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c98045062
.
cfilter
,
1
,
1
,
nil
,
tp
)
Duel
.
Release
(
rg
,
REASON_COST
)
end
...
...
c98280324.lua
View file @
32feab20
...
...
@@ -27,21 +27,21 @@ function c98280324.spcon(e,c)
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c98280324
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c98280324
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa9
)
and
c
:
IsAbleToHandAsCost
()
function
c98280324
.
cfilter
(
c
,
ft
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa9
)
and
c
:
IsAbleToHandAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
function
c98280324
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c98280324
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c98280324
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c98280324
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c98280324
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
()
,
ft
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
function
c98280324
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xc3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c98280324
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c98280324
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c98280324
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
function
c98280324
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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