Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
be99e704
Commit
be99e704
authored
Jan 27, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bc6d5572
Changes
48
Hide whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
165 additions
and
165 deletions
+165
-165
script/c101112003.lua
script/c101112003.lua
+1
-2
script/c101112004.lua
script/c101112004.lua
+1
-2
script/c101112005.lua
script/c101112005.lua
+1
-2
script/c101112006.lua
script/c101112006.lua
+5
-8
script/c101112007.lua
script/c101112007.lua
+6
-7
script/c101112008.lua
script/c101112008.lua
+2
-2
script/c101112015.lua
script/c101112015.lua
+3
-3
script/c101112016.lua
script/c101112016.lua
+11
-8
script/c101112017.lua
script/c101112017.lua
+8
-3
script/c101112020.lua
script/c101112020.lua
+1
-1
script/c101112023.lua
script/c101112023.lua
+8
-8
script/c101112026.lua
script/c101112026.lua
+2
-2
script/c101112030.lua
script/c101112030.lua
+11
-10
script/c101112038.lua
script/c101112038.lua
+8
-9
script/c101112040.lua
script/c101112040.lua
+4
-6
script/c101112043.lua
script/c101112043.lua
+3
-4
script/c101112045.lua
script/c101112045.lua
+4
-5
script/c101112046.lua
script/c101112046.lua
+4
-4
script/c101112047.lua
script/c101112047.lua
+2
-2
script/c101112049.lua
script/c101112049.lua
+5
-4
script/c101112054.lua
script/c101112054.lua
+8
-2
script/c101112057.lua
script/c101112057.lua
+3
-5
script/c101112059.lua
script/c101112059.lua
+10
-7
script/c101112060.lua
script/c101112060.lua
+2
-1
script/c101112063.lua
script/c101112063.lua
+3
-6
script/c101112065.lua
script/c101112065.lua
+5
-3
script/c101112067.lua
script/c101112067.lua
+0
-1
script/c101112070.lua
script/c101112070.lua
+1
-1
script/c101112071.lua
script/c101112071.lua
+2
-2
script/c101112072.lua
script/c101112072.lua
+2
-2
script/c101112073.lua
script/c101112073.lua
+1
-1
script/c101112074.lua
script/c101112074.lua
+0
-2
script/c101112076.lua
script/c101112076.lua
+2
-3
script/c101112079.lua
script/c101112079.lua
+3
-3
script/c101112080.lua
script/c101112080.lua
+0
-1
script/c1050186.lua
script/c1050186.lua
+2
-2
script/c14759024.lua
script/c14759024.lua
+3
-3
script/c15871676.lua
script/c15871676.lua
+3
-3
script/c16906241.lua
script/c16906241.lua
+3
-3
script/c26057276.lua
script/c26057276.lua
+2
-2
script/c38667773.lua
script/c38667773.lua
+2
-2
script/c40143123.lua
script/c40143123.lua
+3
-3
script/c41269771.lua
script/c41269771.lua
+3
-3
script/c42391240.lua
script/c42391240.lua
+2
-2
script/c63274863.lua
script/c63274863.lua
+2
-2
script/c75878039.lua
script/c75878039.lua
+2
-2
script/c78486968.lua
script/c78486968.lua
+3
-3
script/c99668578.lua
script/c99668578.lua
+3
-3
No files found.
script/c101112003.lua
View file @
be99e704
...
@@ -25,8 +25,7 @@ function c101112003.initial_effect(c)
...
@@ -25,8 +25,7 @@ function c101112003.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c101112003
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112003
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
#
g
==
0
end
end
function
c101112003
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112003
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c101112004.lua
View file @
be99e704
...
@@ -25,8 +25,7 @@ function c101112004.initial_effect(c)
...
@@ -25,8 +25,7 @@ function c101112004.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c101112004
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112004
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
#
g
==
0
end
end
function
c101112004
.
spcon
(
e
,
c
)
function
c101112004
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
...
...
script/c101112005.lua
View file @
be99e704
...
@@ -64,8 +64,7 @@ function c101112005.eqlimit(e,c)
...
@@ -64,8 +64,7 @@ function c101112005.eqlimit(e,c)
end
end
function
c101112005
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112005
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
ec
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
#
g
==
0
and
ec
end
end
function
c101112005
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112005
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c101112006.lua
View file @
be99e704
...
@@ -38,8 +38,7 @@ function c101112006.initial_effect(c)
...
@@ -38,8 +38,7 @@ function c101112006.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c101112006
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112006
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
#
g
==
0
end
end
function
c101112006
.
pcfilter
(
c
,
tp
)
function
c101112006
.
pcfilter
(
c
,
tp
)
return
not
c
:
IsCode
(
101112006
)
and
c
:
IsSetCard
(
0x9a
)
and
c
:
IsType
(
TYPE_PENDULUM
)
return
not
c
:
IsCode
(
101112006
)
and
c
:
IsSetCard
(
0x9a
)
and
c
:
IsType
(
TYPE_PENDULUM
)
...
@@ -64,7 +63,7 @@ function c101112006.pcop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,7 +63,7 @@ function c101112006.pcop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c101112006
.
costfilter
(
c
,
e
,
tp
)
function
c101112006
.
costfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
and
Duel
.
GetMatchingGroupCount
(
c101112006
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
c
,
e
,
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c101112006
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
c
,
e
,
tp
)
end
end
function
c101112006
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112006
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101112006
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101112006
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
...
@@ -74,9 +73,8 @@ function c101112006.spfilter(c,e,tp)
...
@@ -74,9 +73,8 @@ function c101112006.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0x9a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x9a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c101112006
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112006
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
g
=
Duel
.
GetMatchingGroup
(
c101112006
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c101112006
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
ft
>
0
and
#
g
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
end
function
c101112006
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112006
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -90,10 +88,9 @@ function c101112006.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -90,10 +88,9 @@ function c101112006.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112006
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112006
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
ft
=
=
0
or
#
g
==
0
then
return
end
if
ft
<
=
0
or
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
#
sg
==
0
then
return
end
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c101112006
.
splimit
(
e
,
c
)
function
c101112006
.
splimit
(
e
,
c
)
...
...
script/c101112007.lua
View file @
be99e704
...
@@ -37,8 +37,7 @@ function c101112007.initial_effect(c)
...
@@ -37,8 +37,7 @@ function c101112007.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c101112007
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112007
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
tp
,
LOCATION_MZONE
,
0
,
nil
,
0x9a
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x9a
)
return
#
g
>
0
end
end
function
c101112007
.
thfilter
(
c
)
function
c101112007
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x109a
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x109a
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
@@ -56,16 +55,16 @@ function c101112007.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,16 +55,16 @@ function c101112007.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c101112007
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112007
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
return
#
g
==
0
end
end
function
c101112007
.
tgfilter
(
c
)
function
c101112007
.
tgfilter
(
c
)
return
c
:
IsCode
(
3117804
)
and
c
:
IsAbleToGrave
()
return
c
:
IsCode
(
3117804
)
and
c
:
IsAbleToGrave
()
end
end
function
c101112007
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112007
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
c101112007
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
nil
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c101112007
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
end
...
@@ -75,7 +74,7 @@ function c101112007.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,7 +74,7 @@ function c101112007.spop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
if
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsRelateToEffect
(
e
)
then
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
script/c101112008.lua
View file @
be99e704
...
@@ -64,8 +64,8 @@ end
...
@@ -64,8 +64,8 @@ end
function
c101112008
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112008
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
==
0
then
return
false
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
==
0
then
return
end
if
c
:
GetLocation
()
~=
LOCATION_GRAVE
or
not
tc
:
IsRelateToEffect
(
e
)
then
return
false
end
if
c
:
GetLocation
()
~=
LOCATION_GRAVE
or
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
e
:
GetLabel
()
==
0
then
if
e
:
GetLabel
()
==
0
then
Duel
.
GetControl
(
tc
,
tp
)
Duel
.
GetControl
(
tc
,
tp
)
else
else
...
...
script/c101112015.lua
View file @
be99e704
...
@@ -67,8 +67,8 @@ function c101112015.mvfilter(c)
...
@@ -67,8 +67,8 @@ function c101112015.mvfilter(c)
return
not
c
:
IsForbidden
()
and
c
:
IsSetCard
(
0x292
)
and
c
:
GetType
()
==
TYPE_CONTINUOUS
+
TYPE_SPELL
and
c
:
CheckUniqueOnField
(
tp
)
return
not
c
:
IsForbidden
()
and
c
:
IsSetCard
(
0x292
)
and
c
:
GetType
()
==
TYPE_CONTINUOUS
+
TYPE_SPELL
and
c
:
CheckUniqueOnField
(
tp
)
end
end
function
c101112015
.
mvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112015
.
mvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112015
.
mvfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsForbidden
(
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsForbidden
()
and
#
g
>
0
end
and
Duel
.
IsExistingMatchingCard
(
c101112015
.
mvfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
end
end
function
c101112015
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112015
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -76,7 +76,7 @@ function c101112015.mvop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,7 +76,7 @@ function c101112015.mvop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
==
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
#
g
==
0
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
not
tc
or
not
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
then
return
end
if
not
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
then
return
end
Duel
.
SendtoExtraP
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoExtraP
(
c
,
nil
,
REASON_EFFECT
)
end
end
function
c101112015
.
rmfilter
(
c
)
function
c101112015
.
rmfilter
(
c
)
...
...
script/c101112016.lua
View file @
be99e704
...
@@ -28,15 +28,18 @@ end
...
@@ -28,15 +28,18 @@ end
function
c101112016
.
sprcon
(
e
,
c
)
function
c101112016
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsType
),
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
TYPE_PENDULUM
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsType
),
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
TYPE_PENDULUM
)
end
end
function
c101112016
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112016
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_EXTRA
,
0
,
nil
,
101112015
)
return
aux
.
dscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
local
ag
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
101112015
)
return
#
g
>
0
and
#
ag
>
0
and
aux
.
dscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
c101112016
.
rmfilter
(
c
)
return
c
:
IsFacedown
()
and
c
:
IsAbleToRemoveAsCost
(
POS_FACEDOWN
)
end
end
function
c101112016
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112016
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
):
Filter
(
Card
.
IsAbleToRemoveAsCost
,
nil
,
POS_FACEDOWN
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112016
.
rmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
chk
==
0
then
return
#
g
>
0
end
if
chk
==
0
then
return
#
g
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
rg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
@@ -44,12 +47,12 @@ function c101112016.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,12 +47,12 @@ function c101112016.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c101112016
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112016
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ag
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
if
c
:
IsRelateToEffect
(
e
)
and
#
ag
>
0
then
if
c
:
IsRelateToEffect
(
e
)
and
ct
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
#
ag
*
500
)
e1
:
SetValue
(
ct
*
500
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
...
script/c101112017.lua
View file @
be99e704
...
@@ -28,19 +28,24 @@ end
...
@@ -28,19 +28,24 @@ end
function
c101112017
.
sprcon
(
e
,
c
)
function
c101112017
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsType
),
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
TYPE_PENDULUM
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsType
),
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
TYPE_PENDULUM
)
end
end
function
c101112017
.
tfilter
(
c
,
tp
)
function
c101112017
.
tfilter
(
c
,
tp
)
return
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsSetCard
(
0x292
)
and
c
:
IsControler
(
tp
)
and
c
:
IsFaceup
()
return
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsSetCard
(
0x292
)
and
c
:
IsControler
(
tp
)
and
c
:
IsFaceup
()
end
end
function
c101112017
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112017
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
or
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
Duel
.
GetMatchingGroupCount
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_EXTRA
,
0
,
nil
,
101112015
)
==
0
then
return
false
end
if
rp
==
tp
or
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
101112015
)
then
return
false
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
and
tg
:
IsExists
(
c101112017
.
tfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
return
tg
and
tg
:
IsExists
(
c101112017
.
tfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c101112017
.
rmfilter
(
c
)
return
c
:
IsFacedown
()
and
c
:
IsAbleToRemoveAsCost
(
POS_FACEDOWN
)
end
function
c101112017
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112017
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
):
Filter
(
Card
.
IsAbleToRemoveAsCost
,
nil
,
POS_FACEDOWN
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112017
.
rmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
chk
==
0
then
return
#
g
>
0
end
if
chk
==
0
then
return
#
g
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
rg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
script/c101112020.lua
View file @
be99e704
...
@@ -46,7 +46,7 @@ function c101112020.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -46,7 +46,7 @@ function c101112020.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
end
end
function
c101112020
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112020
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
Get
ChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
Get
TargetsRelateToChain
(
)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
...
...
script/c101112023.lua
View file @
be99e704
...
@@ -27,8 +27,7 @@ function c101112023.initial_effect(c)
...
@@ -27,8 +27,7 @@ function c101112023.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c101112023
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112023
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
tp
,
LOCATION_MZONE
,
0
,
nil
,
0x15b
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x15b
)
return
#
g
>
0
end
end
function
c101112023
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112023
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -39,13 +38,12 @@ end
...
@@ -39,13 +38,12 @@ end
function
c101112023
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112023
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
false
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c101112023
.
thfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c101112023
.
thfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
)
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112023
,
0
))
then
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112023
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tag
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tag
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
#
tag
==
0
then
return
false
end
Duel
.
SendtoHand
(
tag
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tag
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tag
)
Duel
.
ConfirmCards
(
1
-
tp
,
tag
)
end
end
...
@@ -65,7 +63,9 @@ end
...
@@ -65,7 +63,9 @@ end
function
c101112023
.
dhtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c101112023
.
dhtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
~=
c
and
c101112023
.
xfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
~=
c
and
c101112023
.
xfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101112023
.
xfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
)
and
c
:
IsAbleToDeck
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c101112023
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c101112023
.
xfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
)
and
c
:
IsAbleToDeck
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c101112023
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c101112023
.
xfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
c
)
Duel
.
SelectTarget
(
tp
,
c101112023
.
xfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
@@ -76,11 +76,11 @@ function c101112023.dhop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,11 +76,11 @@ function c101112023.dhop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
==
0
or
c
:
GetLocation
()
~=
LOCATION_DECK
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SendtoDeck
(
c
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
==
0
or
c
:
GetLocation
()
~=
LOCATION_DECK
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c101112023
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112023
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
#
g
==
0
then
return
false
end
if
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
#
sg
==
0
then
return
false
end
if
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
if
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
then
return
false
end
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c101112026.lua
View file @
be99e704
...
@@ -48,7 +48,7 @@ function c101112026.thop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c101112026.thop1(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
==
0
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101112026
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
50323155
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101112026
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
50323155
)
if
#
g
==
0
then
return
false
end
if
#
g
==
0
then
return
end
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
...
@@ -62,7 +62,7 @@ end
...
@@ -62,7 +62,7 @@ end
function
c101112026
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112026
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101112026
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
98069388
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101112026
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
98069388
)
if
#
g
==
0
then
return
false
end
if
#
g
==
0
then
return
end
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
...
...
script/c101112030.lua
View file @
be99e704
...
@@ -53,7 +53,7 @@ function c101112030.thop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +53,7 @@ function c101112030.thop1(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
if
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
if
not
c
:
IsRelateToEffect
(
e
)
then
return
false
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
end
end
...
@@ -64,26 +64,27 @@ function c101112030.thfilter2(c,lsc,rsc)
...
@@ -64,26 +64,27 @@ function c101112030.thfilter2(c,lsc,rsc)
return
lv
>
lsc
and
lv
<
rsc
and
c
:
IsAbleToHand
()
return
lv
>
lsc
and
lv
<
rsc
and
c
:
IsAbleToHand
()
end
end
function
c101112030
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112030
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
if
chk
==
0
then
local
sc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
local
lc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
if
not
lc
or
not
sc
then
return
false
end
local
sc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
local
lsc
=
lc
:
GetLeftScale
()
if
not
lc
or
not
sc
then
return
false
end
local
rsc
=
sc
:
GetRightScale
()
local
lsc
=
lc
:
GetLeftScale
()
if
lsc
>
rsc
then
lsc
,
rsc
=
rsc
,
lsc
end
local
rsc
=
sc
:
GetRightScale
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101112030
.
thfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
lsc
,
rsc
)
end
if
lsc
>
rsc
then
lsc
,
rsc
=
rsc
,
lsc
end
return
Duel
.
IsExistingMatchingCard
(
c101112030
.
thfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
lsc
,
rsc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c101112030
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112030
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
lc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
lc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
local
sc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
local
sc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
if
not
lc
or
not
sc
then
return
false
end
if
not
lc
or
not
sc
then
return
end
local
lsc
=
lc
:
GetLeftScale
()
local
lsc
=
lc
:
GetLeftScale
()
local
rsc
=
sc
:
GetRightScale
()
local
rsc
=
sc
:
GetRightScale
()
if
lsc
>
rsc
then
lsc
,
rsc
=
rsc
,
lsc
end
if
lsc
>
rsc
then
lsc
,
rsc
=
rsc
,
lsc
end
if
lc
and
sc
and
Duel
.
IsExistingMatchingCard
(
c101112030
.
thfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
lsc
,
rsc
)
then
if
lc
and
sc
and
Duel
.
IsExistingMatchingCard
(
c101112030
.
thfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
lsc
,
rsc
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101112030
.
thfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
2
,
nil
,
lsc
,
rsc
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101112030
.
thfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
2
,
nil
,
lsc
,
rsc
)
if
#
g
==
0
then
return
false
end
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
...
...
script/c101112038.lua
View file @
be99e704
...
@@ -108,22 +108,21 @@ function c101112038.spfilter(c,e,tp)
...
@@ -108,22 +108,21 @@ function c101112038.spfilter(c,e,tp)
return
c
:
IsCode
(
85360035
,
11759079
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
85360035
,
11759079
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c101112038
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112038
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
c101112038
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
spchk
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
ft
<
2
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
false
end
if
spchk
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
c101112038
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
ft
>
1
and
g
:
CheckSubGroup
(
aux
.
dncheck
,
2
,
2
)
end
return
g
:
CheckSubGroup
(
aux
.
dncheck
,
2
,
2
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
end
function
c101112038
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112038
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<
2
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c101112038
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112038
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
spchk
=
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
spchk
then
return
false
end
if
ft
<
1
or
not
g
:
CheckSubGroup
(
aux
.
dncheck
,
2
,
2
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
2
,
2
)
if
#
sg
~=
2
then
return
false
end
if
not
sg
then
return
end
local
tc
=
sg
:
GetFirst
()
local
tc
=
sg
:
GetFirst
()
for
tc
in
aux
.
Next
(
sg
)
do
for
tc
in
aux
.
Next
(
sg
)
do
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
...
...
script/c101112040.lua
View file @
be99e704
...
@@ -43,11 +43,10 @@ end
...
@@ -43,11 +43,10 @@ end
function
c101112040
.
spdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112040
.
spdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetAttacker
()
local
tc
=
Duel
.
GetAttacker
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
if
tc
and
#
g
==
0
then
if
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
tc
,
1
,
0
,
0
)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
EFFECT_DISABLE
+
CATEGORY_ATKCHANGE
)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
EFFECT_DISABLE
+
CATEGORY_ATKCHANGE
)
else
else
...
@@ -57,9 +56,9 @@ end
...
@@ -57,9 +56,9 @@ end
function
c101112040
.
spdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112040
.
spdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetAttacker
()
local
tc
=
Duel
.
GetAttacker
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
#
g
==
0
and
tc
and
tc
:
IsRelateToBattle
()
if
tc
and
tc
:
IsRelateToBattle
()
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
and
tc
:
IsControler
(
1
-
tp
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
1
-
tp
)
and
tc
:
IsFaceup
()
and
(
tc
:
GetAttack
()
>
0
or
aux
.
NegateMonsterFilter
(
tc
))
then
and
(
tc
:
GetAttack
()
>
0
or
aux
.
NegateMonsterFilter
(
tc
))
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
...
@@ -102,10 +101,9 @@ function c101112040.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -102,10 +101,9 @@ function c101112040.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c101112040
.
spfilter
),
tp
,
LOCATION_SZONE
+
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c101112040
.
spfilter
),
tp
,
LOCATION_SZONE
+
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
ft
=
=
0
or
#
g
==
0
then
return
end
if
ft
<
=
0
or
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
#
sg
==
0
then
return
end
if
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
if
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
c
:
IsRelateToEffect
(
e
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112040
,
1
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112040
,
1
))
then
...
...
script/c101112043.lua
View file @
be99e704
...
@@ -85,15 +85,14 @@ function s.spfilter(c,e,tp)
...
@@ -85,15 +85,14 @@ function s.spfilter(c,e,tp)
return
c
:
IsFaceupEx
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
(
b1
or
b2
)
return
c
:
IsFaceupEx
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
(
b1
or
b2
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
g
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
ft
>
0
and
#
g
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
,
e
,
tp
)
if
ft
=
=
0
or
#
g
==
0
then
return
end
if
ft
<
=
0
or
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
script/c101112045.lua
View file @
be99e704
...
@@ -38,17 +38,16 @@ function c101112045.fselect(g)
...
@@ -38,17 +38,16 @@ function c101112045.fselect(g)
return
aux
.
gfcheck
(
g
,
Card
.
IsSetCard
,
0x9c
,
0x53
)
return
aux
.
gfcheck
(
g
,
Card
.
IsSetCard
,
0x9c
,
0x53
)
end
end
function
c101112045
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c101112045
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112045
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c101112045
.
thfilter
(
chkc
,
e
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c101112045
.
thfilter
(
chkc
,
e
)
end
if
chk
==
0
then
return
g
:
CheckSubGroup
(
c101112045
.
fselect
,
1
,
2
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c101112045
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
)
if
chk
==
0
then
return
#
g
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c101112045
.
fselect
,
false
,
1
,
2
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c101112045
.
fselect
,
false
,
1
,
2
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
end
function
c101112045
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112045
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetTargetsRelateToChain
()
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
#
tg
==
0
then
return
end
if
#
tg
==
0
then
return
end
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
end
end
...
@@ -57,7 +56,7 @@ function c101112045.efffilter(c,e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,7 +56,7 @@ function c101112045.efffilter(c,e,tp,eg,ep,ev,re,r,rp)
local
te
=
c
.
star_knight_summon_effect
local
te
=
c
.
star_knight_summon_effect
if
not
te
then
return
false
end
if
not
te
then
return
false
end
local
tg
=
te
:
GetTarget
()
local
tg
=
te
:
GetTarget
()
return
not
tg
or
(
tg
and
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
)
return
not
tg
or
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
,
nil
,
c
)
end
end
function
c101112045
.
copytg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112045
.
copytg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c101112046.lua
View file @
be99e704
...
@@ -35,12 +35,12 @@ function c101112046.initial_effect(c)
...
@@ -35,12 +35,12 @@ function c101112046.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c101112046
.
efcon1
(
e
)
function
c101112046
.
efcon1
(
e
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
nil
,
0x114e
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
nil
,
0x114e
)
return
#
g
>=
2
return
ct
>=
2
end
end
function
c101112046
.
efcon2
(
e
)
function
c101112046
.
efcon2
(
e
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
nil
,
0x114e
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
nil
,
0x114e
)
return
#
g
==
4
return
ct
==
4
end
end
function
c101112046
.
immval
(
e
,
re
)
function
c101112046
.
immval
(
e
,
re
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
...
...
script/c101112047.lua
View file @
be99e704
...
@@ -46,8 +46,8 @@ function c101112047.filter(c)
...
@@ -46,8 +46,8 @@ function c101112047.filter(c)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_RITUAL
+
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
and
c
:
IsFaceupEx
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_RITUAL
+
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
and
c
:
IsFaceupEx
()
end
end
function
c101112047
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c101112047
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112047
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToHand
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToHand
()
end
local
g
=
Duel
.
GetMatchingGroup
(
c101112047
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
)
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
)
end
if
chk
==
0
then
return
#
g
>
0
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
nil
)
end
local
ct
=
0
local
ct
=
0
for
i
,
type
in
ipairs
({
TYPE_RITUAL
,
TYPE_FUSION
,
TYPE_SYNCHRO
,
TYPE_XYZ
})
do
for
i
,
type
in
ipairs
({
TYPE_RITUAL
,
TYPE_FUSION
,
TYPE_SYNCHRO
,
TYPE_XYZ
})
do
...
@@ -61,7 +61,7 @@ function c101112047.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -61,7 +61,7 @@ function c101112047.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c101112047
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112047
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
Get
ChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
Get
TargetsRelateToChain
(
)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
local
ct
=
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
local
ct
=
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
if
ct
>
0
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
ct
>
0
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
...
...
script/c101112049.lua
View file @
be99e704
...
@@ -57,16 +57,17 @@ function c101112049.tefilter(c)
...
@@ -57,16 +57,17 @@ function c101112049.tefilter(c)
return
c
:
IsSetCard
(
0x162
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetCurrentScale
()
%
2
==
0
return
c
:
IsSetCard
(
0x162
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetCurrentScale
()
%
2
==
0
end
end
function
c101112049
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112049
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
zone
=
e
:
GetHandler
():
GetLinkedZone
(
tp
)
if
chk
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
c101112049
.
spfilter
,
tp
,
LOCATION_PZONE
,
0
,
nil
,
e
,
tp
,
zone
)
local
zone
=
e
:
GetHandler
():
GetLinkedZone
(
tp
)
if
chk
==
0
then
return
#
g
>
0
end
return
Duel
.
IsExistingMatchingCard
(
c101112049
.
spfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
,
e
,
tp
,
zone
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_PZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_PZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
end
function
c101112049
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112049
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
zone
=
e
:
GetHandler
():
GetLinkedZone
(
tp
)
local
zone
=
e
:
GetHandler
():
GetLinkedZone
(
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112049
.
spfilter
,
tp
,
LOCATION_PZONE
,
0
,
nil
,
e
,
tp
,
zone
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112049
.
spfilter
,
tp
,
LOCATION_PZONE
,
0
,
nil
,
e
,
tp
,
zone
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
=
=
0
or
#
g
==
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
<
=
0
or
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
#
sg
==
0
or
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
,
zone
)
==
0
then
return
end
if
#
sg
==
0
or
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
,
zone
)
==
0
then
return
end
...
...
script/c101112054.lua
View file @
be99e704
...
@@ -31,10 +31,16 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -31,10 +31,16 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
b1
=
(
not
l
or
l
&
1
==
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
b1
=
(
not
l
or
l
&
1
==
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
b2
=
(
not
l
or
l
&
2
==
0
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b2
=
(
not
l
or
l
&
2
==
0
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
(
not
l
or
l
<
3
)
and
(
b1
or
b2
)
end
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
0
local
op
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EFFECT
)
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
,
1
),
aux
.
Stringid
(
id
,
2
))
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
,
1
),
aux
.
Stringid
(
id
,
2
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
,
1
))
else
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
id
,
2
))
+
1
end
if
op
==
0
then
if
op
==
0
then
e
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e
:
SetOperation
(
s
.
thop
)
e
:
SetOperation
(
s
.
thop
)
...
...
script/c101112057.lua
View file @
be99e704
...
@@ -60,17 +60,15 @@ function s.spfilter(c,e,tp)
...
@@ -60,17 +60,15 @@ function s.spfilter(c,e,tp)
return
(
b1
or
b2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
(
b1
or
b2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
g
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
ft
>
0
and
#
g
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
nil
,
e
,
tp
)
if
ft
=
=
0
or
#
g
==
0
then
return
end
if
ft
<
=
0
or
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
#
sg
==
0
then
return
end
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
\ No newline at end of file
script/c101112059.lua
View file @
be99e704
...
@@ -31,9 +31,12 @@ end
...
@@ -31,9 +31,12 @@ end
function
c101112059
.
counterfilter
(
c
)
function
c101112059
.
counterfilter
(
c
)
return
not
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
or
c
:
IsType
(
TYPE_PENDULUM
)
return
not
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
or
c
:
IsType
(
TYPE_PENDULUM
)
end
end
function
c101112059
.
rmfilter
(
c
)
return
c
:
IsFacedown
()
and
c
:
IsAbleToRemoveAsCost
(
POS_FACEDOWN
)
end
function
c101112059
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112059
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
check
=
Duel
.
GetCustomActivityCount
(
101112059
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
local
check
=
Duel
.
GetCustomActivityCount
(
101112059
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
):
Filter
(
Card
.
IsAbleToRemoveAsCost
,
nil
,
POS_FACEDOWN
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112059
.
rmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
chk
==
0
then
return
#
g
>=
2
and
check
end
if
chk
==
0
then
return
#
g
>=
2
and
check
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -82,16 +85,17 @@ function c101112059.rmfilter(c)
...
@@ -82,16 +85,17 @@ function c101112059.rmfilter(c)
return
c
:
IsFacedown
()
and
c
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
,
REASON_EFFECT
)
return
c
:
IsFacedown
()
and
c
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
end
function
c101112059
.
repcon
(
e
)
function
c101112059
.
repcon
(
e
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
e
:
GetHandlerPlayer
(),
LOCATION_EXTRA
,
0
,
nil
,
101112015
)
local
tp
=
e
:
GetHandlerPlayer
(
)
return
#
g
>
0
return
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
101112015
)
end
end
function
c101112059
.
repfilter
(
c
,
tp
)
function
c101112059
.
repfilter
(
c
,
tp
)
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x292
)
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x292
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
))
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
))
end
end
function
c101112059
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112059
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112059
.
rmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
chk
==
0
then
return
eg
:
IsExists
(
c101112059
.
repfilter
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
eg
:
IsExists
(
c101112059
.
repfilter
,
1
,
nil
,
tp
)
and
#
g
>
0
end
and
Duel
.
IsExistingMatchingCard
(
c101112059
.
rmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
return
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
end
end
function
c101112059
.
repval
(
e
,
c
)
function
c101112059
.
repval
(
e
,
c
)
...
@@ -100,7 +104,6 @@ end
...
@@ -100,7 +104,6 @@ end
function
c101112059
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112059
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
101112059
)
Duel
.
Hint
(
HINT_CARD
,
0
,
101112059
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112059
.
rmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112059
.
rmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
#
g
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
rg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Remove
(
rg
,
POS_FACEDOWN
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
rg
,
POS_FACEDOWN
,
REASON_EFFECT
+
REASON_REPLACE
)
...
...
script/c101112060.lua
View file @
be99e704
...
@@ -35,7 +35,8 @@ function c101112060.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,7 +35,8 @@ function c101112060.activate(e,tp,eg,ep,ev,re,r,rp)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
g
:
GetFirst
():
IsLocation
(
LOCATION_HAND
)
and
Duel
.
GetMatchingGroupCount
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_EXTRA
,
0
,
nil
,
101112015
)
>
0
then
if
g
:
GetFirst
():
IsLocation
(
LOCATION_HAND
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
101112015
)
then
Duel
.
Hint
(
HINT_CARD
,
0
,
101112015
)
Duel
.
Hint
(
HINT_CARD
,
0
,
101112015
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
script/c101112063.lua
View file @
be99e704
...
@@ -31,17 +31,14 @@ function c101112063.initial_effect(c)
...
@@ -31,17 +31,14 @@ function c101112063.initial_effect(c)
e3
:
SetOperation
(
c101112063
.
desop
)
e3
:
SetOperation
(
c101112063
.
desop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c101112063
.
setfilter
(
c
,
tp
)
function
c101112063
.
setfilter
(
c
)
local
seachc
=
not
c
:
IsCode
(
101112063
)
and
c
:
IsSetCard
(
0x17c
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
not
c
:
IsCode
(
101112063
)
and
c
:
IsSetCard
(
0x17c
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
local
locheck
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
or
c
:
IsType
(
TYPE_FIELD
)
return
seachc
and
locheck
end
end
function
c101112063
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112063
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112063
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112063
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112063
,
0
))
then
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112063
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
sc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
sc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
not
sc
then
return
end
Duel
.
SSet
(
tp
,
sc
)
Duel
.
SSet
(
tp
,
sc
)
end
end
end
end
...
...
script/c101112065.lua
View file @
be99e704
...
@@ -22,9 +22,11 @@ function c101112065.spfilter(c,e,tp)
...
@@ -22,9 +22,11 @@ function c101112065.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0x1162
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
return
c
:
IsSetCard
(
0x1162
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
c101112065
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112065
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112065
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
chk
==
0
then
local
ct
=
g
:
GetClassCount
(
Card
.
GetCode
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112065
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
if
chk
==
0
then
return
ct
>=
3
end
local
ct
=
g
:
GetClassCount
(
Card
.
GetCode
)
return
ct
>=
3
end
end
end
function
c101112065
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112065
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112065
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c101112065
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
...
...
script/c101112067.lua
View file @
be99e704
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
function
c101112067
.
initial_effect
(
c
)
function
c101112067
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c101112067
.
condition
)
e1
:
SetCondition
(
c101112067
.
condition
)
...
...
script/c101112070.lua
View file @
be99e704
...
@@ -56,8 +56,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,8 +56,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
Duel
.
HintSelection
(
g
)
local
ng
=
Duel
.
GetMatchingGroup
(
s
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
g
)
local
ng
=
Duel
.
GetMatchingGroup
(
s
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
g
)
for
nc
in
aux
.
Next
(
ng
)
do
for
nc
in
aux
.
Next
(
ng
)
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c101112071.lua
View file @
be99e704
...
@@ -73,8 +73,8 @@ function c101112071.scop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,8 +73,8 @@ function c101112071.scop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c101112071
.
rmcon
(
e
)
function
c101112071
.
rmcon
(
e
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
nil
,
0x188
)
local
tp
=
e
:
GetHandlerPlayer
(
)
return
#
g
>
0
return
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
0x188
)
end
end
function
c101112071
.
rmtg
(
e
,
c
)
function
c101112071
.
rmtg
(
e
,
c
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
...
...
script/c101112072.lua
View file @
be99e704
...
@@ -44,10 +44,10 @@ end
...
@@ -44,10 +44,10 @@ end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
tc
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
Duel
.
IsExistingMatchingCard
(
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tc
:
GetAttack
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
0
))
then
if
tc
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
Duel
.
IsExistingMatchingCard
(
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tc
:
GetAttack
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tc
:
GetAttack
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tc
:
GetAttack
())
if
#
g
==
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
...
...
script/c101112073.lua
View file @
be99e704
...
@@ -59,7 +59,7 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -59,7 +59,7 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
Get
ChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
Get
TargetsRelateToChain
(
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
end
...
...
script/c101112074.lua
View file @
be99e704
...
@@ -34,13 +34,11 @@ function c101112074.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,13 +34,11 @@ function c101112074.activate(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112074
,
0
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112074
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg1
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg1
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
if
#
sg1
==
0
then
return
false
end
Duel
.
SpecialSummon
(
sg1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sg1
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
elseif
not
tc
:
IsOriginalCodeRule
(
101112036
)
and
#
ag
>
0
elseif
not
tc
:
IsOriginalCodeRule
(
101112036
)
and
#
ag
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112074
,
1
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
101112074
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
ag1
=
ag
:
Select
(
tp
,
1
,
1
,
nil
)
local
ag1
=
ag
:
Select
(
tp
,
1
,
1
,
nil
)
if
#
ag1
==
0
then
return
false
end
Duel
.
HintSelection
(
ag1
)
Duel
.
HintSelection
(
ag1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c101112076.lua
View file @
be99e704
...
@@ -24,9 +24,8 @@ function c101112076.initial_effect(c)
...
@@ -24,9 +24,8 @@ function c101112076.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c101112076
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101112076
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetMatchingGroupCount
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
0x173
)
==
0
then
return
false
end
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
if
not
Duel
.
IsChainNegatable
(
ev
)
then
return
false
end
and
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
0x173
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
c101112076
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101112076
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
script/c101112079.lua
View file @
be99e704
...
@@ -55,10 +55,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -55,10 +55,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tg
=
Duel
.
Get
ChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
Get
TargetsRelateToChain
(
)
if
c
:
IsRelateToEffect
(
e
)
and
tg
then
if
#
tg
>
0
then
for
tc
in
aux
.
Next
(
tg
)
do
for
tc
in
aux
.
Next
(
tg
)
do
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
c
:
SetCardTarget
(
tc
)
c
:
SetCardTarget
(
tc
)
end
end
end
end
...
...
script/c101112080.lua
View file @
be99e704
...
@@ -22,7 +22,6 @@ function c101112080.cfop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -22,7 +22,6 @@ function c101112080.cfop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmDecktop
(
1
-
p
,
5
)
Duel
.
ConfirmDecktop
(
1
-
p
,
5
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToHand
,
1
,
1
,
nil
,
tp
):
GetFirst
()
local
tc
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToHand
,
1
,
1
,
nil
,
tp
):
GetFirst
()
if
not
tc
then
return
end
local
num
=
math.floor
(
3000
/
100
)
local
num
=
math.floor
(
3000
/
100
)
local
t
=
{}
local
t
=
{}
for
i
=
1
,
num
do
for
i
=
1
,
num
do
...
...
script/c1050186.lua
View file @
be99e704
...
@@ -22,8 +22,8 @@ end
...
@@ -22,8 +22,8 @@ end
function
c1050186
.
filter
(
c
)
function
c1050186
.
filter
(
c
)
return
c
:
IsSetCard
(
0x9c
)
and
not
c
:
IsCode
(
1050186
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x9c
)
and
not
c
:
IsCode
(
1050186
)
and
c
:
IsAbleToGrave
()
end
end
function
c1050186
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1050186
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1050186
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1050186
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
exc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c1050186
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1050186
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c14759024.lua
View file @
be99e704
...
@@ -18,13 +18,13 @@ end
...
@@ -18,13 +18,13 @@ end
function
c14759024
.
filter
(
c
)
function
c14759024
.
filter
(
c
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c14759024
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14759024
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c14759024
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
e
:
GetHandler
()
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c14759024
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
e
xc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c14759024
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14759024
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14759024
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14759024
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
script/c15871676.lua
View file @
be99e704
...
@@ -14,15 +14,15 @@ end
...
@@ -14,15 +14,15 @@ end
function
c15871676
.
filter
(
c
,
e
,
tp
)
function
c15871676
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c15871676
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c15871676
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c15871676
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
()
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c15871676
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
xc
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c15871676
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15871676
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15871676
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
()
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15871676
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
script/c16906241.lua
View file @
be99e704
...
@@ -14,15 +14,15 @@ end
...
@@ -14,15 +14,15 @@ end
function
c16906241
.
filter
(
c
,
e
,
tp
)
function
c16906241
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c16906241
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16906241
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c16906241
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
()
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c16906241
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
xc
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c16906241
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c16906241
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16906241
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
()
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c16906241
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
...
...
script/c26057276.lua
View file @
be99e704
...
@@ -22,9 +22,9 @@ end
...
@@ -22,9 +22,9 @@ end
function
c26057276
.
filter
(
c
)
function
c26057276
.
filter
(
c
)
return
c
:
IsSetCard
(
0x9c
)
and
not
c
:
IsCode
(
26057276
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x9c
)
and
not
c
:
IsCode
(
26057276
)
and
c
:
IsAbleToHand
()
end
end
function
c26057276
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c26057276
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
,
exc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c26057276
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c26057276
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c26057276
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c26057276
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
exc
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c26057276
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c26057276
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
...
...
script/c38667773.lua
View file @
be99e704
...
@@ -22,9 +22,9 @@ end
...
@@ -22,9 +22,9 @@ end
function
c38667773
.
filter
(
c
,
e
,
tp
)
function
c38667773
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x9c
)
and
not
c
:
IsCode
(
38667773
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x9c
)
and
not
c
:
IsCode
(
38667773
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c38667773
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c38667773
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c38667773
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c38667773
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
exc
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c38667773
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38667773
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c40143123.lua
View file @
be99e704
...
@@ -14,15 +14,15 @@ end
...
@@ -14,15 +14,15 @@ end
function
c40143123
.
filter
(
c
,
e
,
tp
)
function
c40143123
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsLevel
(
5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsLevel
(
5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c40143123
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c40143123
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c40143123
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
()
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c40143123
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
xc
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c40143123
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40143123
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c40143123
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
()
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c40143123
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
...
...
script/c41269771.lua
View file @
be99e704
...
@@ -14,15 +14,15 @@ end
...
@@ -14,15 +14,15 @@ end
function
c41269771
.
filter
(
c
,
e
,
tp
)
function
c41269771
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsLevel
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsLevel
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c41269771
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41269771
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c41269771
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
()
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c41269771
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
xc
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c41269771
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41269771
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c41269771
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
()
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c41269771
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
...
script/c42391240.lua
View file @
be99e704
...
@@ -18,9 +18,9 @@ end
...
@@ -18,9 +18,9 @@ end
function
c42391240
.
tgfilter
(
c
)
function
c42391240
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c42391240
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c42391240
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
,
exc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c42391240
.
tgfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c42391240
.
tgfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c42391240
.
tgfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c42391240
.
tgfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
exc
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c42391240
.
tgfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c42391240
.
tgfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
...
...
script/c63274863.lua
View file @
be99e704
...
@@ -22,10 +22,10 @@ end
...
@@ -22,10 +22,10 @@ end
function
c63274863
.
filter
(
c
)
function
c63274863
.
filter
(
c
)
return
c
:
IsSetCard
(
0x9c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
return
c
:
IsSetCard
(
0x9c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
end
end
function
c63274863
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c63274863
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
,
exc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c63274863
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c63274863
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingTarget
(
c63274863
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
5
,
nil
)
end
and
Duel
.
IsExistingTarget
(
c63274863
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
5
,
exc
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c63274863
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
5
,
5
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c63274863
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
5
,
5
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
5
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
5
,
0
,
0
)
...
...
script/c75878039.lua
View file @
be99e704
...
@@ -22,8 +22,8 @@ end
...
@@ -22,8 +22,8 @@ end
function
c75878039
.
filter
(
c
)
function
c75878039
.
filter
(
c
)
return
c
:
IsSetCard
(
0x9c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
75878039
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x9c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
75878039
)
and
c
:
IsAbleToHand
()
end
end
function
c75878039
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75878039
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75878039
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75878039
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
exc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c75878039
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75878039
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c78486968.lua
View file @
be99e704
...
@@ -14,13 +14,13 @@ end
...
@@ -14,13 +14,13 @@ end
function
c78486968
.
filter
(
c
)
function
c78486968
.
filter
(
c
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c78486968
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78486968
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c78486968
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
e
:
GetHandler
()
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c78486968
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
e
xc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c78486968
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78486968
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78486968
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
e
:
GetHandler
()
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78486968
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
script/c99668578.lua
View file @
be99e704
...
@@ -22,14 +22,14 @@ end
...
@@ -22,14 +22,14 @@ end
function
c99668578
.
filter
(
c
)
function
c99668578
.
filter
(
c
)
return
c
:
IsSetCard
(
0x9c
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x9c
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c99668578
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99668578
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
_
,
exc
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
c99668578
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
()
)
end
and
Duel
.
IsExistingMatchingCard
(
c99668578
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
xc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c99668578
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99668578
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
DiscardHand
(
tp
,
c99668578
.
filter
,
1
,
1
,
REASON_EFFECT
,
e
:
GetHandler
()
)
~=
0
then
if
Duel
.
DiscardHand
(
tp
,
c99668578
.
filter
,
1
,
1
,
REASON_EFFECT
)
~=
0
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment