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
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
Vee4
ygopro-scripts-888
Commits
6139ed0f
Commit
6139ed0f
authored
Jul 27, 2022
by
mercury233
Committed by
GitHub
Jul 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove redundant chk param (#1924)
parent
cc598369
Changes
196
Hide whitespace changes
Inline
Side-by-side
Showing
196 changed files
with
199 additions
and
199 deletions
+199
-199
c11411223.lua
c11411223.lua
+1
-1
c12081875.lua
c12081875.lua
+1
-1
c12171659.lua
c12171659.lua
+1
-1
c12533811.lua
c12533811.lua
+1
-1
c12986807.lua
c12986807.lua
+1
-1
c13093792.lua
c13093792.lua
+1
-1
c13650422.lua
c13650422.lua
+1
-1
c14124483.lua
c14124483.lua
+1
-1
c14613029.lua
c14613029.lua
+1
-1
c16255173.lua
c16255173.lua
+1
-1
c16678947.lua
c16678947.lua
+1
-1
c17259470.lua
c17259470.lua
+1
-1
c17377751.lua
c17377751.lua
+1
-1
c17393207.lua
c17393207.lua
+1
-1
c17948378.lua
c17948378.lua
+1
-1
c18551923.lua
c18551923.lua
+1
-1
c18698739.lua
c18698739.lua
+1
-1
c18993198.lua
c18993198.lua
+1
-1
c20318029.lua
c20318029.lua
+1
-1
c20374351.lua
c20374351.lua
+1
-1
c2061963.lua
c2061963.lua
+1
-1
c21454943.lua
c21454943.lua
+1
-1
c22454453.lua
c22454453.lua
+1
-1
c22624373.lua
c22624373.lua
+1
-1
c23848752.lua
c23848752.lua
+1
-1
c23915499.lua
c23915499.lua
+1
-1
c24096499.lua
c24096499.lua
+1
-1
c24508238.lua
c24508238.lua
+1
-1
c24623598.lua
c24623598.lua
+1
-1
c25231813.lua
c25231813.lua
+1
-1
c25244515.lua
c25244515.lua
+1
-1
c26577155.lua
c26577155.lua
+1
-1
c26842483.lua
c26842483.lua
+1
-1
c26914168.lua
c26914168.lua
+1
-1
c2851070.lua
c2851070.lua
+1
-1
c29596581.lua
c29596581.lua
+1
-1
c29888389.lua
c29888389.lua
+1
-1
c30548775.lua
c30548775.lua
+1
-1
c30587695.lua
c30587695.lua
+1
-1
c30603688.lua
c30603688.lua
+1
-1
c30741334.lua
c30741334.lua
+1
-1
c31034919.lua
c31034919.lua
+1
-1
c31385077.lua
c31385077.lua
+1
-1
c31786629.lua
c31786629.lua
+1
-1
c33017655.lua
c33017655.lua
+1
-1
c33026283.lua
c33026283.lua
+1
-1
c33248692.lua
c33248692.lua
+1
-1
c33883834.lua
c33883834.lua
+1
-1
c3431737.lua
c3431737.lua
+1
-1
c34419588.lua
c34419588.lua
+1
-1
c35448319.lua
c35448319.lua
+1
-1
c35595518.lua
c35595518.lua
+1
-1
c35815783.lua
c35815783.lua
+1
-1
c3648368.lua
c3648368.lua
+1
-1
c37742478.lua
c37742478.lua
+1
-1
c3790062.lua
c3790062.lua
+1
-1
c37926346.lua
c37926346.lua
+1
-1
c38730226.lua
c38730226.lua
+1
-1
c39261576.lua
c39261576.lua
+1
-1
c4041838.lua
c4041838.lua
+1
-1
c40921744.lua
c40921744.lua
+1
-1
c40939228.lua
c40939228.lua
+1
-1
c41077745.lua
c41077745.lua
+1
-1
c41562624.lua
c41562624.lua
+1
-1
c41578483.lua
c41578483.lua
+1
-1
c41659072.lua
c41659072.lua
+1
-1
c41925941.lua
c41925941.lua
+1
-1
c42155488.lua
c42155488.lua
+1
-1
c42752141.lua
c42752141.lua
+1
-1
c43218406.lua
c43218406.lua
+1
-1
c43340443.lua
c43340443.lua
+1
-1
c43797906.lua
c43797906.lua
+1
-1
c43912676.lua
c43912676.lua
+1
-1
c44178886.lua
c44178886.lua
+1
-1
c45236142.lua
c45236142.lua
+1
-1
c4549095.lua
c4549095.lua
+1
-1
c45586855.lua
c45586855.lua
+1
-1
c46239604.lua
c46239604.lua
+1
-1
c46647144.lua
c46647144.lua
+1
-1
c4694209.lua
c4694209.lua
+1
-1
c47106439.lua
c47106439.lua
+1
-1
c47111934.lua
c47111934.lua
+1
-1
c47363932.lua
c47363932.lua
+1
-1
c47395382.lua
c47395382.lua
+1
-1
c47910940.lua
c47910940.lua
+1
-1
c47946130.lua
c47946130.lua
+1
-1
c48675364.lua
c48675364.lua
+1
-1
c48928529.lua
c48928529.lua
+1
-1
c49456901.lua
c49456901.lua
+1
-1
c49868263.lua
c49868263.lua
+1
-1
c49980185.lua
c49980185.lua
+1
-1
c50319138.lua
c50319138.lua
+1
-1
c50321796.lua
c50321796.lua
+1
-1
c50323155.lua
c50323155.lua
+1
-1
c50412166.lua
c50412166.lua
+1
-1
c50712728.lua
c50712728.lua
+1
-1
c5177985.lua
c5177985.lua
+1
-1
c51960178.lua
c51960178.lua
+1
-1
c52615248.lua
c52615248.lua
+1
-1
c52702748.lua
c52702748.lua
+1
-1
c52817046.lua
c52817046.lua
+1
-1
c53347303.lua
c53347303.lua
+1
-1
c53408006.lua
c53408006.lua
+1
-1
c5352328.lua
c5352328.lua
+1
-1
c54569495.lua
c54569495.lua
+1
-1
c55100740.lua
c55100740.lua
+1
-1
c55154048.lua
c55154048.lua
+1
-1
c56574543.lua
c56574543.lua
+1
-1
c56713174.lua
c56713174.lua
+1
-1
c5697558.lua
c5697558.lua
+1
-1
c57827484.lua
c57827484.lua
+1
-1
c58062306.lua
c58062306.lua
+1
-1
c58131925.lua
c58131925.lua
+1
-1
c58911105.lua
c58911105.lua
+1
-1
c58924378.lua
c58924378.lua
+2
-2
c59546528.lua
c59546528.lua
+1
-1
c60162470.lua
c60162470.lua
+1
-1
c6150044.lua
c6150044.lua
+1
-1
c61679541.lua
c61679541.lua
+1
-1
c61844784.lua
c61844784.lua
+1
-1
c63883999.lua
c63883999.lua
+1
-1
c64454614.lua
c64454614.lua
+1
-1
c64554883.lua
c64554883.lua
+1
-1
c65331686.lua
c65331686.lua
+1
-1
c65749035.lua
c65749035.lua
+1
-1
c66226132.lua
c66226132.lua
+1
-1
c66399675.lua
c66399675.lua
+1
-1
c68601507.lua
c68601507.lua
+1
-1
c68722455.lua
c68722455.lua
+1
-1
c70744296.lua
c70744296.lua
+1
-1
c70856343.lua
c70856343.lua
+1
-1
c70948327.lua
c70948327.lua
+1
-1
c71068247.lua
c71068247.lua
+1
-1
c71218746.lua
c71218746.lua
+1
-1
c71555408.lua
c71555408.lua
+1
-1
c71564252.lua
c71564252.lua
+1
-1
c7243511.lua
c7243511.lua
+1
-1
c74094021.lua
c74094021.lua
+1
-1
c74095602.lua
c74095602.lua
+1
-1
c74416224.lua
c74416224.lua
+1
-1
c74644400.lua
c74644400.lua
+1
-1
c74968065.lua
c74968065.lua
+1
-1
c75064463.lua
c75064463.lua
+1
-1
c75180828.lua
c75180828.lua
+1
-1
c75991898.lua
c75991898.lua
+1
-1
c76782778.lua
c76782778.lua
+1
-1
c76891401.lua
c76891401.lua
+1
-1
c77036039.lua
c77036039.lua
+1
-1
c77135531.lua
c77135531.lua
+1
-1
c78360952.lua
c78360952.lua
+1
-1
c78527720.lua
c78527720.lua
+1
-1
c78574395.lua
c78574395.lua
+1
-1
c78792195.lua
c78792195.lua
+1
-1
c78876707.lua
c78876707.lua
+1
-1
c79109599.lua
c79109599.lua
+1
-1
c79400597.lua
c79400597.lua
+1
-1
c79864860.lua
c79864860.lua
+1
-1
c80071763.lua
c80071763.lua
+1
-1
c80186010.lua
c80186010.lua
+1
-1
c80831721.lua
c80831721.lua
+1
-1
c80908502.lua
c80908502.lua
+1
-1
c80955168.lua
c80955168.lua
+1
-1
c8165596.lua
c8165596.lua
+1
-1
c81997228.lua
c81997228.lua
+1
-1
c82005435.lua
c82005435.lua
+1
-1
c8233522.lua
c8233522.lua
+1
-1
c83116692.lua
c83116692.lua
+1
-1
c84428023.lua
c84428023.lua
+1
-1
c85215458.lua
c85215458.lua
+1
-1
c85970321.lua
c85970321.lua
+1
-1
c86377375.lua
c86377375.lua
+1
-1
c87390067.lua
c87390067.lua
+1
-1
c87526784.lua
c87526784.lua
+1
-1
c88283496.lua
c88283496.lua
+1
-1
c88754763.lua
c88754763.lua
+1
-1
c89127526.lua
c89127526.lua
+1
-1
c89211486.lua
c89211486.lua
+1
-1
c899287.lua
c899287.lua
+1
-1
c90020065.lua
c90020065.lua
+1
-1
c9097866.lua
c9097866.lua
+1
-1
c92661479.lua
c92661479.lua
+1
-1
c93124273.lua
c93124273.lua
+1
-1
c95503687.lua
c95503687.lua
+1
-1
c96352326.lua
c96352326.lua
+1
-1
c97489701.lua
c97489701.lua
+2
-2
c97896503.lua
c97896503.lua
+1
-1
c98169343.lua
c98169343.lua
+1
-1
c98371278.lua
c98371278.lua
+1
-1
c98865920.lua
c98865920.lua
+1
-1
c99011763.lua
c99011763.lua
+1
-1
c99064191.lua
c99064191.lua
+1
-1
c99162753.lua
c99162753.lua
+1
-1
c99357565.lua
c99357565.lua
+1
-1
c99585850.lua
c99585850.lua
+2
-2
c99877698.lua
c99877698.lua
+1
-1
c99910751.lua
c99910751.lua
+1
-1
No files found.
c11411223.lua
View file @
6139ed0f
...
@@ -25,7 +25,7 @@ function c11411223.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c11411223.target(e,tp,eg,ep,ev,re,r,rp,chk)
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
c11411223
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c11411223
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
==
0
then
return
end
...
...
c12081875.lua
View file @
6139ed0f
...
@@ -48,7 +48,7 @@ function c12081875.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -48,7 +48,7 @@ function c12081875.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
tg
=
te
:
GetTarget
()
local
tg
=
te
:
GetTarget
()
if
tg
then
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
if
tg
then
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
end
end
function
c12081875
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12081875
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
local
te
=
tc
.
discard_effect
local
te
=
tc
.
discard_effect
...
...
c12171659.lua
View file @
6139ed0f
...
@@ -32,7 +32,7 @@ function c12171659.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -32,7 +32,7 @@ function c12171659.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12171659
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12171659
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c12171659
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12171659
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c12171659
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c12171659
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c12533811.lua
View file @
6139ed0f
...
@@ -31,7 +31,7 @@ function c12533811.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -31,7 +31,7 @@ function c12533811.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c12533811
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c12533811
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c12533811
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12533811
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c12986807.lua
View file @
6139ed0f
...
@@ -29,7 +29,7 @@ function c12986807.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function c12986807.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c12986807
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12986807
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
...
...
c13093792.lua
View file @
6139ed0f
...
@@ -40,7 +40,7 @@ function c13093792.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c13093792.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
Duel
.
MoveSequence
(
tc
,
SEQ_DECKBOTTOM
)
end
end
end
end
function
c13093792
.
spellcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c13093792
.
spellcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetTurnID
()
~=
Duel
.
GetTurnCount
()
return
e
:
GetHandler
():
GetTurnID
()
~=
Duel
.
GetTurnCount
()
end
end
function
c13093792
.
spelltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c13093792
.
spelltg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c13650422.lua
View file @
6139ed0f
...
@@ -30,7 +30,7 @@ function c13650422.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -30,7 +30,7 @@ function c13650422.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13650422
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13650422
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c13650422
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c13650422
.
operation
(
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
,
c13650422
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c13650422
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
if
#
g
>
0
then
...
...
c14124483.lua
View file @
6139ed0f
...
@@ -43,7 +43,7 @@ function c14124483.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -43,7 +43,7 @@ function c14124483.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c14124483
.
atkfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c14124483
.
atkfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
end
function
c14124483
.
atkop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14124483
.
atkop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c14613029.lua
View file @
6139ed0f
...
@@ -24,7 +24,7 @@ function c14613029.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -24,7 +24,7 @@ function c14613029.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
2
,
2
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
2
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c14613029
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14613029
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
sg
:
GetCount
()
==
0
then
return
if
sg
:
GetCount
()
==
0
then
return
...
...
c16255173.lua
View file @
6139ed0f
...
@@ -78,7 +78,7 @@ function c16255173.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -78,7 +78,7 @@ function c16255173.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c16255173
.
spfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
c
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c16255173
.
spfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c16255173
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16255173
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c16678947.lua
View file @
6139ed0f
...
@@ -11,7 +11,7 @@ function c16678947.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c16678947.initial_effect(c)
e1
:
SetOperation
(
c16678947
.
activate
)
e1
:
SetOperation
(
c16678947
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c16678947
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16678947
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
local
bc
=
tc
:
GetBattleTarget
()
local
bc
=
tc
:
GetBattleTarget
()
return
tc
:
IsPreviousControler
(
tp
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsRace
(
RACE_PSYCHO
)
return
tc
:
IsPreviousControler
(
tp
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsRace
(
RACE_PSYCHO
)
...
...
c17259470.lua
View file @
6139ed0f
...
@@ -33,7 +33,7 @@ function c17259470.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,7 +33,7 @@ function c17259470.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c17259470
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c17259470
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c17259470
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17259470
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_ZOMBIE
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_ZOMBIE
)
then
...
...
c17377751.lua
View file @
6139ed0f
...
@@ -22,7 +22,7 @@ function c17377751.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c17377751.initial_effect(c)
e2
:
SetOperation
(
c17377751
.
spop
)
e2
:
SetOperation
(
c17377751
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c17377751
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17377751
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
end
function
c17377751
.
filter
(
c
,
e
,
tp
)
function
c17377751
.
filter
(
c
,
e
,
tp
)
...
...
c17393207.lua
View file @
6139ed0f
...
@@ -23,7 +23,7 @@ function c17393207.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -23,7 +23,7 @@ function c17393207.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c17393207
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c17393207
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c17393207
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17393207
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c17393207
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c17393207
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c17948378.lua
View file @
6139ed0f
...
@@ -39,7 +39,7 @@ function c17948378.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,7 +39,7 @@ function c17948378.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
end
end
function
c17948378
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17948378
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
end
c18551923.lua
View file @
6139ed0f
...
@@ -90,7 +90,7 @@ function c18551923.rmtg2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -90,7 +90,7 @@ function c18551923.rmtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
function
c18551923
.
rmop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c18551923
.
rmop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
#
g
>
0
then
if
#
g
>
0
then
...
...
c18698739.lua
View file @
6139ed0f
...
@@ -23,7 +23,7 @@ function c18698739.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -23,7 +23,7 @@ function c18698739.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c18698739
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c18698739
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c18698739
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c18698739
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c18698739
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c18698739
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tc
then
if
tc
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
...
...
c18993198.lua
View file @
6139ed0f
...
@@ -24,7 +24,7 @@ function c18993198.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -24,7 +24,7 @@ function c18993198.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c18993198
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c18993198
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c18993198
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c18993198
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c18993198
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c18993198
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
...
...
c20318029.lua
View file @
6139ed0f
...
@@ -45,7 +45,7 @@ function c20318029.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,7 +45,7 @@ function c20318029.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c20318029
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c20318029
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c20318029
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20318029
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c20374351.lua
View file @
6139ed0f
...
@@ -34,7 +34,7 @@ function c20374351.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -34,7 +34,7 @@ function c20374351.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c20374351
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20374351
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
...
...
c2061963.lua
View file @
6139ed0f
...
@@ -28,7 +28,7 @@ function c2061963.initial_effect(c)
...
@@ -28,7 +28,7 @@ function c2061963.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
aux
.
xyz_number
[
2061963
]
=
104
aux
.
xyz_number
[
2061963
]
=
104
function
c2061963
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c2061963
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
ep
~=
tp
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
ep
~=
tp
and
(
ph
>
PHASE_MAIN1
and
ph
<
PHASE_MAIN2
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
and
(
ph
>
PHASE_MAIN1
and
ph
<
PHASE_MAIN2
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
...
...
c21454943.lua
View file @
6139ed0f
...
@@ -54,7 +54,7 @@ function c21454943.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -54,7 +54,7 @@ function c21454943.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
tc
:
IsCanBeEffectTarget
(
e
)
end
if
chk
==
0
then
return
tc
:
IsCanBeEffectTarget
(
e
)
end
Duel
.
SetTargetCard
(
tc
)
Duel
.
SetTargetCard
(
tc
)
end
end
function
c21454943
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c21454943
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
tc
or
not
tc
:
IsRelateToEffect
(
e
)
or
not
tc
:
IsControler
(
1
-
tp
)
then
return
end
if
not
tc
or
not
tc
:
IsRelateToEffect
(
e
)
or
not
tc
:
IsControler
(
1
-
tp
)
then
return
end
...
...
c22454453.lua
View file @
6139ed0f
...
@@ -14,7 +14,7 @@ function c22454453.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -14,7 +14,7 @@ function c22454453.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c22454453
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22454453
.
activate
(
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
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c22624373.lua
View file @
6139ed0f
...
@@ -37,7 +37,7 @@ function c22624373.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -37,7 +37,7 @@ function c22624373.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c22624373
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c22624373
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c22624373
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22624373
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
then
...
...
c23848752.lua
View file @
6139ed0f
...
@@ -74,7 +74,7 @@ function c23848752.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,7 +74,7 @@ function c23848752.spop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
function
c23848752
.
rccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23848752
.
rccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetBattleMonster
(
1
-
tp
)
local
tc
=
Duel
.
GetBattleMonster
(
1
-
tp
)
return
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToBattle
()
return
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToBattle
()
end
end
...
...
c23915499.lua
View file @
6139ed0f
...
@@ -25,7 +25,7 @@ function c23915499.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c23915499.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c23915499
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c23915499
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c23915499
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23915499
.
operation
(
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
if
not
Duel
.
IsExistingMatchingCard
(
c23915499
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
return
end
if
not
Duel
.
IsExistingMatchingCard
(
c23915499
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
return
end
local
tc
=
Duel
.
GetFirstMatchingCard
(
c23915499
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c23915499
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
...
...
c24096499.lua
View file @
6139ed0f
...
@@ -28,7 +28,7 @@ function c24096499.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -28,7 +28,7 @@ function c24096499.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c24096499
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c24096499
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c24096499
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24096499
.
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
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
...
...
c24508238.lua
View file @
6139ed0f
...
@@ -26,7 +26,7 @@ function c24508238.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -26,7 +26,7 @@ function c24508238.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
1
-
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
1
-
tp
,
LOCATION_GRAVE
)
end
end
function
c24508238
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24508238
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c24623598.lua
View file @
6139ed0f
...
@@ -17,7 +17,7 @@ function c24623598.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -17,7 +17,7 @@ function c24623598.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
1
-
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
1
-
tp
,
LOCATION_GRAVE
)
end
end
function
c24623598
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24623598
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c25231813.lua
View file @
6139ed0f
...
@@ -63,7 +63,7 @@ function c25231813.reptg2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -63,7 +63,7 @@ function c25231813.reptg2(e,tp,eg,ep,ev,re,r,rp,chk)
return
true
return
true
else
return
false
end
else
return
false
end
end
end
function
c25231813
.
repop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25231813
.
repop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
e
:
GetHandler
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
end
end
c25244515.lua
View file @
6139ed0f
...
@@ -41,7 +41,7 @@ function c25244515.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -41,7 +41,7 @@ function c25244515.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
c25244515
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25244515
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
if
tc
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c26577155.lua
View file @
6139ed0f
...
@@ -46,7 +46,7 @@ function c26577155.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -46,7 +46,7 @@ function c26577155.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c26577155
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c26577155
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c26577155
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26577155
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c26577155
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c26577155
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c26842483.lua
View file @
6139ed0f
...
@@ -14,7 +14,7 @@ function c26842483.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c26842483.initial_effect(c)
e1
:
SetOperation
(
c26842483
.
operation
)
e1
:
SetOperation
(
c26842483
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c26842483
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26842483
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
ep
~=
tp
and
loc
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
return
ep
~=
tp
and
loc
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
and
re
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
re
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
...
...
c26914168.lua
View file @
6139ed0f
...
@@ -54,7 +54,7 @@ function c26914168.target2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,7 +54,7 @@ function c26914168.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
d
end
if
chk
==
0
then
return
d
end
Duel
.
SetTargetCard
(
d
)
Duel
.
SetTargetCard
(
d
)
end
end
function
c26914168
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26914168
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
d
=
Duel
.
GetFirstTarget
()
local
d
=
Duel
.
GetFirstTarget
()
if
not
(
d
:
IsRelateToBattle
()
and
d
:
IsFaceup
()
and
d
:
IsControler
(
1
-
tp
))
then
return
end
if
not
(
d
:
IsRelateToBattle
()
and
d
:
IsFaceup
()
and
d
:
IsControler
(
1
-
tp
))
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c2851070.lua
View file @
6139ed0f
...
@@ -25,7 +25,7 @@ function c2851070.damcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,7 +25,7 @@ function c2851070.damcon(e,tp,eg,ep,ev,re,r,rp)
return
c
==
e
:
GetHandler
()
and
c
:
GetBattlePosition
()
==
POS_FACEUP_ATTACK
return
c
==
e
:
GetHandler
()
and
c
:
GetBattlePosition
()
==
POS_FACEUP_ATTACK
end
end
function
c2851070
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c2851070
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
0
)
end
end
...
...
c29596581.lua
View file @
6139ed0f
...
@@ -39,7 +39,7 @@ function c29596581.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -39,7 +39,7 @@ function c29596581.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29596581
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29596581
.
filter
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
end
function
c29596581
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c29596581
.
operation
(
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
,
aux
.
NecroValleyFilter
(
c29596581
.
filter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c29596581
.
filter
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c29888389.lua
View file @
6139ed0f
...
@@ -36,7 +36,7 @@ function c29888389.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -36,7 +36,7 @@ function c29888389.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29888389
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c29888389
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c29888389
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c29888389
.
operation
(
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
,
c29888389
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29888389
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c30548775.lua
View file @
6139ed0f
...
@@ -22,7 +22,7 @@ function c30548775.filter(c)
...
@@ -22,7 +22,7 @@ function c30548775.filter(c)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsType
(
TYPE_FUSION
)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsSummonType
(
SUMMON_TYPE_FUSION
)
and
c
:
IsSummonType
(
SUMMON_TYPE_FUSION
)
end
end
function
c30548775
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30548775
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c30548775
.
filter
,
1
,
nil
)
return
eg
:
IsExists
(
c30548775
.
filter
,
1
,
nil
)
end
end
function
c30548775
.
spfilter
(
c
,
eg
,
e
,
tp
)
function
c30548775
.
spfilter
(
c
,
eg
,
e
,
tp
)
...
...
c30587695.lua
View file @
6139ed0f
...
@@ -33,7 +33,7 @@ function c30587695.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,7 +33,7 @@ function c30587695.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c30587695
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c30587695
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c30587695
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30587695
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_INSECT
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_INSECT
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c30603688.lua
View file @
6139ed0f
...
@@ -73,7 +73,7 @@ function c30603688.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -73,7 +73,7 @@ function c30603688.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c30603688
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30603688
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetLabelObject
()
local
c
=
e
:
GetLabelObject
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToBattle
()
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToBattle
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c30741334.lua
View file @
6139ed0f
...
@@ -31,7 +31,7 @@ function c30741334.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -31,7 +31,7 @@ function c30741334.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c30741334
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30741334
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
local
ct
=
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
if
ct
==
0
then
return
end
if
ct
==
0
then
return
end
local
dc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
local
dc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
...
...
c31034919.lua
View file @
6139ed0f
...
@@ -19,7 +19,7 @@ function c31034919.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -19,7 +19,7 @@ function c31034919.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
2
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
2
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
end
end
function
c31034919
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c31034919
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
<
2
then
return
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
<
2
then
return
end
Duel
.
DiscardHand
(
tp
,
nil
,
2
,
2
,
REASON_EFFECT
)
Duel
.
DiscardHand
(
tp
,
nil
,
2
,
2
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
...
...
c31385077.lua
View file @
6139ed0f
...
@@ -36,7 +36,7 @@ function c31385077.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -36,7 +36,7 @@ function c31385077.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c31385077
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c31385077
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c31385077
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c31385077
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c31786629.lua
View file @
6139ed0f
...
@@ -24,7 +24,7 @@ function c31786629.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -24,7 +24,7 @@ function c31786629.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c31786629
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c31786629
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c31786629
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c31786629
.
operation
(
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
,
c31786629
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c31786629
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
2
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c33017655.lua
View file @
6139ed0f
...
@@ -45,7 +45,7 @@ function c33017655.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,7 +45,7 @@ function c33017655.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c33017655
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33017655
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsRace
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
RACE_FIEND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsRace
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
RACE_FIEND
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c33026283.lua
View file @
6139ed0f
...
@@ -85,6 +85,6 @@ function c33026283.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -85,6 +85,6 @@ function c33026283.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
end
function
c33026283
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33026283
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
end
end
c33248692.lua
View file @
6139ed0f
...
@@ -15,7 +15,7 @@ end
...
@@ -15,7 +15,7 @@ end
function
c33248692
.
filter
(
c
,
tp
)
function
c33248692
.
filter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_BATTLE
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_BATTLE
)
end
end
function
c33248692
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33248692
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c33248692
.
filter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c33248692
.
filter
,
1
,
nil
,
tp
)
end
end
function
c33248692
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33248692
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c33883834.lua
View file @
6139ed0f
...
@@ -23,7 +23,7 @@ function c33883834.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -23,7 +23,7 @@ function c33883834.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
RegisterFlagEffect
(
tp
,
33883834
,
RESET_PHASE
+
PHASE_DAMAGE_CAL
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
33883834
,
RESET_PHASE
+
PHASE_DAMAGE_CAL
,
0
,
1
)
end
end
function
c33883834
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33883834
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
not
a
:
IsRelateToBattle
()
or
not
d
:
IsRelateToBattle
()
then
return
end
if
not
a
:
IsRelateToBattle
()
or
not
d
:
IsRelateToBattle
()
then
return
end
...
...
c3431737.lua
View file @
6139ed0f
...
@@ -24,7 +24,7 @@ function c3431737.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -24,7 +24,7 @@ function c3431737.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c3431737
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c3431737
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c3431737
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c3431737
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c3431737
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c3431737
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tc
then
if
tc
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
...
...
c34419588.lua
View file @
6139ed0f
...
@@ -40,7 +40,7 @@ function c34419588.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -40,7 +40,7 @@ function c34419588.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c34419588
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c34419588
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c34419588
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c34419588
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c35448319.lua
View file @
6139ed0f
...
@@ -39,7 +39,7 @@ function c35448319.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -39,7 +39,7 @@ function c35448319.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35448319
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35448319
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c35448319
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c35448319
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
c35595518.lua
View file @
6139ed0f
...
@@ -41,7 +41,7 @@ function c35595518.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -41,7 +41,7 @@ function c35595518.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
ct
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
ct
,
0
,
0
)
end
end
function
c35595518
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c35595518
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
rg
:
GetCount
()
>
0
then
if
rg
:
GetCount
()
>
0
then
...
...
c35815783.lua
View file @
6139ed0f
...
@@ -56,7 +56,7 @@ function c35815783.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -56,7 +56,7 @@ function c35815783.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c35815783
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c35815783
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c35815783
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c35815783
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
and
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
~=
0
then
if
tg
and
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
...
...
c3648368.lua
View file @
6139ed0f
...
@@ -27,7 +27,7 @@ function c3648368.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -27,7 +27,7 @@ function c3648368.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c3648368
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c3648368
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
end
function
c3648368
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c3648368
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
c3648368
.
filter
(
tc
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
c3648368
.
filter
(
tc
)
then
Duel
.
ChangePosition
(
tc
,
0
,
0
,
0
,
POS_FACEUP_ATTACK
,
true
)
Duel
.
ChangePosition
(
tc
,
0
,
0
,
0
,
POS_FACEUP_ATTACK
,
true
)
...
...
c37742478.lua
View file @
6139ed0f
...
@@ -45,7 +45,7 @@ function c37742478.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,7 +45,7 @@ function c37742478.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c37742478
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c37742478
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
not
a
:
IsRelateToBattle
()
or
not
d
:
IsRelateToBattle
()
then
return
end
if
not
a
:
IsRelateToBattle
()
or
not
d
:
IsRelateToBattle
()
then
return
end
...
...
c3790062.lua
View file @
6139ed0f
...
@@ -18,7 +18,7 @@ function c3790062.initial_effect(c)
...
@@ -18,7 +18,7 @@ function c3790062.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
aux
.
xyz_number
[
3790062
]
=
65
aux
.
xyz_number
[
3790062
]
=
65
function
c3790062
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c3790062
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
rp
==
1
-
tp
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
...
...
c37926346.lua
View file @
6139ed0f
...
@@ -32,7 +32,7 @@ function c37926346.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,7 +32,7 @@ function c37926346.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c37926346
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c37926346
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
c37926346
.
filter
,
nil
)
local
g
=
eg
:
Filter
(
c37926346
.
filter
,
nil
)
Duel
.
NegateSummon
(
g
)
Duel
.
NegateSummon
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
...
...
c38730226.lua
View file @
6139ed0f
...
@@ -11,7 +11,7 @@ function c38730226.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c38730226.initial_effect(c)
e1
:
SetOperation
(
c38730226
.
op
)
e1
:
SetOperation
(
c38730226
.
op
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c38730226
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c38730226
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
end
end
function
c38730226
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38730226
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c39261576.lua
View file @
6139ed0f
...
@@ -106,7 +106,7 @@ function c39261576.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -106,7 +106,7 @@ function c39261576.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
tc
:
CreateEffectRelation
(
e
)
tc
:
CreateEffectRelation
(
e
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
end
end
function
c39261576
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c39261576
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sc
=
eg
:
GetFirst
()
local
sc
=
eg
:
GetFirst
()
if
not
sc
:
IsRelateToEffect
(
e
)
or
sc
:
IsFacedown
()
then
return
end
if
not
sc
:
IsRelateToEffect
(
e
)
or
sc
:
IsFacedown
()
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c4041838.lua
View file @
6139ed0f
...
@@ -12,7 +12,7 @@ function c4041838.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c4041838.initial_effect(c)
end
end
function
c4041838
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4041838
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
d
~=
nil
and
d
:
IsFaceup
()
and
d
:
IsDefensePos
()
and
d
:
IsRelateToBattle
()
end
and
d
~=
nil
and
d
:
IsFaceup
()
and
d
:
IsDefensePos
()
and
d
:
IsRelateToBattle
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
end
end
...
...
c40921744.lua
View file @
6139ed0f
...
@@ -62,7 +62,7 @@ function c40921744.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -62,7 +62,7 @@ function c40921744.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c40921744
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c40921744
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
...
...
c40939228.lua
View file @
6139ed0f
...
@@ -58,7 +58,7 @@ function c40939228.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -58,7 +58,7 @@ function c40939228.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
NegateEffectMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
NegateEffectMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
nil
,
1
,
tp
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
nil
,
1
,
tp
,
LOCATION_MZONE
)
end
end
function
c40939228
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c40939228
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NegateEffectMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NegateEffectMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
c41077745.lua
View file @
6139ed0f
...
@@ -39,7 +39,7 @@ function c41077745.datop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +39,7 @@ function c41077745.datop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
function
c41077745
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41077745
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
return
ep
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
end
end
function
c41077745
.
filter
(
c
)
function
c41077745
.
filter
(
c
)
...
...
c41562624.lua
View file @
6139ed0f
...
@@ -56,7 +56,7 @@ function c41562624.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -56,7 +56,7 @@ function c41562624.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c41562624
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41562624
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
>
0
then
if
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
...
...
c41578483.lua
View file @
6139ed0f
...
@@ -56,7 +56,7 @@ end
...
@@ -56,7 +56,7 @@ end
function
c41578483
.
can_equip_monster
(
c
)
function
c41578483
.
can_equip_monster
(
c
)
return
true
return
true
end
end
function
c41578483
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41578483
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
return
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
c41578483
.
eqfilter
(
c
)
function
c41578483
.
eqfilter
(
c
)
...
...
c41659072.lua
View file @
6139ed0f
...
@@ -47,7 +47,7 @@ end
...
@@ -47,7 +47,7 @@ end
function
c41659072
.
sumlimit
(
e
,
se
,
sp
,
st
)
function
c41659072
.
sumlimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
~=
SUMMON_TYPE_SYNCHRO
or
not
se
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
~=
SUMMON_TYPE_SYNCHRO
or
not
se
end
end
function
c41659072
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41659072
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_TUNER
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
TYPE_TUNER
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
3
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
3
end
end
...
...
c41925941.lua
View file @
6139ed0f
...
@@ -51,7 +51,7 @@ function c41925941.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -51,7 +51,7 @@ function c41925941.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
tc
)
Duel
.
SetTargetCard
(
tc
)
end
end
function
c41925941
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41925941
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
Duel
.
GetFirstTarget
()
local
bc
=
Duel
.
GetFirstTarget
()
local
val
=
e
:
GetLabel
()
local
val
=
e
:
GetLabel
()
if
not
bc
or
not
bc
:
IsRelateToEffect
(
e
)
or
not
bc
:
IsControler
(
1
-
tp
)
then
return
end
if
not
bc
or
not
bc
:
IsRelateToEffect
(
e
)
or
not
bc
:
IsControler
(
1
-
tp
)
then
return
end
...
...
c42155488.lua
View file @
6139ed0f
...
@@ -57,7 +57,7 @@ end
...
@@ -57,7 +57,7 @@ end
function
c42155488
.
sumlimit
(
e
,
c
)
function
c42155488
.
sumlimit
(
e
,
c
)
return
c
:
GetRace
()
~=
e
:
GetLabel
()
return
c
:
GetRace
()
~=
e
:
GetLabel
()
end
end
function
c42155488
.
decop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c42155488
.
decop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
rc
=
e
:
GetLabel
()
local
rc
=
e
:
GetLabel
()
...
...
c42752141.lua
View file @
6139ed0f
...
@@ -17,7 +17,7 @@ function c42752141.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c42752141.initial_effect(c)
e1
:
SetOperation
(
c42752141
.
operation
)
e1
:
SetOperation
(
c42752141
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c42752141
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c42752141
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
~=
e
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
re
~=
e
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
...
...
c43218406.lua
View file @
6139ed0f
...
@@ -109,7 +109,7 @@ function c43218406.retg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -109,7 +109,7 @@ function c43218406.retg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
0
)
end
end
function
c43218406
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43218406
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c43218406
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c43218406
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
):
GetFirst
()
if
not
tc
then
return
end
if
not
tc
then
return
end
...
...
c43340443.lua
View file @
6139ed0f
...
@@ -21,7 +21,7 @@ function c43340443.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -21,7 +21,7 @@ function c43340443.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
eg
,
1
,
0
,
0
)
end
end
function
c43340443
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43340443
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateSummon
(
eg
:
GetFirst
())
Duel
.
NegateSummon
(
eg
:
GetFirst
())
Duel
.
SendtoHand
(
eg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
eg
,
nil
,
REASON_EFFECT
)
end
end
c43797906.lua
View file @
6139ed0f
...
@@ -23,7 +23,7 @@ function c43797906.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -23,7 +23,7 @@ function c43797906.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c43797906
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c43797906
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c43797906
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43797906
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c43797906
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c43797906
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c43912676.lua
View file @
6139ed0f
...
@@ -46,7 +46,7 @@ function c43912676.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -46,7 +46,7 @@ function c43912676.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c43912676
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43912676
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
c44178886.lua
View file @
6139ed0f
...
@@ -24,7 +24,7 @@ function c44178886.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c44178886.initial_effect(c)
end
end
function
c44178886
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44178886
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
t
=
Duel
.
GetAttackTarget
()
local
t
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
t
~=
nil
and
not
t
:
IsAttackPos
()
and
t
:
IsAbleToDeck
()
end
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
t
~=
nil
and
not
t
:
IsAttackPos
()
and
t
:
IsAbleToDeck
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
t
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
t
,
1
,
0
,
0
)
end
end
function
c44178886
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44178886
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c45236142.lua
View file @
6139ed0f
...
@@ -67,7 +67,7 @@ function c45236142.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -67,7 +67,7 @@ function c45236142.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c45236142
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c45236142
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c45236142
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c45236142
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c45236142
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c45236142
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c4549095.lua
View file @
6139ed0f
...
@@ -27,7 +27,7 @@ function c4549095.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -27,7 +27,7 @@ function c4549095.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c4549095
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4549095
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
if
Duel
.
GetTurnPlayer
()
~=
tp
then
a
=
Duel
.
GetAttackTarget
()
end
if
Duel
.
GetTurnPlayer
()
~=
tp
then
a
=
Duel
.
GetAttackTarget
()
end
if
not
a
:
IsRelateToBattle
()
then
return
end
if
not
a
:
IsRelateToBattle
()
then
return
end
...
...
c45586855.lua
View file @
6139ed0f
...
@@ -28,7 +28,7 @@ function c45586855.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,7 +28,7 @@ function c45586855.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
rg
=
Duel
.
GetMatchingGroup
(
c45586855
.
rfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
c45586855
.
rfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
rg
,
ct
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
rg
,
ct
,
0
,
0
)
end
end
function
c45586855
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c45586855
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c45586855
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c45586855
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
c45586855
.
rfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
c45586855
.
rfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
if
rg
:
GetCount
()
<
ct
then
return
end
if
rg
:
GetCount
()
<
ct
then
return
end
...
...
c46239604.lua
View file @
6139ed0f
...
@@ -25,7 +25,7 @@ end
...
@@ -25,7 +25,7 @@ end
function
c46239604
.
atlimit
(
e
,
c
)
function
c46239604
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
return
c
~=
e
:
GetHandler
()
end
end
function
c46239604
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46239604
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c46239604
.
filter
(
c
)
function
c46239604
.
filter
(
c
)
...
...
c46647144.lua
View file @
6139ed0f
...
@@ -47,7 +47,7 @@ function c46647144.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -47,7 +47,7 @@ function c46647144.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
c
:
IsDiscardable
()
end
if
chk
==
0
then
return
c
:
IsDiscardable
()
end
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c46647144
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46647144
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToBattle
()
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToBattle
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c4694209.lua
View file @
6139ed0f
...
@@ -75,6 +75,6 @@ function c4694209.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -75,6 +75,6 @@ function c4694209.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
and
e
:
GetHandler
():
GetCounter
(
0x1021
)
>
0
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
and
e
:
GetHandler
():
GetCounter
(
0x1021
)
>
0
end
return
true
return
true
end
end
function
c4694209
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4694209
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x1021
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x1021
,
1
,
REASON_EFFECT
)
end
end
c47106439.lua
View file @
6139ed0f
...
@@ -36,7 +36,7 @@ function c47106439.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -36,7 +36,7 @@ function c47106439.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c47106439
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c47106439
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c47106439
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47106439
.
operation
(
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
,
c47106439
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c47106439
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c47111934.lua
View file @
6139ed0f
...
@@ -24,7 +24,7 @@ end
...
@@ -24,7 +24,7 @@ end
function
c47111934
.
cfilter
(
c
)
function
c47111934
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
11722335
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
11722335
)
end
end
function
c47111934
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47111934
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
1
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
1
and
Duel
.
IsExistingMatchingCard
(
c47111934
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c47111934
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
...
...
c47363932.lua
View file @
6139ed0f
...
@@ -44,7 +44,7 @@ function c47363932.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -44,7 +44,7 @@ function c47363932.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g1
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g2
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g2
,
1
,
0
,
0
)
end
end
function
c47363932
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47363932
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
...
...
c47395382.lua
View file @
6139ed0f
...
@@ -15,7 +15,7 @@ function c47395382.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c47395382.initial_effect(c)
e1
:
SetOperation
(
c47395382
.
op
)
e1
:
SetOperation
(
c47395382
.
op
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c47395382
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47395382
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
end
function
c47395382
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47395382
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c47910940.lua
View file @
6139ed0f
...
@@ -52,7 +52,7 @@ function c47910940.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -52,7 +52,7 @@ function c47910940.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c47910940
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47910940
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
end
...
...
c47946130.lua
View file @
6139ed0f
...
@@ -70,7 +70,7 @@ function c47946130.ChainUniqueCost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -70,7 +70,7 @@ function c47946130.ChainUniqueCost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
c
:
GetFlagEffect
(
47946130
)
==
0
end
if
chk
==
0
then
return
c
:
GetFlagEffect
(
47946130
)
==
0
end
c
:
RegisterFlagEffect
(
47946130
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
c
:
RegisterFlagEffect
(
47946130
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
end
end
function
c47946130
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47946130
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFacedown
()
or
c
:
GetAttack
()
<
500
or
not
c
:
IsRelateToEffect
(
e
)
if
c
:
IsFacedown
()
or
c
:
GetAttack
()
<
500
or
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetCurrentChain
()
~=
ev
+
1
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
or
Duel
.
GetCurrentChain
()
~=
ev
+
1
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
...
...
c48675364.lua
View file @
6139ed0f
...
@@ -31,7 +31,7 @@ function c48675364.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -31,7 +31,7 @@ function c48675364.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c48675364
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c48675364
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c48675364
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c48675364
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c48675364
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c48675364
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c48928529.lua
View file @
6139ed0f
...
@@ -18,7 +18,7 @@ function c48928529.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,7 +18,7 @@ function c48928529.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
end
function
c48928529
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c48928529
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
...
...
c49456901.lua
View file @
6139ed0f
...
@@ -45,7 +45,7 @@ function c49456901.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +45,7 @@ function c49456901.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
function
c49456901
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c49456901
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
ep
~=
tp
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
ep
~=
tp
and
loc
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
and
loc
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
...
...
c49868263.lua
View file @
6139ed0f
...
@@ -52,7 +52,7 @@ function c49868263.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -52,7 +52,7 @@ function c49868263.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
end
end
function
c49868263
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c49868263
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
function
c49868263
.
disop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49868263
.
disop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c49980185.lua
View file @
6139ed0f
...
@@ -32,7 +32,7 @@ end
...
@@ -32,7 +32,7 @@ end
function
c49980185
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49980185
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c49980185
[
0
]
=
0
c49980185
[
0
]
=
0
end
end
function
c49980185
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c49980185
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
end
end
function
c49980185
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c49980185
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c50319138.lua
View file @
6139ed0f
...
@@ -25,7 +25,7 @@ function c50319138.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c50319138.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c50319138
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c50319138
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c50319138
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50319138
.
operation
(
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
if
not
Duel
.
IsExistingMatchingCard
(
c50319138
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
return
end
if
not
Duel
.
IsExistingMatchingCard
(
c50319138
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
return
end
local
tc
=
Duel
.
GetFirstMatchingCard
(
c50319138
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c50319138
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
...
...
c50321796.lua
View file @
6139ed0f
...
@@ -50,7 +50,7 @@ function c50321796.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -50,7 +50,7 @@ function c50321796.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
tg
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
)
local
tg
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
tg
,
ct
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
tg
,
ct
,
0
,
0
)
end
end
function
c50321796
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50321796
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
rg
:
GetCount
()
>
0
then
if
rg
:
GetCount
()
>
0
then
...
...
c50323155.lua
View file @
6139ed0f
...
@@ -18,7 +18,7 @@ function c50323155.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,7 +18,7 @@ function c50323155.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
eg
:
GetCount
(),
0
,
0
)
end
end
function
c50323155
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50323155
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateSummon
(
eg
)
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
c50412166.lua
View file @
6139ed0f
...
@@ -19,7 +19,7 @@ function c50412166.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -19,7 +19,7 @@ function c50412166.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
c50412166
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50412166
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
...
...
c50712728.lua
View file @
6139ed0f
...
@@ -22,7 +22,7 @@ function c50712728.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -22,7 +22,7 @@ function c50712728.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
500
)
Duel
.
SetTargetParam
(
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
500
)
end
end
function
c50712728
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50712728
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
end
c5177985.lua
View file @
6139ed0f
...
@@ -59,7 +59,7 @@ function c5177985.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -59,7 +59,7 @@ function c5177985.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c5177985
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c5177985
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c5177985
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5177985
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c51960178.lua
View file @
6139ed0f
...
@@ -26,7 +26,7 @@ function c51960178.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,7 +26,7 @@ function c51960178.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c51960178
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c51960178
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
end
c52615248.lua
View file @
6139ed0f
...
@@ -43,7 +43,7 @@ function c52615248.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -43,7 +43,7 @@ function c52615248.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c52615248
.
spfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c52615248
.
spfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c52615248
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52615248
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c52702748.lua
View file @
6139ed0f
...
@@ -38,7 +38,7 @@ function c52702748.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -38,7 +38,7 @@ function c52702748.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
1
-
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
1
-
tp
)
local
g
=
Duel
.
SelectTarget
(
1
-
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
1
-
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
function
c52702748
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52702748
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c52817046.lua
View file @
6139ed0f
...
@@ -11,7 +11,7 @@ function c52817046.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c52817046.initial_effect(c)
e1
:
SetOperation
(
c52817046
.
activate
)
e1
:
SetOperation
(
c52817046
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c52817046
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52817046
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
return
ct
>
0
and
ct
<=
3
return
ct
>
0
and
ct
<=
3
end
end
...
...
c53347303.lua
View file @
6139ed0f
...
@@ -61,6 +61,6 @@ function c53347303.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -61,6 +61,6 @@ function c53347303.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
end
end
function
c53347303
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c53347303
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
c53408006.lua
View file @
6139ed0f
...
@@ -29,7 +29,7 @@ function c53408006.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function c53408006.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c53408006
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c53408006
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
if
Duel
.
GetTurnPlayer
()
~=
tp
then
a
=
Duel
.
GetAttackTarget
()
end
if
Duel
.
GetTurnPlayer
()
~=
tp
then
a
=
Duel
.
GetAttackTarget
()
end
if
not
a
:
IsRelateToBattle
()
then
return
end
if
not
a
:
IsRelateToBattle
()
then
return
end
...
...
c5352328.lua
View file @
6139ed0f
...
@@ -29,7 +29,7 @@ end
...
@@ -29,7 +29,7 @@ end
function
c5352328
.
cfilter
(
c
)
function
c5352328
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x172
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x172
)
end
end
function
c5352328
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5352328
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c5352328
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c5352328
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
end
end
function
c5352328
.
efftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5352328
.
efftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c54569495.lua
View file @
6139ed0f
...
@@ -44,7 +44,7 @@ function c54569495.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,7 +44,7 @@ function c54569495.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c54569495
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54569495
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c55100740.lua
View file @
6139ed0f
...
@@ -30,7 +30,7 @@ function c55100740.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -30,7 +30,7 @@ function c55100740.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c55100740
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c55100740
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c55100740
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55100740
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c55154048.lua
View file @
6139ed0f
...
@@ -54,7 +54,7 @@ function c55154048.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c55154048.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
c
,
tc
)
Duel
.
Equip
(
tp
,
c
,
tc
)
end
end
end
end
function
c55154048
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55154048
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
return
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
and
bit
.
band
(
e
:
GetHandler
():
GetReason
(),
0x41
)
==
0x41
and
bit
.
band
(
e
:
GetHandler
():
GetReason
(),
0x41
)
==
0x41
end
end
...
...
c56574543.lua
View file @
6139ed0f
...
@@ -23,7 +23,7 @@ function c56574543.atkcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,7 +23,7 @@ function c56574543.atkcon(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsControler
(
1
-
tp
)
then
c
=
Duel
.
GetAttacker
()
end
if
c
:
IsControler
(
1
-
tp
)
then
c
=
Duel
.
GetAttacker
()
end
return
c
and
c
:
IsSetCard
(
0x88
)
and
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
c
:
IsRelateToBattle
()
return
c
and
c
:
IsSetCard
(
0x88
)
and
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
c
:
IsRelateToBattle
()
end
end
function
c56574543
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c56574543
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
not
a
:
IsRelateToBattle
()
or
a
:
IsFacedown
()
or
not
d
:
IsRelateToBattle
()
or
d
:
IsFacedown
()
then
return
end
if
not
a
:
IsRelateToBattle
()
or
a
:
IsFacedown
()
or
not
d
:
IsRelateToBattle
()
or
d
:
IsFacedown
()
then
return
end
...
...
c56713174.lua
View file @
6139ed0f
...
@@ -41,7 +41,7 @@ function c56713174.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -41,7 +41,7 @@ function c56713174.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c56713174
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c56713174
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c56713174
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c56713174
.
operation
(
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
,
c56713174
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c56713174
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c5697558.lua
View file @
6139ed0f
...
@@ -49,7 +49,7 @@ function c5697558.postg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,7 +49,7 @@ function c5697558.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c5697558
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c5697558
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
nil
,
1
,
0
,
0
)
end
end
function
c5697558
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5697558
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c5697558
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c5697558
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
...
...
c57827484.lua
View file @
6139ed0f
...
@@ -24,7 +24,7 @@ function c57827484.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -24,7 +24,7 @@ function c57827484.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c57827484
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c57827484
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c57827484
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c57827484
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c58062306.lua
View file @
6139ed0f
...
@@ -48,7 +48,7 @@ function c58062306.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -48,7 +48,7 @@ function c58062306.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58062306
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58062306
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c58062306
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58062306
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c58062306
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c58062306
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c58131925.lua
View file @
6139ed0f
...
@@ -28,7 +28,7 @@ function c58131925.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -28,7 +28,7 @@ function c58131925.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c58131925
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c58131925
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c58131925
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58131925
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c58911105.lua
View file @
6139ed0f
...
@@ -29,7 +29,7 @@ function c58911105.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function c58911105.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c58911105
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c58911105
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c58911105
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58911105
.
operation
(
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
,
c58911105
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58911105
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c58924378.lua
View file @
6139ed0f
...
@@ -10,10 +10,10 @@ function c58924378.initial_effect(c)
...
@@ -10,10 +10,10 @@ function c58924378.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_BATTLED
)
e2
:
SetCode
(
EVENT_BATTLED
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c58924378
.
atk
dn
)
e2
:
SetOperation
(
c58924378
.
atk
op
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c58924378
.
atk
dn
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58924378
.
atk
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
d
and
d
:
IsSetCard
(
0xe
)
then
if
d
and
d
:
IsSetCard
(
0xe
)
then
...
...
c59546528.lua
View file @
6139ed0f
...
@@ -42,7 +42,7 @@ function c59546528.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -42,7 +42,7 @@ function c59546528.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c59546528
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
e
:
GetLabel
(),
e
:
GetLabel
(),
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c59546528
.
filter
,
tp
,
0
,
LOCATION_SZONE
,
e
:
GetLabel
(),
e
:
GetLabel
(),
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c59546528
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59546528
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
...
...
c60162470.lua
View file @
6139ed0f
...
@@ -92,7 +92,7 @@ function c60162470.atktg2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -92,7 +92,7 @@ function c60162470.atktg2(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
eg
:
IsExists
(
c60162470
.
cfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c60162470
.
cfilter
,
1
,
nil
,
tp
)
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
end
end
function
c60162470
.
atkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60162470
.
atkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
atk
=
e
:
GetLabelObject
():
GetLabel
()
local
atk
=
e
:
GetLabelObject
():
GetLabel
()
...
...
c6150044.lua
View file @
6139ed0f
...
@@ -36,6 +36,6 @@ function c6150044.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -36,6 +36,6 @@ function c6150044.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
end
end
function
c6150044
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6150044
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
c61679541.lua
View file @
6139ed0f
...
@@ -12,7 +12,7 @@ function c61679541.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c61679541.initial_effect(c)
end
end
function
c61679541
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61679541
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
d
~=
nil
and
d
:
IsDefensePos
()
and
d
:
IsRelateToBattle
()
end
and
d
~=
nil
and
d
:
IsDefensePos
()
and
d
:
IsRelateToBattle
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
end
end
...
...
c61844784.lua
View file @
6139ed0f
...
@@ -37,6 +37,6 @@ function c61844784.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -37,6 +37,6 @@ function c61844784.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
e
:
GetHandler
():
GetCounter
(
0x102a
)
>
0
end
and
e
:
GetHandler
():
GetCounter
(
0x102a
)
>
0
end
return
true
return
true
end
end
function
c61844784
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61844784
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x102a
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x102a
,
1
,
REASON_EFFECT
)
end
end
c63883999.lua
View file @
6139ed0f
...
@@ -47,7 +47,7 @@ function c63883999.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -47,7 +47,7 @@ function c63883999.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_MZONE
)
end
end
function
c63883999
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c63883999
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
...
...
c64454614.lua
View file @
6139ed0f
...
@@ -55,7 +55,7 @@ function c64454614.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -55,7 +55,7 @@ function c64454614.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
end
function
c64454614
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64454614
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
end
end
function
c64454614
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64454614
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c64554883.lua
View file @
6139ed0f
...
@@ -33,7 +33,7 @@ function c64554883.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,7 +33,7 @@ function c64554883.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c64554883
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c64554883
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
end
end
function
c64554883
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64554883
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
and
not
tc
:
IsDisabled
()
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
and
not
tc
:
IsDisabled
()
then
...
...
c65331686.lua
View file @
6139ed0f
...
@@ -37,7 +37,7 @@ function c65331686.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -37,7 +37,7 @@ function c65331686.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65331686
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c65331686
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c65331686
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65331686
.
thop
(
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
,
c65331686
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c65331686
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c65749035.lua
View file @
6139ed0f
...
@@ -51,7 +51,7 @@ function c65749035.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -51,7 +51,7 @@ function c65749035.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
eg
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
)
local
eg
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
ct
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
ct
,
0
,
0
)
end
end
function
c65749035
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65749035
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
rg
:
GetCount
()
>
0
then
if
rg
:
GetCount
()
>
0
then
...
...
c66226132.lua
View file @
6139ed0f
...
@@ -25,7 +25,7 @@ function c66226132.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -25,7 +25,7 @@ function c66226132.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c66226132
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
lg
)
Duel
.
SelectTarget
(
tp
,
c66226132
.
tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
lg
)
end
end
function
c66226132
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c66226132
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
tc
:
RegisterFlagEffect
(
66226132
,
RESET_EVENT
+
0x1220000
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
66226132
,
1
))
tc
:
RegisterFlagEffect
(
66226132
,
RESET_EVENT
+
0x1220000
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
66226132
,
1
))
...
...
c66399675.lua
View file @
6139ed0f
...
@@ -12,7 +12,7 @@ end
...
@@ -12,7 +12,7 @@ end
function
c66399675
.
filter
(
c
)
function
c66399675
.
filter
(
c
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAbleToHand
()
end
end
function
c66399675
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66399675
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
3
then
return
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
3
then
return
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
tp
,
g
)
...
...
c68601507.lua
View file @
6139ed0f
...
@@ -23,7 +23,7 @@ function c68601507.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -23,7 +23,7 @@ function c68601507.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c68601507
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68601507
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetLabelObject
()
local
c
=
e
:
GetLabelObject
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToBattle
()
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToBattle
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c68722455.lua
View file @
6139ed0f
...
@@ -31,7 +31,7 @@ function c68722455.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -31,7 +31,7 @@ function c68722455.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
eg
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
)
local
eg
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
eg
,
ct
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
eg
,
ct
,
0
,
0
)
end
end
function
c68722455
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68722455
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
rg
:
GetCount
()
>
0
then
if
rg
:
GetCount
()
>
0
then
...
...
c70744296.lua
View file @
6139ed0f
...
@@ -24,7 +24,7 @@ function c70744296.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -24,7 +24,7 @@ function c70744296.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c70744296
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c70744296
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
end
end
c70856343.lua
View file @
6139ed0f
...
@@ -35,7 +35,7 @@ function c70856343.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -35,7 +35,7 @@ function c70856343.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c70856343
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c70856343
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c70856343
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c70856343
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c70856343
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c70856343
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
ct
<=
0
then
return
end
if
ct
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
c70948327.lua
View file @
6139ed0f
...
@@ -12,7 +12,7 @@ function c70948327.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c70948327.initial_effect(c)
end
end
function
c70948327
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c70948327
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
d
~=
nil
and
d
:
IsFaceup
()
and
d
:
IsLevelBelow
(
3
)
and
d
:
IsRelateToBattle
()
end
and
d
~=
nil
and
d
:
IsFaceup
()
and
d
:
IsLevelBelow
(
3
)
and
d
:
IsRelateToBattle
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
end
end
...
...
c71068247.lua
View file @
6139ed0f
...
@@ -26,7 +26,7 @@ function c71068247.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c71068247.initial_effect(c)
e2
:
SetValue
(
-
300
)
e2
:
SetValue
(
-
300
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c71068247
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c71068247
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
...
...
c71218746.lua
View file @
6139ed0f
...
@@ -12,7 +12,7 @@ function c71218746.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c71218746.initial_effect(c)
end
end
function
c71218746
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c71218746
.
targ
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
t
=
Duel
.
GetAttackTarget
()
local
t
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
t
~=
nil
and
not
t
:
IsAttackPos
()
end
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
t
~=
nil
and
not
t
:
IsAttackPos
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
t
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
t
,
1
,
0
,
0
)
end
end
function
c71218746
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71218746
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c71555408.lua
View file @
6139ed0f
...
@@ -41,7 +41,7 @@ function c71555408.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -41,7 +41,7 @@ function c71555408.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c71555408
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c71555408
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
e
:
GetLabelObject
()
local
a
=
e
:
GetLabelObject
()
if
not
a
or
not
a
:
IsRelateToBattle
()
then
return
end
if
not
a
or
not
a
:
IsRelateToBattle
()
then
return
end
if
a
:
IsFaceup
()
then
if
a
:
IsFaceup
()
then
...
...
c71564252.lua
View file @
6139ed0f
...
@@ -34,7 +34,7 @@ function c71564252.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -34,7 +34,7 @@ function c71564252.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
eg
:
GetCount
(),
0
,
0
)
end
end
function
c71564252
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c71564252
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateSummon
(
eg
)
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
c7243511.lua
View file @
6139ed0f
...
@@ -31,7 +31,7 @@ function c7243511.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -31,7 +31,7 @@ function c7243511.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c7243511
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c7243511
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
c74094021.lua
View file @
6139ed0f
...
@@ -44,7 +44,7 @@ function c74094021.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -44,7 +44,7 @@ function c74094021.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c74094021
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74094021
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
c74095602.lua
View file @
6139ed0f
...
@@ -11,7 +11,7 @@ function c74095602.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c74095602.initial_effect(c)
e1
:
SetOperation
(
c74095602
.
activate
)
e1
:
SetOperation
(
c74095602
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c74095602
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74095602
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
return
tc
:
IsPreviousControler
(
tp
)
and
tc
:
IsType
(
TYPE_FUSION
)
and
tc
:
IsSetCard
(
0x3008
)
return
tc
:
IsPreviousControler
(
tp
)
and
tc
:
IsType
(
TYPE_FUSION
)
and
tc
:
IsSetCard
(
0x3008
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
...
...
c74416224.lua
View file @
6139ed0f
...
@@ -27,7 +27,7 @@ function c74416224.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -27,7 +27,7 @@ function c74416224.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
end
end
function
c74416224
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74416224
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c74644400.lua
View file @
6139ed0f
...
@@ -66,7 +66,7 @@ function c74644400.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -66,7 +66,7 @@ function c74644400.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c74644400
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c74644400
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c74644400
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74644400
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
74644400
,
2
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
74644400
,
2
))
...
...
c74968065.lua
View file @
6139ed0f
...
@@ -23,7 +23,7 @@ function c74968065.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -23,7 +23,7 @@ function c74968065.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c74968065
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c74968065
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c74968065
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74968065
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c74968065
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c74968065
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
...
...
c75064463.lua
View file @
6139ed0f
...
@@ -25,7 +25,7 @@ function c75064463.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -25,7 +25,7 @@ function c75064463.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75064463
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75064463
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c75064463
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75064463
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c75064463
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c75064463
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c75180828.lua
View file @
6139ed0f
...
@@ -110,7 +110,7 @@ function c75180828.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -110,7 +110,7 @@ function c75180828.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c75180828
.
destg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75180828
.
destg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
d
~=
nil
and
d
:
IsDefensePos
()
end
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
d
~=
nil
and
d
:
IsDefensePos
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
end
end
function
c75180828
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75180828
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c75991898.lua
View file @
6139ed0f
...
@@ -31,7 +31,7 @@ function c75991898.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -31,7 +31,7 @@ function c75991898.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
end
function
c75991898
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75991898
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
...
...
c76782778.lua
View file @
6139ed0f
...
@@ -46,7 +46,7 @@ function c76782778.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -46,7 +46,7 @@ function c76782778.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
IsExistingMatchingCard
(
c76782778
.
spfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c76782778
.
spfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c76782778
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c76782778
.
spop1
(
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
,
c76782778
.
spfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c76782778
.
spfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c76891401.lua
View file @
6139ed0f
...
@@ -20,7 +20,7 @@ end
...
@@ -20,7 +20,7 @@ end
function
c76891401
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c76891401
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c76891401
.
filter
,
1
,
nil
)
return
eg
:
IsExists
(
c76891401
.
filter
,
1
,
nil
)
end
end
function
c76891401
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c76891401
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c77036039.lua
View file @
6139ed0f
...
@@ -33,7 +33,7 @@ function c77036039.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,7 +33,7 @@ function c77036039.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c77036039
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c77036039
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c77036039
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c77036039
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
c77135531.lua
View file @
6139ed0f
...
@@ -56,7 +56,7 @@ function c77135531.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -56,7 +56,7 @@ function c77135531.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c77135531
.
spfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c77135531
.
spfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c77135531
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c77135531
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_DRAGON
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRace
(
RACE_DRAGON
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c78360952.lua
View file @
6139ed0f
...
@@ -39,7 +39,7 @@ function c78360952.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,7 +39,7 @@ function c78360952.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
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
)
end
end
function
c78360952
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78360952
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
cg
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
)
local
cg
=
c
:
GetColumnGroup
():
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
)
...
...
c78527720.lua
View file @
6139ed0f
...
@@ -53,7 +53,7 @@ function c78527720.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +53,7 @@ function c78527720.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
eqg
:
GetFirst
(),
c
)
Duel
.
Equip
(
tp
,
eqg
:
GetFirst
(),
c
)
end
end
end
end
function
c78527720
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78527720
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
return
ep
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
end
end
function
c78527720
.
eqfilter
(
c
,
tc
,
tp
)
function
c78527720
.
eqfilter
(
c
,
tc
,
tp
)
...
...
c78574395.lua
View file @
6139ed0f
...
@@ -38,7 +38,7 @@ function c78574395.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -38,7 +38,7 @@ function c78574395.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x32
,
1
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x32
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
e
:
GetLabel
(),
0
,
0x32
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
e
:
GetLabel
(),
0
,
0x32
)
end
end
function
c78574395
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78574395
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
c
:
AddCounter
(
0x32
,
e
:
GetLabel
())
c
:
AddCounter
(
0x32
,
e
:
GetLabel
())
...
...
c78792195.lua
View file @
6139ed0f
...
@@ -31,7 +31,7 @@ function c78792195.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -31,7 +31,7 @@ function c78792195.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c78792195
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78792195
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
c78876707.lua
View file @
6139ed0f
...
@@ -42,7 +42,7 @@ function c78876707.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -42,7 +42,7 @@ function c78876707.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
tg
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
)
local
tg
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
ct
,
ct
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
tg
,
ct
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
tg
,
ct
,
0
,
0
)
end
end
function
c78876707
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78876707
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
rg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
rg
:
GetCount
()
>
0
then
if
rg
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
rg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
rg
,
nil
,
REASON_EFFECT
)
...
...
c79109599.lua
View file @
6139ed0f
...
@@ -32,7 +32,7 @@ function c79109599.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,7 +32,7 @@ function c79109599.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c79109599
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c79109599
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c79109599
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c79109599
.
operation
(
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
,
c79109599
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c79109599
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c79400597.lua
View file @
6139ed0f
...
@@ -46,7 +46,7 @@ function c79400597.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -46,7 +46,7 @@ function c79400597.target(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
end
end
end
end
function
c79400597
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c79400597
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
e
:
GetLabel
()
==
1
then
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
e
:
GetLabel
()
==
1
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
...
...
c79864860.lua
View file @
6139ed0f
...
@@ -57,7 +57,7 @@ function c79864860.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -57,7 +57,7 @@ function c79864860.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c79864860
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c79864860
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
c79864860
.
cfilter
,
nil
,
1
-
tp
)
local
g
=
eg
:
Filter
(
c79864860
.
cfilter
,
nil
,
1
-
tp
)
Duel
.
NegateSummon
(
g
)
Duel
.
NegateSummon
(
g
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
...
...
c80071763.lua
View file @
6139ed0f
...
@@ -36,7 +36,7 @@ function c80071763.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -36,7 +36,7 @@ function c80071763.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
eg
,
1
,
0
,
0
)
end
end
function
c80071763
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80071763
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
function
c80071763
.
disop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c80071763
.
disop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c80186010.lua
View file @
6139ed0f
...
@@ -23,7 +23,7 @@ function c80186010.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -23,7 +23,7 @@ function c80186010.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80186010
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80186010
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c80186010
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80186010
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c80186010
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c80186010
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c80831721.lua
View file @
6139ed0f
...
@@ -37,7 +37,7 @@ function c80831721.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -37,7 +37,7 @@ function c80831721.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80831721
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80831721
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c80831721
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80831721
.
operation
(
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
,
c80831721
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c80831721
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c80908502.lua
View file @
6139ed0f
...
@@ -31,7 +31,7 @@ function c80908502.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -31,7 +31,7 @@ function c80908502.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80908502
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c80908502
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c80908502
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80908502
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c80908502
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c80908502
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c80955168.lua
View file @
6139ed0f
...
@@ -15,7 +15,7 @@ function c80955168.cfilter(c,tp)
...
@@ -15,7 +15,7 @@ function c80955168.cfilter(c,tp)
return
c
:
IsFaceup
()
and
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
c
:
IsPreviousControler
(
1
-
tp
)
return
c
:
IsFaceup
()
and
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
c
:
IsPreviousControler
(
1
-
tp
)
and
c
:
IsControler
(
tp
)
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsControler
(
tp
)
and
c
:
IsRace
(
RACE_ZOMBIE
)
end
end
function
c80955168
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80955168
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c80955168
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c80955168
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c80955168
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c80955168
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c8165596.lua
View file @
6139ed0f
...
@@ -43,7 +43,7 @@ aux.xyz_number[8165596]=90
...
@@ -43,7 +43,7 @@ aux.xyz_number[8165596]=90
function
c8165596
.
indcon
(
e
)
function
c8165596
.
indcon
(
e
)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x55
)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x55
)
end
end
function
c8165596
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8165596
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
return
ep
~=
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
...
...
c81997228.lua
View file @
6139ed0f
...
@@ -81,7 +81,7 @@ function c81997228.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -81,7 +81,7 @@ function c81997228.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c81997228
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c81997228
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c81997228
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c81997228
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c82005435.lua
View file @
6139ed0f
...
@@ -28,7 +28,7 @@ function c82005435.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,7 +28,7 @@ function c82005435.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
sg
=
Duel
.
GetMatchingGroup
(
c82005435
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c82005435
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
end
function
c82005435
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82005435
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetMatchingGroup
(
c82005435
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c82005435
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
end
end
c8233522.lua
View file @
6139ed0f
...
@@ -28,7 +28,7 @@ function c8233522.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -28,7 +28,7 @@ function c8233522.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c8233522
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
2
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c8233522
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
1
-
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
1
-
tp
,
LOCATION_GRAVE
)
end
end
function
c8233522
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8233522
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
c83116692.lua
View file @
6139ed0f
...
@@ -39,7 +39,7 @@ end
...
@@ -39,7 +39,7 @@ end
function
c83116692
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c83116692
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
end
end
function
c83116692
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c83116692
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
mc
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
0
,
LOCATION_GRAVE
,
nil
,
TYPE_MONSTER
)
local
mc
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
0
,
LOCATION_GRAVE
,
nil
,
TYPE_MONSTER
)
local
sc
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
0
,
LOCATION_GRAVE
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
local
sc
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
0
,
LOCATION_GRAVE
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
...
...
c84428023.lua
View file @
6139ed0f
...
@@ -59,7 +59,7 @@ function c84428023.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +59,7 @@ function c84428023.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
end
end
end
end
function
c84428023
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84428023
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
r
==
REASON_BATTLE
and
eg
:
GetFirst
()
==
e
:
GetHandler
():
GetEquipTarget
()
return
ep
~=
tp
and
r
==
REASON_BATTLE
and
eg
:
GetFirst
()
==
e
:
GetHandler
():
GetEquipTarget
()
end
end
function
c84428023
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84428023
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c85215458.lua
View file @
6139ed0f
...
@@ -26,7 +26,7 @@ function c85215458.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,7 +26,7 @@ function c85215458.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c85215458
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c85215458
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
if
Duel
.
GetTurnPlayer
()
~=
tp
then
a
=
Duel
.
GetAttackTarget
()
end
if
Duel
.
GetTurnPlayer
()
~=
tp
then
a
=
Duel
.
GetAttackTarget
()
end
if
not
a
:
IsRelateToBattle
()
then
return
end
if
not
a
:
IsRelateToBattle
()
then
return
end
...
...
c85970321.lua
View file @
6139ed0f
...
@@ -31,7 +31,7 @@ function c85970321.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -31,7 +31,7 @@ function c85970321.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
c85970321
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c85970321
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
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
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
...
...
c86377375.lua
View file @
6139ed0f
...
@@ -34,7 +34,7 @@ function c86377375.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -34,7 +34,7 @@ function c86377375.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c86377375
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c86377375
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c86377375
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c86377375
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c86377375
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c86377375
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c87390067.lua
View file @
6139ed0f
...
@@ -22,7 +22,7 @@ function c87390067.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -22,7 +22,7 @@ function c87390067.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c87390067
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c87390067
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
if
Duel
.
GetTurnPlayer
()
~=
tp
then
a
=
Duel
.
GetAttackTarget
()
end
if
Duel
.
GetTurnPlayer
()
~=
tp
then
a
=
Duel
.
GetAttackTarget
()
end
if
not
a
:
IsRelateToBattle
()
then
return
end
if
not
a
:
IsRelateToBattle
()
then
return
end
...
...
c87526784.lua
View file @
6139ed0f
...
@@ -25,7 +25,7 @@ function c87526784.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c87526784.target(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c87526784
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c87526784
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c87526784
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c87526784
.
operation
(
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
if
not
Duel
.
IsExistingMatchingCard
(
c87526784
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
return
end
if
not
Duel
.
IsExistingMatchingCard
(
c87526784
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
return
end
local
tc
=
Duel
.
GetFirstMatchingCard
(
c87526784
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c87526784
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
...
...
c88283496.lua
View file @
6139ed0f
...
@@ -19,7 +19,7 @@ function c88283496.retcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,7 +19,7 @@ function c88283496.retcon(e,tp,eg,ep,ev,re,r,rp)
return
tc
:
IsLevelBelow
(
4
)
and
not
tc
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
return
tc
:
IsLevelBelow
(
4
)
and
not
tc
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
end
end
function
c88283496
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c88283496
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetLabelObject
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetLabelObject
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetLabelObject
(),
0
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetLabelObject
(),
0
,
0
,
0
)
end
end
function
c88283496
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88283496
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c88754763.lua
View file @
6139ed0f
...
@@ -35,7 +35,7 @@ function c88754763.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -35,7 +35,7 @@ function c88754763.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c88754763
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c88754763
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
local
ct
=
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
if
ct
==
0
then
return
end
if
ct
==
0
then
return
end
local
dc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
local
dc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
...
...
c89127526.lua
View file @
6139ed0f
...
@@ -25,7 +25,7 @@ function c89127526.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -25,7 +25,7 @@ function c89127526.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c89127526
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c89127526
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c89127526
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c89127526
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
...
...
c89211486.lua
View file @
6139ed0f
...
@@ -27,7 +27,7 @@ function c89211486.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -27,7 +27,7 @@ function c89211486.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c89211486
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c89211486
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
c899287.lua
View file @
6139ed0f
...
@@ -38,7 +38,7 @@ function c899287.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -38,7 +38,7 @@ function c899287.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c899287
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c899287
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c899287
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c899287
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c899287
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
tg
=
Duel
.
GetFirstMatchingCard
(
c899287
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tg
then
if
tg
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
...
c90020065.lua
View file @
6139ed0f
...
@@ -41,7 +41,7 @@ function c90020065.damfilter(c)
...
@@ -41,7 +41,7 @@ function c90020065.damfilter(c)
return
c
:
GetPreviousAttackOnField
()
return
c
:
GetPreviousAttackOnField
()
else
return
0
end
else
return
0
end
end
end
function
c90020065
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c90020065
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g1
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g1
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
Duel
.
Destroy
(
g1
,
REASON_EFFECT
)
==
0
then
return
end
if
Duel
.
Destroy
(
g1
,
REASON_EFFECT
)
==
0
then
return
end
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
...
...
c9097866.lua
View file @
6139ed0f
...
@@ -58,7 +58,7 @@ function c9097866.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -58,7 +58,7 @@ function c9097866.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c9097866
.
atkfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c9097866
.
atkfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
end
end
function
c9097866
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9097866
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
a
=
e
:
GetLabelObject
()
local
a
=
e
:
GetLabelObject
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c92661479.lua
View file @
6139ed0f
...
@@ -17,7 +17,7 @@ function c92661479.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c92661479.initial_effect(c)
e1
:
SetOperation
(
c92661479
.
operation
)
e1
:
SetOperation
(
c92661479
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c92661479
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c92661479
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
ep
~=
tp
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
ep
~=
tp
and
loc
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
and
loc
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
...
...
c93124273.lua
View file @
6139ed0f
...
@@ -14,7 +14,7 @@ function c93124273.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c93124273.initial_effect(c)
end
end
function
c93124273
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c93124273
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
d
and
d
:
IsFaceup
()
and
not
d
:
IsType
(
TYPE_PENDULUM
)
end
and
d
and
d
:
IsFaceup
()
and
not
d
:
IsType
(
TYPE_PENDULUM
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
end
end
...
...
c95503687.lua
View file @
6139ed0f
...
@@ -40,7 +40,7 @@ function c95503687.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -40,7 +40,7 @@ function c95503687.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c95503687
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c95503687
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c95503687
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c95503687
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c96352326.lua
View file @
6139ed0f
...
@@ -59,7 +59,7 @@ function c96352326.postg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -59,7 +59,7 @@ function c96352326.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96352326
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96352326
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
nil
,
1
,
0
,
0
)
end
end
function
c96352326
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c96352326
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c96352326
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c96352326
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
...
...
c97489701.lua
View file @
6139ed0f
...
@@ -68,7 +68,7 @@ function c97489701.natg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -68,7 +68,7 @@ function c97489701.natg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetTargetCard
(
Duel
.
GetAttacker
())
Duel
.
SetTargetCard
(
Duel
.
GetAttacker
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c97489701
.
naop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97489701
.
naop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateAttack
()
Duel
.
NegateAttack
()
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
then
...
@@ -82,7 +82,7 @@ function c97489701.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -82,7 +82,7 @@ function c97489701.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c97489701
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97489701
.
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
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c97896503.lua
View file @
6139ed0f
...
@@ -12,7 +12,7 @@ function c97896503.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c97896503.initial_effect(c)
end
end
function
c97896503
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97896503
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
d
~=
nil
and
d
:
IsPosition
(
POS_FACEUP_DEFENSE
)
end
and
d
~=
nil
and
d
:
IsPosition
(
POS_FACEUP_DEFENSE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
end
end
...
...
c98169343.lua
View file @
6139ed0f
...
@@ -54,7 +54,7 @@ function c98169343.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,7 +54,7 @@ function c98169343.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c98169343
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c98169343
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
if
tc
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
local
atk
=
tc
:
GetBaseAttack
()
local
atk
=
tc
:
GetBaseAttack
()
...
...
c98371278.lua
View file @
6139ed0f
...
@@ -77,7 +77,7 @@ function c98371278.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -77,7 +77,7 @@ function c98371278.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetAttacker
():
GetEquipGroup
()
local
g
=
Duel
.
GetAttacker
():
GetEquipGroup
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
#
g
,
0
,
0
)
end
end
function
c98371278
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c98371278
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttacker
()
local
g
=
at
:
GetEquipGroup
()
local
g
=
at
:
GetEquipGroup
()
if
at
:
IsControler
(
tp
)
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
>
0
then
if
at
:
IsControler
(
tp
)
and
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
>
0
then
...
...
c98865920.lua
View file @
6139ed0f
...
@@ -19,7 +19,7 @@ function c98865920.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -19,7 +19,7 @@ function c98865920.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
500
)
Duel
.
SetTargetParam
(
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
500
)
end
end
function
c98865920
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c98865920
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
end
c99011763.lua
View file @
6139ed0f
...
@@ -84,6 +84,6 @@ function c99011763.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -84,6 +84,6 @@ function c99011763.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
c
:
IsCanRemoveCounter
(
tp
,
0x1049
,
1
,
REASON_EFFECT
)
end
and
c
:
IsCanRemoveCounter
(
tp
,
0x1049
,
1
,
REASON_EFFECT
)
end
return
true
return
true
end
end
function
c99011763
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99011763
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x1049
,
1
,
REASON_EFFECT
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x1049
,
1
,
REASON_EFFECT
)
end
end
c99064191.lua
View file @
6139ed0f
...
@@ -51,7 +51,7 @@ function c99064191.activate1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c99064191.activate1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
function
c99064191
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99064191
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c99064191
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c99064191
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
re
:
IsActiveType
(
TYPE_EFFECT
)
and
re
:
GetHandler
():
IsLevelAbove
(
5
)
and
Duel
.
IsChainDisablable
(
ev
)
and
re
:
IsActiveType
(
TYPE_EFFECT
)
and
re
:
GetHandler
():
IsLevelAbove
(
5
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
...
...
c99162753.lua
View file @
6139ed0f
...
@@ -29,7 +29,7 @@ function c99162753.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function c99162753.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
6
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
6
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
)
end
end
function
c99162753
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99162753
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c99162753
.
rmfilter
),
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c99162753
.
rmfilter
),
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rg
=
g
:
SelectSubGroupEach
(
tp
,
c99162753
.
spchecks
,
false
,
c99162753
.
fgoal
,
e
,
tp
)
local
rg
=
g
:
SelectSubGroupEach
(
tp
,
c99162753
.
spchecks
,
false
,
c99162753
.
fgoal
,
e
,
tp
)
...
...
c99357565.lua
View file @
6139ed0f
...
@@ -60,7 +60,7 @@ function c99357565.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -60,7 +60,7 @@ function c99357565.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
c99357565
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c99357565
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
e
:
GetLabel
(),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
e
:
GetLabel
(),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
)
end
end
function
c99357565
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99357565
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabel
()
local
ct
=
e
:
GetLabel
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
>=
ct
then
if
ft
>=
ct
then
...
...
c99585850.lua
View file @
6139ed0f
...
@@ -81,7 +81,7 @@ function c99585850.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -81,7 +81,7 @@ function c99585850.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c99585850
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99585850
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
c
:
IsAbleToRemove
()
and
c
:
IsRelateToEffect
(
e
)
then
g
:
AddCard
(
c
)
end
if
c
:
IsAbleToRemove
()
and
c
:
IsRelateToEffect
(
e
)
then
g
:
AddCard
(
c
)
end
...
@@ -112,7 +112,7 @@ function c99585850.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -112,7 +112,7 @@ function c99585850.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c99585850
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99585850
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c99877698.lua
View file @
6139ed0f
...
@@ -26,7 +26,7 @@ function c99877698.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,7 +26,7 @@ function c99877698.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetParam
(
700
)
Duel
.
SetTargetParam
(
700
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
700
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
700
)
end
end
function
c99877698
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99877698
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
end
c99910751.lua
View file @
6139ed0f
...
@@ -36,7 +36,7 @@ function c99910751.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -36,7 +36,7 @@ function c99910751.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c99910751
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c99910751
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c99910751
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99910751
.
thop
(
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
,
c99910751
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c99910751
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
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