Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-scripts-888
Commits
8a9ca336
Commit
8a9ca336
authored
Feb 12, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' from upstream
parents
a592de0b
c4ae724f
Changes
47
Hide whitespace changes
Inline
Side-by-side
Showing
47 changed files
with
197 additions
and
75 deletions
+197
-75
c11398951.lua
c11398951.lua
+3
-0
c13002461.lua
c13002461.lua
+1
-0
c14357527.lua
c14357527.lua
+1
-0
c15447747.lua
c15447747.lua
+3
-0
c19942835.lua
c19942835.lua
+11
-9
c22125101.lua
c22125101.lua
+1
-3
c23288411.lua
c23288411.lua
+8
-0
c24484270.lua
c24484270.lua
+1
-0
c31320433.lua
c31320433.lua
+1
-0
c31855260.lua
c31855260.lua
+7
-0
c32335697.lua
c32335697.lua
+11
-9
c36920182.lua
c36920182.lua
+10
-7
c37491810.lua
c37491810.lua
+1
-0
c37961969.lua
c37961969.lua
+7
-0
c38363525.lua
c38363525.lua
+11
-9
c41782653.lua
c41782653.lua
+1
-0
c4334811.lua
c4334811.lua
+1
-0
c47778083.lua
c47778083.lua
+5
-4
c52394047.lua
c52394047.lua
+1
-4
c53262004.lua
c53262004.lua
+1
-0
c54283059.lua
c54283059.lua
+1
-0
c55136228.lua
c55136228.lua
+1
-0
c55704856.lua
c55704856.lua
+7
-0
c572850.lua
c572850.lua
+7
-0
c62314831.lua
c62314831.lua
+9
-3
c65357623.lua
c65357623.lua
+11
-9
c66150724.lua
c66150724.lua
+1
-3
c67752972.lua
c67752972.lua
+1
-0
c69973414.lua
c69973414.lua
+1
-0
c70534340.lua
c70534340.lua
+7
-0
c71143015.lua
c71143015.lua
+8
-0
c74078255.lua
c74078255.lua
+7
-0
c75991898.lua
c75991898.lua
+1
-0
c78316184.lua
c78316184.lua
+1
-0
c80033124.lua
c80033124.lua
+7
-0
c81306186.lua
c81306186.lua
+1
-0
c84766279.lua
c84766279.lua
+1
-0
c89320376.lua
c89320376.lua
+1
-0
c91449144.lua
c91449144.lua
+1
-0
c91668401.lua
c91668401.lua
+9
-5
c91742238.lua
c91742238.lua
+11
-9
c92001300.lua
c92001300.lua
+1
-1
c92379223.lua
c92379223.lua
+6
-0
c94553671.lua
c94553671.lua
+1
-0
c94730900.lua
c94730900.lua
+1
-0
c95238394.lua
c95238394.lua
+7
-0
c95658967.lua
c95658967.lua
+1
-0
No files found.
c11398951.lua
View file @
8a9ca336
...
@@ -46,6 +46,9 @@ function c11398951.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,6 +46,9 @@ function c11398951.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
mat
then
goto
cancel
end
if
not
mat
then
goto
cancel
end
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
local
mat2
=
mat
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
):
Filter
(
Card
.
IsRace
,
nil
,
RACE_WARRIOR
+
RACE_FAIRY
)
local
mat2
=
mat
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
):
Filter
(
Card
.
IsRace
,
nil
,
RACE_WARRIOR
+
RACE_FAIRY
)
if
#
mat2
>
0
then
Duel
.
HintSelection
(
mat2
)
end
mat
:
Sub
(
mat2
)
mat
:
Sub
(
mat2
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
ReleaseRitualMaterial
(
mat
)
Duel
.
SendtoDeck
(
mat2
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
Duel
.
SendtoDeck
(
mat2
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
...
...
c13002461.lua
View file @
8a9ca336
...
@@ -20,6 +20,7 @@ function c13002461.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -20,6 +20,7 @@ function c13002461.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13002461
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13002461
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c13002461
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c13002461
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c13002461
.
filter
(
c
)
function
c13002461
.
filter
(
c
)
...
...
c14357527.lua
View file @
8a9ca336
...
@@ -50,6 +50,7 @@ end
...
@@ -50,6 +50,7 @@ end
function
c14357527
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c14357527
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14357527
.
sprfilter
,
tp
,
LOCATION_REMOVED
,
0
,
3
,
3
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14357527
.
sprfilter
,
tp
,
LOCATION_REMOVED
,
0
,
3
,
3
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
end
function
c14357527
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14357527
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c15447747.lua
View file @
8a9ca336
...
@@ -71,6 +71,9 @@ function c15447747.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,6 +71,9 @@ function c15447747.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15447747
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
99
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c15447747
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
99
,
nil
)
local
ct
=#
g
local
ct
=#
g
if
ct
>
0
then
Duel
.
HintSelection
(
g
)
end
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
==
0
then
return
end
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
==
0
then
return
end
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToBattle
()
and
ct
>
0
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToBattle
()
and
ct
>
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c19942835.lua
View file @
8a9ca336
...
@@ -58,14 +58,16 @@ function c19942835.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,14 +58,16 @@ function c19942835.setop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c19942835
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c19942835
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
if
#
g
>
0
then
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
c
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
end
c22125101.lua
View file @
8a9ca336
...
@@ -38,9 +38,7 @@ function c22125101.initial_effect(c)
...
@@ -38,9 +38,7 @@ function c22125101.initial_effect(c)
end
end
end
end
function
c22125101
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22125101
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
Card
.
IsSummonType
,
1
,
nil
,
SUMMON_TYPE_PENDULUM
)
then
Duel
.
RegisterFlagEffect
(
rp
,
22125101
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
rp
,
22125101
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
function
c22125101
.
lcheck
(
g
)
function
c22125101
.
lcheck
(
g
)
return
g
:
IsExists
(
Card
.
IsLinkType
,
1
,
nil
,
TYPE_PENDULUM
)
return
g
:
IsExists
(
Card
.
IsLinkType
,
1
,
nil
,
TYPE_PENDULUM
)
...
...
c23288411.lua
View file @
8a9ca336
...
@@ -67,6 +67,14 @@ function s.spstg(e,tp,eg,ep,ev,re,r,rp,chk,c)
...
@@ -67,6 +67,14 @@ function s.spstg(e,tp,eg,ep,ev,re,r,rp,chk,c)
end
end
function
s
.
spsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
s
.
spsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
local
hg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
if
#
hg
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
hg
)
end
local
gg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
if
#
gg
>
0
then
Duel
.
HintSelection
(
gg
)
end
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
g
:
DeleteGroup
()
g
:
DeleteGroup
()
end
end
...
...
c24484270.lua
View file @
8a9ca336
...
@@ -100,6 +100,7 @@ function c24484270.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -100,6 +100,7 @@ function c24484270.spop(e,tp,eg,ep,ev,re,r,rp)
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat1
)
tc
:
SetMaterial
(
mat1
)
Duel
.
HintSelection
(
mat1
)
Duel
.
SendtoDeck
(
mat1
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
mat1
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c31320433.lua
View file @
8a9ca336
...
@@ -71,6 +71,7 @@ function c31320433.daop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,6 +71,7 @@ function c31320433.daop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
...
...
c31855260.lua
View file @
8a9ca336
...
@@ -70,6 +70,10 @@ function c31855260.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,6 +70,10 @@ function c31855260.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat
:
Filter
(
Card
.
IsFacedown
,
nil
)
local
cg
=
mat
:
Filter
(
Card
.
IsFacedown
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
if
mat
:
Filter
(
c31855260
.
cfilter
,
nil
):
GetCount
()
>
0
then
local
cg
=
mat
:
Filter
(
c31855260
.
cfilter
,
nil
)
Duel
.
HintSelection
(
cg
)
end
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -81,3 +85,6 @@ function c31855260.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -81,3 +85,6 @@ function c31855260.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
function
c31855260
.
cfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
or
(
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
end
c32335697.lua
View file @
8a9ca336
...
@@ -64,14 +64,16 @@ function c32335697.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,14 +64,16 @@ function c32335697.setop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c32335697
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c32335697
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
if
#
g
>
0
then
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
c
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
end
c36920182.lua
View file @
8a9ca336
...
@@ -76,13 +76,16 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,13 +76,16 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
tdfilter
),
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
tdfilter
),
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
tdcheck
,
false
,
5
,
5
,
e
,
tp
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
tdcheck
,
false
,
5
,
5
,
e
,
tp
)
if
sg
and
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
if
#
sg
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
HintSelection
(
sg
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
nil
)
if
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
local
tc
=
tg
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
if
tc
then
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
nil
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_SYNCHRO
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
tc
=
tg
:
GetFirst
()
tc
:
CompleteProcedure
()
if
tc
then
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_SYNCHRO
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tc
:
CompleteProcedure
()
end
end
end
end
end
end
end
...
...
c37491810.lua
View file @
8a9ca336
...
@@ -77,6 +77,7 @@ function c37491810.desmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,6 +77,7 @@ function c37491810.desmop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c37491810
.
desmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c37491810
.
desmfilter
,
tp
,
LOCATION_EXTRA
,
0
,
2
,
2
,
nil
)
Duel
.
HintSelection
(
g
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
and
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
and
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
...
...
c37961969.lua
View file @
8a9ca336
...
@@ -99,6 +99,10 @@ function c37961969.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -99,6 +99,10 @@ function c37961969.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat1
:
Filter
(
c37961969
.
fdfilter
,
nil
)
local
cg
=
mat1
:
Filter
(
c37961969
.
fdfilter
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
if
mat1
:
IsExists
(
c37961969
.
fdfilter2
,
1
,
nil
)
then
local
cg
=
mat1
:
Filter
(
c37961969
.
fdfilter2
,
nil
)
Duel
.
HintSelection
(
cg
)
end
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -113,3 +117,6 @@ end
...
@@ -113,3 +117,6 @@ end
function
c37961969
.
fdfilter
(
c
)
function
c37961969
.
fdfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
end
end
function
c37961969
.
fdfilter2
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
)
end
c38363525.lua
View file @
8a9ca336
...
@@ -54,14 +54,16 @@ function c38363525.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,14 +54,16 @@ function c38363525.setop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c38363525
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c38363525
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
if
#
g
>
0
then
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
c
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
end
c41782653.lua
View file @
8a9ca336
...
@@ -54,6 +54,7 @@ end
...
@@ -54,6 +54,7 @@ end
function
c41782653
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c41782653
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c41782653
.
sprfilter
,
tp
,
LOCATION_REMOVED
,
0
,
5
,
5
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c41782653
.
sprfilter
,
tp
,
LOCATION_REMOVED
,
0
,
5
,
5
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c41782653
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41782653
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c4334811.lua
View file @
8a9ca336
...
@@ -47,6 +47,7 @@ function c4334811.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -47,6 +47,7 @@ function c4334811.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c4334811
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c4334811
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4334811
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4334811
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c4334811
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4334811
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c47778083.lua
View file @
8a9ca336
...
@@ -22,10 +22,11 @@ function c47778083.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -22,10 +22,11 @@ function c47778083.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
IsExistingTarget
(
c47778083
.
filter
,
1
-
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
1
-
tp
)
and
Duel
.
IsExistingTarget
(
c47778083
.
filter
,
1
-
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
1
-
tp
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
turnp
=
Duel
.
GetTurnPlayer
()
local
sg
=
Duel
.
SelectTarget
(
tp
,
c47778083
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
turnp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectTarget
(
turnp
,
c47778083
.
filter
,
turnp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
turnp
)
local
og
=
Duel
.
SelectTarget
(
1
-
tp
,
c47778083
.
filter
,
1
-
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
1
-
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
turnp
,
HINTMSG_SPSUMMON
)
local
og
=
Duel
.
SelectTarget
(
1
-
turnp
,
c47778083
.
filter
,
1
-
turnp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
1
-
turnp
)
local
sc
=
sg
:
GetFirst
()
local
sc
=
sg
:
GetFirst
()
local
oc
=
og
:
GetFirst
()
local
oc
=
og
:
GetFirst
()
local
g
=
Group
.
FromCards
(
sc
,
oc
)
local
g
=
Group
.
FromCards
(
sc
,
oc
)
...
...
c52394047.lua
View file @
8a9ca336
...
@@ -49,10 +49,7 @@ function c52394047.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,10 +49,7 @@ function c52394047.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c52394047
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c52394047
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c52394047
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c52394047
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
cf
=
g
:
Filter
(
Card
.
IsFacedown
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
if
cf
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
cf
)
end
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c52394047
.
atkfilter
(
c
)
function
c52394047
.
atkfilter
(
c
)
...
...
c53262004.lua
View file @
8a9ca336
...
@@ -60,6 +60,7 @@ end
...
@@ -60,6 +60,7 @@ end
function
c53262004
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53262004
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c53262004
.
disfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c53262004
.
disfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
...
...
c54283059.lua
View file @
8a9ca336
...
@@ -75,6 +75,7 @@ function c54283059.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,6 +75,7 @@ function c54283059.activate(e,tp,eg,ep,ev,re,r,rp)
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
mat
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg
,
nil
,
chkf
)
local
mat
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat
)
tc
:
SetMaterial
(
mat
)
Duel
.
HintSelection
(
mat
)
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c55136228.lua
View file @
8a9ca336
...
@@ -52,6 +52,7 @@ function c55136228.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -52,6 +52,7 @@ function c55136228.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c55136228
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c55136228
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c55136228
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c55136228
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
e
:
GetHandler
())
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c55136228
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55136228
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c55704856.lua
View file @
8a9ca336
...
@@ -79,6 +79,10 @@ function c55704856.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -79,6 +79,10 @@ function c55704856.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat
:
Filter
(
Card
.
IsFacedown
,
nil
)
local
cg
=
mat
:
Filter
(
Card
.
IsFacedown
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
if
mat
:
Filter
(
c55704856
.
cfilter
,
nil
):
GetCount
()
>
0
then
local
cg
=
mat
:
Filter
(
c55704856
.
cfilter
,
nil
)
Duel
.
HintSelection
(
cg
)
end
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -102,6 +106,9 @@ function c55704856.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -102,6 +106,9 @@ function c55704856.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
aux
.
FCheckAdditional
=
nil
aux
.
FCheckAdditional
=
nil
end
end
function
c55704856
.
cfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_REMOVED
)
or
(
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
end
function
c55704856
.
ftarget
(
e
,
c
)
function
c55704856
.
ftarget
(
e
,
c
)
return
e
:
GetLabel
()
~=
c
:
GetFlagEffectLabel
(
55704856
)
return
e
:
GetLabel
()
~=
c
:
GetFlagEffectLabel
(
55704856
)
end
end
c572850.lua
View file @
8a9ca336
...
@@ -106,6 +106,10 @@ function c572850.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -106,6 +106,10 @@ function c572850.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat1
:
Filter
(
c572850
.
fdfilter
,
nil
)
local
cg
=
mat1
:
Filter
(
c572850
.
fdfilter
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
if
mat1
:
IsExists
(
c572850
.
fdfilter2
,
1
,
nil
)
then
local
cg
=
mat1
:
Filter
(
c572850
.
fdfilter2
,
nil
)
Duel
.
HintSelection
(
cg
)
end
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -120,3 +124,6 @@ end
...
@@ -120,3 +124,6 @@ end
function
c572850
.
fdfilter
(
c
)
function
c572850
.
fdfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
end
end
function
c572850
.
fdfilter2
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
)
end
c62314831.lua
View file @
8a9ca336
...
@@ -109,6 +109,8 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -109,6 +109,8 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local
g1
=
eg
:
Filter
(
Card
.
IsRelateToChain
,
nil
):
Filter
(
s
.
filter2
,
nil
)
local
g1
=
eg
:
Filter
(
Card
.
IsRelateToChain
,
nil
):
Filter
(
s
.
filter2
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
s
.
atkfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
s
.
atkfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
#
g1
~=
0
and
#
g2
~=
0
then
if
#
g1
~=
0
and
#
g2
~=
0
then
Duel
.
HintSelection
(
g1
)
Duel
.
HintSelection
(
g2
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
...
@@ -125,9 +127,12 @@ end
...
@@ -125,9 +127,12 @@ end
function
s
.
todeckop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
todeckop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
eg
:
Filter
(
Card
.
IsRelateToChain
,
nil
):
FilterSelect
(
tp
,
s
.
filter3
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
eg
:
Filter
(
Card
.
IsRelateToChain
,
nil
):
FilterSelect
(
tp
,
s
.
filter3
,
1
,
1
,
nil
,
e
,
tp
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
then
if
#
g
>
0
then
Duel
.
ShuffleDeck
(
tp
)
Duel
.
HintSelection
(
g
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
then
Duel
.
ShuffleDeck
(
tp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
end
end
end
function
s
.
tohandop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tohandop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -137,6 +142,7 @@ function s.tohandop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -137,6 +142,7 @@ function s.tohandop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
#
g
~=
0
then
if
#
g
~=
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
end
end
c65357623.lua
View file @
8a9ca336
...
@@ -57,14 +57,16 @@ function c65357623.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,14 +57,16 @@ function c65357623.setop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65357623
.
retfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65357623
.
retfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
if
#
g
>
0
then
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
c
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
end
c66150724.lua
View file @
8a9ca336
...
@@ -32,9 +32,7 @@ function c66150724.initial_effect(c)
...
@@ -32,9 +32,7 @@ function c66150724.initial_effect(c)
end
end
end
end
function
c66150724
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66150724
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
Card
.
IsSummonType
,
1
,
nil
,
SUMMON_TYPE_PENDULUM
)
then
Duel
.
RegisterFlagEffect
(
rp
,
66150724
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
rp
,
66150724
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
function
c66150724
.
thfilter1
(
c
)
function
c66150724
.
thfilter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0xf2
)
and
c
:
IsAbleToHand
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0xf2
)
and
c
:
IsAbleToHand
()
...
...
c67752972.lua
View file @
8a9ca336
...
@@ -50,6 +50,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,6 +50,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
g1
:
GetFirst
(),
opchk
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
g1
:
GetFirst
(),
opchk
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
Duel
.
HintSelection
(
g1
)
if
Duel
.
SendtoDeck
(
g1
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
<
2
if
Duel
.
SendtoDeck
(
g1
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
<
2
or
not
g1
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
then
return
end
or
not
g1
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
c69973414.lua
View file @
8a9ca336
...
@@ -48,6 +48,7 @@ function c69973414.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,6 +48,7 @@ function c69973414.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c69973414
.
fselect
,
false
,
2
,
2
,
e
,
tp
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c69973414
.
fselect
,
false
,
2
,
2
,
e
,
tp
)
e
:
SetLabel
(
sg
:
GetSum
(
Card
.
GetLevel
))
e
:
SetLabel
(
sg
:
GetSum
(
Card
.
GetLevel
))
Duel
.
HintSelection
(
sg
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c69973414
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69973414
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c70534340.lua
View file @
8a9ca336
...
@@ -83,6 +83,10 @@ function c70534340.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,6 +83,10 @@ function c70534340.spop(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat
:
Filter
(
Card
.
IsFacedown
,
nil
)
local
cg
=
mat
:
Filter
(
Card
.
IsFacedown
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
if
mat
:
IsExists
(
c70534340
.
fdfilter
,
1
,
nil
)
then
local
cg
=
mat
:
Filter
(
c70534340
.
fdfilter
,
nil
)
Duel
.
HintSelection
(
cg
)
end
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -113,3 +117,6 @@ end
...
@@ -113,3 +117,6 @@ end
function
c70534340
.
splimit
(
e
,
c
)
function
c70534340
.
splimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
not
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
end
function
c70534340
.
fdfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
c71143015.lua
View file @
8a9ca336
...
@@ -82,6 +82,10 @@ function c71143015.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,6 +82,10 @@ function c71143015.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat1
:
Filter
(
Card
.
IsFacedown
,
nil
)
local
cg
=
mat1
:
Filter
(
Card
.
IsFacedown
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
if
mat1
:
Filter
(
c71143015
.
cfilter
,
nil
):
GetCount
()
>
0
then
local
cg
=
mat1
:
Filter
(
c71143015
.
cfilter
,
nil
)
Duel
.
HintSelection
(
cg
)
end
Duel
.
SendtoDeck
(
mat1
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
mat1
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -104,3 +108,7 @@ function c71143015.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -104,3 +108,7 @@ function c71143015.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
end
end
end
end
function
c71143015
.
cfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
or
(
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
end
c74078255.lua
View file @
8a9ca336
...
@@ -93,6 +93,10 @@ function c74078255.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -93,6 +93,10 @@ function c74078255.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat1
:
Filter
(
c74078255
.
fdfilter
,
nil
)
local
cg
=
mat1
:
Filter
(
c74078255
.
fdfilter
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
if
mat1
:
IsExists
(
c74078255
.
fdfilter2
,
1
,
nil
)
then
local
cg
=
mat1
:
Filter
(
c74078255
.
fdfilter2
,
nil
)
Duel
.
HintSelection
(
cg
)
end
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
aux
.
PlaceCardsOnDeckBottom
(
tp
,
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -107,3 +111,6 @@ end
...
@@ -107,3 +111,6 @@ end
function
c74078255
.
fdfilter
(
c
)
function
c74078255
.
fdfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFacedown
()
or
c
:
IsLocation
(
LOCATION_HAND
)
end
end
function
c74078255
.
fdfilter2
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
)
end
c75991898.lua
View file @
8a9ca336
...
@@ -22,6 +22,7 @@ function c75991898.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -22,6 +22,7 @@ function c75991898.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75991898
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75991898
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75991898
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75991898
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c75991898
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c75991898
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c78316184.lua
View file @
8a9ca336
...
@@ -69,6 +69,7 @@ function c78316184.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -69,6 +69,7 @@ function c78316184.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c78316184
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c78316184
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78316184
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78316184
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c78316184
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78316184
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c80033124.lua
View file @
8a9ca336
...
@@ -36,6 +36,9 @@ end
...
@@ -36,6 +36,9 @@ end
function
c80033124
.
cfilter
(
c
)
function
c80033124
.
cfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
IsOnField
()
and
c
:
IsFacedown
())
return
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
IsOnField
()
and
c
:
IsFacedown
())
end
end
function
c80033124
.
cfilter2
(
c
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
or
(
c
:
IsOnField
()
and
c
:
IsFaceup
())
end
function
c80033124
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c80033124
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
then
return
end
if
not
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_FMATERIAL
)
then
return
end
local
mg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c80033124
.
ffilter
),
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
,
e
)
local
mg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c80033124
.
ffilter
),
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
nil
,
e
)
...
@@ -47,6 +50,10 @@ function c80033124.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,6 +50,10 @@ function c80033124.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
end
end
local
cg2
=
sg
:
Filter
(
c80033124
.
cfilter2
,
nil
)
if
cg2
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
cg2
)
end
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c80033124
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c80033124
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c81306186.lua
View file @
8a9ca336
...
@@ -92,6 +92,7 @@ function c81306186.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -92,6 +92,7 @@ function c81306186.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
then
if
tc
then
rc
:
SetMaterial
(
Group
.
FromCards
(
tc
))
rc
:
SetMaterial
(
Group
.
FromCards
(
tc
))
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
HintSelection
(
Group
.
FromCards
(
tc
))
if
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
==
0
then
return
end
if
Duel
.
SendtoDeck
(
tc
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
==
0
then
return
end
else
else
if
Duel
.
Release
(
tc
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
==
0
then
return
end
if
Duel
.
Release
(
tc
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_RITUAL
)
==
0
then
return
end
...
...
c84766279.lua
View file @
8a9ca336
...
@@ -23,6 +23,7 @@ function c84766279.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -23,6 +23,7 @@ function c84766279.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c84766279
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c84766279
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c84766279
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c84766279
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c84766279
.
filter
(
c
)
function
c84766279
.
filter
(
c
)
...
...
c89320376.lua
View file @
8a9ca336
...
@@ -92,6 +92,7 @@ function c89320376.poscost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -92,6 +92,7 @@ function c89320376.poscost(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c89320376
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c89320376
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c89320376
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c89320376
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
c89320376
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
c89320376
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
end
...
...
c91449144.lua
View file @
8a9ca336
...
@@ -20,6 +20,7 @@ function c91449144.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -20,6 +20,7 @@ function c91449144.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c91449144
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c91449144
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91449144
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91449144
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c91449144
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c91449144
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c91668401.lua
View file @
8a9ca336
...
@@ -86,11 +86,15 @@ end
...
@@ -86,11 +86,15 @@ end
function
c91668401
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91668401
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91668401
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91668401
.
tdfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
if
#
g
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
HintSelection
(
g
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
if
#
g2
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Destroy
(
g2
,
REASON_EFFECT
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
#
g2
>
0
then
Duel
.
HintSelection
(
g2
)
Duel
.
Destroy
(
g2
,
REASON_EFFECT
)
end
end
end
end
end
end
end
c91742238.lua
View file @
8a9ca336
...
@@ -57,14 +57,16 @@ function c91742238.setop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,14 +57,16 @@ function c91742238.setop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91742238
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c91742238
.
setfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
if
#
g
>
0
then
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
c
)
if
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
~=
0
then
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
end
c92001300.lua
View file @
8a9ca336
...
@@ -50,5 +50,5 @@ function c92001300.sumcon(e,c,minc)
...
@@ -50,5 +50,5 @@ function c92001300.sumcon(e,c,minc)
end
end
function
c92001300
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c92001300
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
c
:
SetMaterial
(
Group
.
FromCards
(
e
:
GetHandler
()))
c
:
SetMaterial
(
Group
.
FromCards
(
e
:
GetHandler
()))
Duel
.
Release
(
e
:
GetHandler
(),
REASON_SUMMON
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_SUMMON
+
REASON_MATERIAL
)
end
end
c92379223.lua
View file @
8a9ca336
...
@@ -58,6 +58,9 @@ function c92379223.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,6 +58,9 @@ function c92379223.activate(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetClassCount
(
Card
.
GetCode
)
>=
3
then
if
g
:
GetClassCount
(
Card
.
GetCode
)
>=
3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
3
,
3
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
3
,
3
)
if
#
tg
>
0
then
Duel
.
HintSelection
(
tg
)
end
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
if
og
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
...
@@ -75,6 +78,9 @@ function c92379223.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,6 +78,9 @@ function c92379223.activate(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetClassCount
(
Card
.
GetCode
)
>=
3
then
if
g
:
GetClassCount
(
Card
.
GetCode
)
>=
3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
3
,
3
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
3
,
3
)
if
#
tg
>
0
then
Duel
.
HintSelection
(
tg
)
end
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
if
og
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_DECK
)
then
Duel
.
ShuffleDeck
(
tp
)
end
...
...
c94553671.lua
View file @
8a9ca336
...
@@ -77,5 +77,6 @@ function c94553671.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,5 +77,6 @@ function c94553671.thop(e,tp,eg,ep,ev,re,r,rp)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
tg
)
end
end
end
end
c94730900.lua
View file @
8a9ca336
...
@@ -36,6 +36,7 @@ function c94730900.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -36,6 +36,7 @@ function c94730900.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c94730900
.
cfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
3
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c94730900
.
cfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
3
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94730900
.
cfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
3
,
3
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94730900
.
cfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
3
,
3
,
e
:
GetHandler
())
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
end
end
function
c94730900
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94730900
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c95238394.lua
View file @
8a9ca336
...
@@ -76,6 +76,10 @@ function c95238394.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,6 +76,10 @@ function c95238394.activate(e,tp,eg,ep,ev,re,r,rp)
local
cg
=
mat
:
Filter
(
Card
.
IsFacedown
,
nil
)
local
cg
=
mat
:
Filter
(
Card
.
IsFacedown
,
nil
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
end
end
if
mat
:
Filter
(
c95238394
.
cfilter
,
nil
):
GetCount
()
>
0
then
local
cg
=
mat
:
Filter
(
c95238394
.
cfilter
,
nil
)
Duel
.
HintSelection
(
cg
)
end
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SendtoDeck
(
mat
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -87,6 +91,9 @@ function c95238394.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -87,6 +91,9 @@ function c95238394.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
end
end
function
c95238394
.
cfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
or
(
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
end
function
c95238394
.
thfilter
(
c
)
function
c95238394
.
thfilter
(
c
)
return
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
IsAbleToHand
()
end
end
...
...
c95658967.lua
View file @
8a9ca336
...
@@ -82,6 +82,7 @@ function c95658967.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -82,6 +82,7 @@ function c95658967.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetLabel
(
lv
)
e
:
SetLabel
(
lv
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c95658967
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
lv
,
lv
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c95658967
.
cfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
lv
,
lv
,
nil
)
Duel
.
HintSelection
(
tg
)
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SendtoDeck
(
tg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
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