Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-scripts
Commits
352e5244
Commit
352e5244
authored
Nov 01, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean
Fluorohydride/ygopro-core@75c8cf2
parent
29ff8cfd
Changes
79
Hide whitespace changes
Inline
Side-by-side
Showing
79 changed files
with
77 additions
and
109 deletions
+77
-109
c10000020.lua
c10000020.lua
+1
-1
c1003840.lua
c1003840.lua
+1
-1
c10132124.lua
c10132124.lua
+1
-1
c12469386.lua
c12469386.lua
+1
-1
c14154221.lua
c14154221.lua
+1
-1
c14430063.lua
c14430063.lua
+1
-1
c15854426.lua
c15854426.lua
+1
-1
c1801154.lua
c1801154.lua
+1
-1
c20368763.lua
c20368763.lua
+1
-1
c21702241.lua
c21702241.lua
+1
-2
c22174866.lua
c22174866.lua
+1
-1
c23979249.lua
c23979249.lua
+1
-2
c25206027.lua
c25206027.lua
+1
-1
c25407643.lua
c25407643.lua
+1
-1
c26920296.lua
c26920296.lua
+1
-1
c27870033.lua
c27870033.lua
+1
-1
c28201945.lua
c28201945.lua
+1
-2
c30398342.lua
c30398342.lua
+1
-2
c30653113.lua
c30653113.lua
+1
-1
c30834988.lua
c30834988.lua
+1
-1
c32835363.lua
c32835363.lua
+1
-1
c34646691.lua
c34646691.lua
+1
-1
c35307484.lua
c35307484.lua
+1
-1
c36415522.lua
c36415522.lua
+1
-2
c4179255.lua
c4179255.lua
+1
-1
c4215636.lua
c4215636.lua
+1
-1
c43748308.lua
c43748308.lua
+1
-2
c47598941.lua
c47598941.lua
+1
-2
c5050644.lua
c5050644.lua
+1
-1
c54059040.lua
c54059040.lua
+1
-2
c54149433.lua
c54149433.lua
+1
-2
c54407825.lua
c54407825.lua
+1
-1
c55737443.lua
c55737443.lua
+1
-1
c58481572.lua
c58481572.lua
+1
-2
c5851097.lua
c5851097.lua
+2
-3
c58569561.lua
c58569561.lua
+1
-1
c59297550.lua
c59297550.lua
+1
-1
c59593925.lua
c59593925.lua
+1
-1
c60102563.lua
c60102563.lua
+0
-4
c60470713.lua
c60470713.lua
+1
-1
c61466310.lua
c61466310.lua
+1
-2
c61650133.lua
c61650133.lua
+1
-1
c62188962.lua
c62188962.lua
+1
-1
c65830223.lua
c65830223.lua
+1
-1
c66214679.lua
c66214679.lua
+1
-1
c66413481.lua
c66413481.lua
+1
-2
c68073522.lua
c68073522.lua
+1
-1
c68184115.lua
c68184115.lua
+1
-1
c69000994.lua
c69000994.lua
+1
-2
c69488544.lua
c69488544.lua
+1
-1
c712559.lua
c712559.lua
+1
-1
c71645242.lua
c71645242.lua
+1
-1
c72710085.lua
c72710085.lua
+1
-2
c74130411.lua
c74130411.lua
+1
-2
c74923978.lua
c74923978.lua
+1
-1
c75132317.lua
c75132317.lua
+1
-2
c76136345.lua
c76136345.lua
+1
-1
c78540593.lua
c78540593.lua
+1
-1
c80208323.lua
c80208323.lua
+1
-1
c82116191.lua
c82116191.lua
+0
-4
c82705573.lua
c82705573.lua
+1
-1
c83027236.lua
c83027236.lua
+1
-1
c8323633.lua
c8323633.lua
+1
-1
c83715234.lua
c83715234.lua
+1
-1
c84268896.lua
c84268896.lua
+1
-1
c85562745.lua
c85562745.lua
+1
-1
c85893201.lua
c85893201.lua
+1
-2
c85967160.lua
c85967160.lua
+1
-1
c87259933.lua
c87259933.lua
+1
-2
c87473172.lua
c87473172.lua
+0
-4
c87774234.lua
c87774234.lua
+1
-1
c89493368.lua
c89493368.lua
+1
-1
c90953320.lua
c90953320.lua
+1
-1
c92394653.lua
c92394653.lua
+1
-1
c94693857.lua
c94693857.lua
+1
-1
c95376428.lua
c95376428.lua
+1
-1
c95714077.lua
c95714077.lua
+1
-1
c96594609.lua
c96594609.lua
+1
-2
c96789758.lua
c96789758.lua
+1
-1
No files found.
c10000020.lua
View file @
352e5244
...
@@ -103,7 +103,7 @@ function c10000020.atkcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -103,7 +103,7 @@ function c10000020.atkcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c10000020
.
atkfilter
,
1
,
nil
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
c10000020
.
atkfilter
,
1
,
nil
,
nil
,
1
-
tp
)
end
end
function
c10000020
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10000020
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
end
end
function
c10000020
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10000020
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c1003840.lua
View file @
352e5244
...
@@ -65,7 +65,7 @@ function c1003840.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,7 +65,7 @@ function c1003840.thcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c1003840
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c1003840
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsAbleToDeck
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsAbleToDeck
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
c10132124.lua
View file @
352e5244
...
@@ -21,7 +21,7 @@ function c10132124.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -21,7 +21,7 @@ function c10132124.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c10132124
.
spfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c10132124
.
spfilter
,
1
,
nil
,
tp
)
end
end
function
c10132124
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c10132124
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c12469386.lua
View file @
352e5244
...
@@ -21,7 +21,7 @@ function c12469386.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -21,7 +21,7 @@ function c12469386.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c12469386
.
filter
,
1
,
e
:
GetHandler
(),
tp
)
return
eg
:
IsExists
(
c12469386
.
filter
,
1
,
e
:
GetHandler
(),
tp
)
end
end
function
c12469386
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12469386
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c14154221.lua
View file @
352e5244
...
@@ -28,7 +28,7 @@ function c14154221.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -28,7 +28,7 @@ function c14154221.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c14154221
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c14154221
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
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
)
...
...
c14430063.lua
View file @
352e5244
...
@@ -17,7 +17,7 @@ function c14430063.damcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,7 +17,7 @@ function c14430063.damcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPosition
(
POS_FACEUP_ATTACK
)
and
Duel
.
GetTurnPlayer
()
~=
tp
return
e
:
GetHandler
():
IsPosition
(
POS_FACEUP_ATTACK
)
and
Duel
.
GetTurnPlayer
()
~=
tp
end
end
function
c14430063
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14430063
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
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
)
...
...
c15854426.lua
View file @
352e5244
...
@@ -32,7 +32,7 @@ function c15854426.filter(c,e,tp)
...
@@ -32,7 +32,7 @@ function c15854426.filter(c,e,tp)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c15854426
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c15854426
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsExistingMatchingCard
(
c15854426
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c15854426
.
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
)
...
...
c1801154.lua
View file @
352e5244
...
@@ -25,7 +25,7 @@ function c1801154.filter2(c,code)
...
@@ -25,7 +25,7 @@ function c1801154.filter2(c,code)
end
end
function
c1801154
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c1801154
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c1801154
.
filter1
(
chkc
,
e
,
tp
,
eg
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c1801154
.
filter1
(
chkc
,
e
,
tp
,
eg
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c1801154
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
eg
)
end
and
Duel
.
IsExistingTarget
(
c1801154
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
eg
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c1801154
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
eg
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c1801154
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
eg
)
...
...
c20368763.lua
View file @
352e5244
...
@@ -59,7 +59,7 @@ function c20368763.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +59,7 @@ function c20368763.spcon(e,tp,eg,ep,ev,re,r,rp)
return
re
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
and
re
:
IsHasType
(
0x7f0
)
and
eg
:
IsExists
(
c20368763
.
cfilter
,
1
,
nil
,
tp
)
return
re
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
and
re
:
IsHasType
(
0x7f0
)
and
eg
:
IsExists
(
c20368763
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c20368763
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20368763
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
...
...
c21702241.lua
View file @
352e5244
...
@@ -46,8 +46,7 @@ function c21702241.damcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,8 +46,7 @@ function c21702241.damcon(e,tp,eg,ep,ev,re,r,rp)
return
tg
and
eg
:
IsContains
(
tg
)
return
tg
and
eg
:
IsContains
(
tg
)
end
end
function
c21702241
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c21702241
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
if
not
ec
then
return
false
end
if
not
ec
then
return
false
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
ec
:
GetControler
(),
ec
:
GetBaseAttack
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
ec
:
GetControler
(),
ec
:
GetBaseAttack
())
...
...
c22174866.lua
View file @
352e5244
...
@@ -37,7 +37,7 @@ function c22174866.thfilter(c)
...
@@ -37,7 +37,7 @@ function c22174866.thfilter(c)
end
end
function
c22174866
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c22174866
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
c22174866
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
c22174866
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
ep
==
tp
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
ep
==
tp
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c22174866
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c22174866
.
thfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
c23979249.lua
View file @
352e5244
...
@@ -42,8 +42,7 @@ function c23979249.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,8 +42,7 @@ function c23979249.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c23979249
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c23979249
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c23979249
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23979249
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
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
...
...
c25206027.lua
View file @
352e5244
...
@@ -20,7 +20,7 @@ function c25206027.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,7 +20,7 @@ function c25206027.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c25206027
.
spfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c25206027
.
spfilter
,
1
,
nil
,
tp
)
end
end
function
c25206027
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25206027
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c25407643.lua
View file @
352e5244
...
@@ -45,7 +45,7 @@ function c25407643.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +45,7 @@ function c25407643.condition(e,tp,eg,ep,ev,re,r,rp)
and
eg
:
IsExists
(
c25407643
.
cfilter2
,
1
,
nil
,
1
-
tp
)
and
eg
:
IsExists
(
c25407643
.
cfilter2
,
1
,
nil
,
1
-
tp
)
end
end
function
c25407643
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25407643
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
end
end
function
c25407643
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25407643
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c26920296.lua
View file @
352e5244
...
@@ -54,7 +54,7 @@ function c26920296.drcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c26920296.drcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c26920296
.
drcfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c26920296
.
drcfilter
,
1
,
nil
,
tp
)
end
end
function
c26920296
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26920296
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
c26920296
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
TYPE_FUSION
)
end
and
Duel
.
IsExistingMatchingCard
(
c26920296
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
TYPE_FUSION
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
...
...
c27870033.lua
View file @
352e5244
...
@@ -21,7 +21,7 @@ function c27870033.damcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -21,7 +21,7 @@ function c27870033.damcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c27870033
.
cfilter
,
1
,
nil
)
return
eg
:
IsExists
(
c27870033
.
cfilter
,
1
,
nil
)
end
end
function
c27870033
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27870033
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
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
)
...
...
c28201945.lua
View file @
352e5244
...
@@ -42,8 +42,7 @@ function c28201945.filter(c,e,tp,ft)
...
@@ -42,8 +42,7 @@ function c28201945.filter(c,e,tp,ft)
end
end
function
c28201945
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c28201945
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c28201945
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
ft
)
end
and
Duel
.
IsExistingMatchingCard
(
c28201945
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
ft
)
end
end
end
function
c28201945
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28201945
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
...
...
c30398342.lua
View file @
352e5244
...
@@ -63,8 +63,7 @@ function c30398342.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -63,8 +63,7 @@ function c30398342.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
end
function
c30398342
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30398342
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c30398342
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c30398342
.
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
...
...
c30653113.lua
View file @
352e5244
...
@@ -25,7 +25,7 @@ function c30653113.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,7 +25,7 @@ function c30653113.condition(e,tp,eg,ep,ev,re,r,rp)
return
rp
~=
tp
and
eg
:
IsExists
(
c30653113
.
cfilter
,
1
,
nil
,
tp
)
return
rp
~=
tp
and
eg
:
IsExists
(
c30653113
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c30653113
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30653113
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
...
...
c30834988.lua
View file @
352e5244
...
@@ -17,7 +17,7 @@ function c30834988.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c30834988.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c30834988
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30834988
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
eg
,
eg
:
GetCount
(),
0
,
0
)
end
end
...
...
c32835363.lua
View file @
352e5244
...
@@ -46,7 +46,7 @@ function c32835363.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +46,7 @@ function c32835363.regop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
32835363
,
e
,
0
,
tp
,
e
:
GetLabel
(),
0
)
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
EVENT_CUSTOM
+
32835363
,
e
,
0
,
tp
,
e
:
GetLabel
(),
0
)
end
end
function
c32835363
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c32835363
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetParam
(
800
)
Duel
.
SetTargetParam
(
800
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
0
,
0
,
ep
,
800
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
0
,
0
,
ep
,
800
)
end
end
...
...
c34646691.lua
View file @
352e5244
...
@@ -23,7 +23,7 @@ function c34646691.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c34646691.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c34646691
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c34646691
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
eg
,
eg
:
GetCount
(),
0
,
0
)
end
end
...
...
c35307484.lua
View file @
352e5244
...
@@ -28,7 +28,7 @@ function c35307484.spfilter(c,e,tp)
...
@@ -28,7 +28,7 @@ function c35307484.spfilter(c,e,tp)
end
end
function
c35307484
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c35307484
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c35307484
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c35307484
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c35307484
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c35307484
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35307484
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35307484
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c36415522.lua
View file @
352e5244
...
@@ -53,8 +53,7 @@ function c36415522.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -53,8 +53,7 @@ function c36415522.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RegisterFlagEffect
(
36415522
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
36415522
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c36415522
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c36415522
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c36415522
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c36415522
.
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
...
...
c4179255.lua
View file @
352e5244
...
@@ -44,7 +44,7 @@ function c4179255.drcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +44,7 @@ function c4179255.drcon(e,tp,eg,ep,ev,re,r,rp)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
end
end
function
c4179255
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4179255
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
c4215636.lua
View file @
352e5244
...
@@ -28,7 +28,7 @@ function c4215636.spfilter(c,e,tp)
...
@@ -28,7 +28,7 @@ function c4215636.spfilter(c,e,tp)
return
c
:
IsLevelBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c4215636
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4215636
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c4215636
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c4215636
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
)
end
end
...
...
c43748308.lua
View file @
352e5244
...
@@ -40,8 +40,7 @@ function c43748308.filter(c)
...
@@ -40,8 +40,7 @@ function c43748308.filter(c)
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
end
function
c43748308
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43748308
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c43748308
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c43748308
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
end
function
c43748308
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43748308
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c47598941.lua
View file @
352e5244
...
@@ -63,8 +63,7 @@ function c47598941.settg1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -63,8 +63,7 @@ function c47598941.settg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
end
function
c47598941
.
settg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47598941
.
settg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
))
and
Duel
.
IsExistingMatchingCard
(
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
end
function
c47598941
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47598941
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c5050644.lua
View file @
352e5244
...
@@ -63,7 +63,7 @@ function c5050644.recon2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,7 +63,7 @@ function c5050644.recon2(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c5050644
.
cfilter2
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c5050644
.
cfilter2
,
1
,
nil
,
tp
)
end
end
function
c5050644
.
retg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5050644
.
retg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
...
...
c54059040.lua
View file @
352e5244
...
@@ -46,8 +46,7 @@ function c54059040.target1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -46,8 +46,7 @@ function c54059040.target1(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
c54059040
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54059040
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c54059040
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c54059040
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
eg
:
IsExists
(
c54059040
.
pfilter
,
1
,
nil
)
end
and
eg
:
IsExists
(
c54059040
.
pfilter
,
1
,
nil
)
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
eg
,
eg
:
GetCount
(),
0
,
0
)
...
...
c54149433.lua
View file @
352e5244
...
@@ -32,8 +32,7 @@ function c54149433.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,8 +32,7 @@ function c54149433.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c54149433
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c54149433
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c54149433
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54149433
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c54407825.lua
View file @
352e5244
...
@@ -24,7 +24,7 @@ function c54407825.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,7 +24,7 @@ function c54407825.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c54407825
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c54407825
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsAbleToDeck
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsAbleToDeck
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
c55737443.lua
View file @
352e5244
...
@@ -49,7 +49,7 @@ function c55737443.damcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,7 +49,7 @@ function c55737443.damcon(e,tp,eg,ep,ev,re,r,rp)
return
tc
~=
e
:
GetHandler
()
and
tc
:
IsAttribute
(
ATTRIBUTE_EARTH
)
return
tc
~=
e
:
GetHandler
()
and
tc
:
IsAttribute
(
ATTRIBUTE_EARTH
)
end
end
function
c55737443
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55737443
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
1000
)
...
...
c58481572.lua
View file @
352e5244
...
@@ -41,8 +41,7 @@ function c58481572.hdcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,8 +41,7 @@ function c58481572.hdcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DRAW
and
eg
:
IsExists
(
c58481572
.
cfilter
,
1
,
nil
,
1
-
tp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DRAW
and
eg
:
IsExists
(
c58481572
.
cfilter
,
1
,
nil
,
1
-
tp
)
end
end
function
c58481572
.
hdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58481572
.
hdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c58481572
.
hdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c58481572
.
hdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c5851097.lua
View file @
352e5244
...
@@ -32,9 +32,8 @@ function c5851097.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,9 +32,8 @@ function c5851097.descon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c5851097
.
filter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c5851097
.
filter
,
1
,
nil
,
tp
)
end
end
function
c5851097
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5851097
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
c
:
IsRelateToEffect
(
e
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
c
,
1
,
0
,
0
)
end
end
function
c5851097
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5851097
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c58569561.lua
View file @
352e5244
...
@@ -53,7 +53,7 @@ function c58569561.filter(c)
...
@@ -53,7 +53,7 @@ function c58569561.filter(c)
end
end
function
c58569561
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c58569561
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c58569561
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c58569561
.
filter
(
chkc
)
end
if
chk
==
0
then
return
ep
==
tp
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
ep
==
tp
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c58569561
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c58569561
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
c59297550.lua
View file @
352e5244
...
@@ -23,7 +23,7 @@ function c59297550.filter(c,e,tp)
...
@@ -23,7 +23,7 @@ function c59297550.filter(c,e,tp)
end
end
function
c59297550
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59297550
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsStatus
(
STATUS_CHAINING
)
if
chk
==
0
then
return
not
c
:
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c59297550
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c59297550
.
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
)
...
...
c59593925.lua
View file @
352e5244
...
@@ -40,7 +40,7 @@ function c59593925.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c59593925.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c59593925
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c59593925
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
c60102563.lua
View file @
352e5244
...
@@ -8,7 +8,6 @@ function c60102563.initial_effect(c)
...
@@ -8,7 +8,6 @@ function c60102563.initial_effect(c)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c60102563
.
atkcon
)
e1
:
SetCondition
(
c60102563
.
atkcon
)
e1
:
SetTarget
(
c60102563
.
atktg
)
e1
:
SetOperation
(
c60102563
.
atkop
)
e1
:
SetOperation
(
c60102563
.
atkop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -18,9 +17,6 @@ end
...
@@ -18,9 +17,6 @@ end
function
c60102563
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60102563
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c60102563
.
cfilter
,
1
,
nil
)
return
eg
:
IsExists
(
c60102563
.
cfilter
,
1
,
nil
)
end
end
function
c60102563
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
end
function
c60102563
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60102563
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
...
...
c60470713.lua
View file @
352e5244
...
@@ -30,7 +30,7 @@ function c60470713.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,7 +30,7 @@ function c60470713.condition(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
eg
:
IsExists
(
c60470713
.
cfilter
,
1
,
nil
,
tp
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
eg
:
IsExists
(
c60470713
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c60470713
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60470713
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_DECK
)
end
end
...
...
c61466310.lua
View file @
352e5244
...
@@ -40,8 +40,7 @@ function c61466310.filter2(c,atk,code)
...
@@ -40,8 +40,7 @@ function c61466310.filter2(c,atk,code)
return
c
:
GetAttack
()
==
atk
and
c
:
GetDefense
()
==
1000
and
c
:
GetCode
()
~=
code
and
c
:
IsAbleToHand
()
return
c
:
GetAttack
()
==
atk
and
c
:
GetDefense
()
==
1000
and
c
:
GetCode
()
~=
code
and
c
:
IsAbleToHand
()
end
end
function
c61466310
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61466310
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c61466310
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
eg
:
GetFirst
():
GetCode
())
end
and
Duel
.
IsExistingMatchingCard
(
c61466310
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
eg
:
GetFirst
():
GetCode
())
end
local
t1
=
Duel
.
IsExistingMatchingCard
(
c61466310
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
2400
,
eg
:
GetFirst
():
GetCode
())
local
t1
=
Duel
.
IsExistingMatchingCard
(
c61466310
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
2400
,
eg
:
GetFirst
():
GetCode
())
local
t2
=
Duel
.
IsExistingMatchingCard
(
c61466310
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
2800
,
eg
:
GetFirst
():
GetCode
())
local
t2
=
Duel
.
IsExistingMatchingCard
(
c61466310
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
2800
,
eg
:
GetFirst
():
GetCode
())
if
t1
and
t2
then
e
:
SetLabel
(
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
61466310
,
1
),
aux
.
Stringid
(
61466310
,
2
)))
if
t1
and
t2
then
e
:
SetLabel
(
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
61466310
,
1
),
aux
.
Stringid
(
61466310
,
2
)))
...
...
c61650133.lua
View file @
352e5244
...
@@ -37,7 +37,7 @@ function c61650133.mtop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,7 +37,7 @@ function c61650133.mtop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c61650133
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61650133
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
end
end
function
c61650133
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61650133
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
c62188962.lua
View file @
352e5244
...
@@ -43,7 +43,7 @@ function c62188962.tgfilter(c)
...
@@ -43,7 +43,7 @@ function c62188962.tgfilter(c)
end
end
function
c62188962
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c62188962
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
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_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
...
...
c65830223.lua
View file @
352e5244
...
@@ -24,7 +24,7 @@ function c65830223.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,7 +24,7 @@ function c65830223.condition(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c65830223
.
filter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c65830223
.
filter
,
1
,
nil
,
tp
)
end
end
function
c65830223
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65830223
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
300
)
Duel
.
SetTargetParam
(
300
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
0
,
0
,
1
-
tp
,
300
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
0
,
0
,
1
-
tp
,
300
)
...
...
c66214679.lua
View file @
352e5244
...
@@ -32,7 +32,7 @@ function c66214679.filter(c,e,tp)
...
@@ -32,7 +32,7 @@ function c66214679.filter(c,e,tp)
end
end
function
c66214679
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c66214679
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c66214679
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c66214679
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c66214679
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c66214679
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c66214679
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c66214679
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c66413481.lua
View file @
352e5244
...
@@ -33,8 +33,7 @@ function c66413481.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,8 +33,7 @@ function c66413481.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c66413481
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c66413481
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c66413481
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66413481
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c68073522.lua
View file @
352e5244
...
@@ -24,7 +24,7 @@ function c68073522.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,7 +24,7 @@ function c68073522.condition(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c68073522
.
filter
,
1
,
nil
)
return
eg
:
IsExists
(
c68073522
.
filter
,
1
,
nil
)
end
end
function
c68073522
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68073522
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
local
ct
=
eg
:
FilterCount
(
c68073522
.
filter
,
nil
)
local
ct
=
eg
:
FilterCount
(
c68073522
.
filter
,
nil
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
ct
*
500
)
Duel
.
SetTargetParam
(
ct
*
500
)
...
...
c68184115.lua
View file @
352e5244
...
@@ -68,7 +68,7 @@ function c68184115.spfilter(c,e,tp)
...
@@ -68,7 +68,7 @@ function c68184115.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0x56
)
and
c
:
GetCode
()
~=
68184115
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x56
)
and
c
:
GetCode
()
~=
68184115
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c68184115
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68184115
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
Is
RelateToEffect
(
e
)
and
e
:
GetHandler
():
Is
Faceup
()
if
chk
==
0
then
return
e
:
GetHandler
():
IsFaceup
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c68184115
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c68184115
.
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
...
...
c69000994.lua
View file @
352e5244
...
@@ -39,8 +39,7 @@ function c69000994.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,8 +39,7 @@ function c69000994.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c69000994
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c69000994
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c69000994
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69000994
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c69488544.lua
View file @
352e5244
...
@@ -36,7 +36,7 @@ function c69488544.filter(c,e,tp)
...
@@ -36,7 +36,7 @@ function c69488544.filter(c,e,tp)
end
end
function
c69488544
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c69488544
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c69488544
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c69488544
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c69488544
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c69488544
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c69488544
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c69488544
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c712559.lua
View file @
352e5244
...
@@ -45,7 +45,7 @@ function c712559.spfilter(c,e,tp,lv)
...
@@ -45,7 +45,7 @@ function c712559.spfilter(c,e,tp,lv)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsSetCard
(
0x4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsSetCard
(
0x4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c712559
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c712559
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c712559
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
e
:
GetLabel
())
end
and
Duel
.
IsExistingMatchingCard
(
c712559
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
e
:
GetLabel
())
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
c71645242.lua
View file @
352e5244
...
@@ -56,7 +56,7 @@ function c71645242.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function c71645242.regop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RaiseEvent
(
eg
,
EVENT_CUSTOM
+
71645242
,
e
,
r
,
rp
,
ep
,
e
:
GetLabel
())
Duel
.
RaiseEvent
(
eg
,
EVENT_CUSTOM
+
71645242
,
e
,
r
,
rp
,
ep
,
e
:
GetLabel
())
end
end
function
c71645242
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c71645242
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
...
...
c72710085.lua
View file @
352e5244
...
@@ -26,8 +26,7 @@ function c72710085.filter(c,att)
...
@@ -26,8 +26,7 @@ function c72710085.filter(c,att)
return
not
c
:
IsAttribute
(
att
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
return
not
c
:
IsAttribute
(
att
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
end
end
function
c72710085
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72710085
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c72710085
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
eg
:
GetFirst
():
GetAttribute
())
end
and
Duel
.
IsExistingMatchingCard
(
c72710085
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
eg
:
GetFirst
():
GetAttribute
())
end
e
:
SetLabel
(
eg
:
GetFirst
():
GetAttribute
())
e
:
SetLabel
(
eg
:
GetFirst
():
GetAttribute
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
...
...
c74130411.lua
View file @
352e5244
...
@@ -23,8 +23,7 @@ function c74130411.filter(c)
...
@@ -23,8 +23,7 @@ function c74130411.filter(c)
return
c
:
IsAttackBelow
(
1000
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToHand
()
return
c
:
IsAttackBelow
(
1000
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToHand
()
end
end
function
c74130411
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74130411
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c74130411
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c74130411
.
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
c74130411
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c74130411
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c74923978.lua
View file @
352e5244
...
@@ -25,7 +25,7 @@ function c74923978.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,7 +25,7 @@ function c74923978.condition(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c74923978
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c74923978
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c74923978
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74923978
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
local
ct
=
eg
:
FilterCount
(
c74923978
.
cfilter
,
nil
,
tp
)
local
ct
=
eg
:
FilterCount
(
c74923978
.
cfilter
,
nil
,
tp
)
e
:
SetLabel
(
ct
)
e
:
SetLabel
(
ct
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
1
-
tp
,
ct
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
1
-
tp
,
ct
)
...
...
c75132317.lua
View file @
352e5244
...
@@ -36,8 +36,7 @@ function c75132317.filter(c)
...
@@ -36,8 +36,7 @@ function c75132317.filter(c)
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
end
function
c75132317
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c75132317
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c75132317
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c75132317
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
end
function
c75132317
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75132317
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c76136345.lua
View file @
352e5244
...
@@ -44,7 +44,7 @@ function c76136345.filter(c,e,tp)
...
@@ -44,7 +44,7 @@ function c76136345.filter(c,e,tp)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c76136345
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c76136345
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c76136345
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c76136345
.
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
...
...
c78540593.lua
View file @
352e5244
...
@@ -21,7 +21,7 @@ function c78540593.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -21,7 +21,7 @@ function c78540593.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c78540593
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c78540593
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
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
)
...
...
c80208323.lua
View file @
352e5244
...
@@ -20,7 +20,7 @@ function c80208323.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,7 +20,7 @@ function c80208323.spcon(e,tp,eg,ep,ev,re,r,rp)
return
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
c80208323
.
spfilter
,
1
,
nil
,
tp
)
return
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
c80208323
.
spfilter
,
1
,
nil
,
tp
)
end
end
function
c80208323
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80208323
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c82116191.lua
View file @
352e5244
...
@@ -8,7 +8,6 @@ function c82116191.initial_effect(c)
...
@@ -8,7 +8,6 @@ function c82116191.initial_effect(c)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c82116191
.
atkcon
)
e1
:
SetCondition
(
c82116191
.
atkcon
)
e1
:
SetTarget
(
c82116191
.
atktg
)
e1
:
SetOperation
(
c82116191
.
atkop
)
e1
:
SetOperation
(
c82116191
.
atkop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -18,9 +17,6 @@ end
...
@@ -18,9 +17,6 @@ end
function
c82116191
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82116191
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c82116191
.
filter
,
1
,
nil
)
return
eg
:
IsExists
(
c82116191
.
filter
,
1
,
nil
)
end
end
function
c82116191
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
end
function
c82116191
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82116191
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
...
...
c82705573.lua
View file @
352e5244
...
@@ -25,7 +25,7 @@ function c82705573.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,7 +25,7 @@ function c82705573.condition(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c82705573
.
filter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c82705573
.
filter
,
1
,
nil
,
tp
)
end
end
function
c82705573
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82705573
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
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
)
...
...
c83027236.lua
View file @
352e5244
...
@@ -25,7 +25,7 @@ function c83027236.condtion(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,7 +25,7 @@ function c83027236.condtion(e,tp,eg,ep,ev,re,r,rp)
return
rp
~=
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
eg
:
IsExists
(
c83027236
.
cfilter
,
1
,
nil
,
1
-
tp
)
return
rp
~=
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
eg
:
IsExists
(
c83027236
.
cfilter
,
1
,
nil
,
1
-
tp
)
end
end
function
c83027236
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c83027236
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
1
-
tp
,
3
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
1
-
tp
,
3
)
end
end
function
c83027236
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83027236
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c8323633.lua
View file @
352e5244
...
@@ -39,7 +39,7 @@ function c8323633.rmcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +39,7 @@ function c8323633.rmcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c8323633
.
filter
,
1
,
nil
,
e
:
GetLabel
())
and
rp
~=
tp
return
eg
:
IsExists
(
c8323633
.
filter
,
1
,
nil
,
e
:
GetLabel
())
and
rp
~=
tp
end
end
function
c8323633
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8323633
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
local
g
=
eg
:
Filter
(
c8323633
.
filter
,
nil
,
e
:
GetLabel
())
local
g
=
eg
:
Filter
(
c8323633
.
filter
,
nil
,
e
:
GetLabel
())
g
:
AddCard
(
e
:
GetHandler
())
g
:
AddCard
(
e
:
GetHandler
())
...
...
c83715234.lua
View file @
352e5244
...
@@ -32,7 +32,7 @@ function c83715234.desfilter(c)
...
@@ -32,7 +32,7 @@ function c83715234.desfilter(c)
end
end
function
c83715234
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c83715234
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
and
c83715234
.
desfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
and
c83715234
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsExistingTarget
(
c83715234
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
c83715234
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c83715234
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c83715234
.
desfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
...
...
c84268896.lua
View file @
352e5244
...
@@ -50,7 +50,7 @@ function c84268896.drcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,7 +50,7 @@ function c84268896.drcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
c84268896
.
filter
,
1
,
nil
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
c84268896
.
filter
,
1
,
nil
)
end
end
function
c84268896
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84268896
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
c85562745.lua
View file @
352e5244
...
@@ -22,7 +22,7 @@ function c85562745.con(e,tp,eg,ep,ev,re,r,rp)
...
@@ -22,7 +22,7 @@ function c85562745.con(e,tp,eg,ep,ev,re,r,rp)
return
ep
~=
tp
and
bit
.
band
(
r
,
REASON_BATTLE
)
==
0
and
re
and
re
:
GetHandler
():
GetCode
()
~=
85562745
return
ep
~=
tp
and
bit
.
band
(
r
,
REASON_BATTLE
)
==
0
and
re
and
re
:
GetHandler
():
GetCode
()
~=
85562745
end
end
function
c85562745
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c85562745
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
300
)
Duel
.
SetTargetParam
(
300
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
300
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
300
)
...
...
c85893201.lua
View file @
352e5244
...
@@ -27,8 +27,7 @@ function c85893201.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,8 +27,7 @@ function c85893201.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c85893201
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c85893201
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
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
)
...
...
c85967160.lua
View file @
352e5244
...
@@ -29,7 +29,7 @@ function c85967160.adcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,7 +29,7 @@ function c85967160.adcon(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
tp
return
ep
==
tp
end
end
function
c85967160
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c85967160
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
ep
==
tp
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
ep
==
tp
end
end
end
function
c85967160
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c85967160
.
adop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c87259933.lua
View file @
352e5244
...
@@ -65,8 +65,7 @@ function c87259933.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -65,8 +65,7 @@ function c87259933.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
end
function
c87259933
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c87259933
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c87259933
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c87259933
.
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
...
...
c87473172.lua
View file @
352e5244
...
@@ -8,7 +8,6 @@ function c87473172.initial_effect(c)
...
@@ -8,7 +8,6 @@ function c87473172.initial_effect(c)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c87473172
.
atkcon
)
e1
:
SetCondition
(
c87473172
.
atkcon
)
e1
:
SetTarget
(
c87473172
.
atktg
)
e1
:
SetOperation
(
c87473172
.
atkop
)
e1
:
SetOperation
(
c87473172
.
atkop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -19,9 +18,6 @@ end
...
@@ -19,9 +18,6 @@ end
function
c87473172
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c87473172
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c87473172
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c87473172
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c87473172
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
end
function
c87473172
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c87473172
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
...
...
c87774234.lua
View file @
352e5244
...
@@ -17,7 +17,7 @@ function c87774234.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,7 +17,7 @@ function c87774234.condition(e,tp,eg,ep,ev,re,r,rp)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
end
end
function
c87774234
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c87774234
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c89493368.lua
View file @
352e5244
...
@@ -45,7 +45,7 @@ function c89493368.damcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +45,7 @@ function c89493368.damcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
end
end
function
c89493368
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c89493368
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
e
:
GetHandler
():
RegisterFlagEffect
(
89493368
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
89493368
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
800
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
800
)
end
end
...
...
c90953320.lua
View file @
352e5244
...
@@ -20,7 +20,7 @@ function c90953320.drcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,7 +20,7 @@ function c90953320.drcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
GetCount
()
==
1
and
tg
~=
e
:
GetHandler
()
and
tg
:
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
return
eg
:
GetCount
()
==
1
and
tg
~=
e
:
GetHandler
()
and
tg
:
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
end
function
c90953320
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c90953320
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
c92394653.lua
View file @
352e5244
...
@@ -36,7 +36,7 @@ function c92394653.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,7 +36,7 @@ function c92394653.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c92394653
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c92394653
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsAbleToHand
()
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
1
-
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
1
-
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
c94693857.lua
View file @
352e5244
...
@@ -34,7 +34,7 @@ function c94693857.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,7 +34,7 @@ function c94693857.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c94693857
.
filter
,
2
,
nil
)
return
eg
:
IsExists
(
c94693857
.
filter
,
2
,
nil
)
end
end
function
c94693857
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94693857
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c95376428.lua
View file @
352e5244
...
@@ -21,7 +21,7 @@ function c95376428.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -21,7 +21,7 @@ function c95376428.condition(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
Card
.
IsPreviousLocation
,
1
,
nil
,
LOCATION_EXTRA
)
return
eg
:
IsExists
(
Card
.
IsPreviousLocation
,
1
,
nil
,
LOCATION_EXTRA
)
end
end
function
c95376428
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c95376428
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
end
end
function
c95376428
.
filter
(
c
,
tp
)
function
c95376428
.
filter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
==
tp
return
c
:
GetSummonPlayer
()
==
tp
...
...
c95714077.lua
View file @
352e5244
...
@@ -27,7 +27,7 @@ function c95714077.filter(c)
...
@@ -27,7 +27,7 @@ function c95714077.filter(c)
end
end
function
c95714077
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c95714077
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsStatus
(
STATUS_CHAINING
)
if
chk
==
0
then
return
not
c
:
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsExistingMatchingCard
(
c95714077
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c95714077
.
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
...
...
c96594609.lua
View file @
352e5244
...
@@ -32,8 +32,7 @@ function c96594609.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,8 +32,7 @@ function c96594609.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c96594609
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c96594609
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c96594609
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c96594609
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
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
...
...
c96789758.lua
View file @
352e5244
...
@@ -33,7 +33,7 @@ function c96789758.drcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +33,7 @@ function c96789758.drcon(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
tp
return
ep
==
tp
end
end
function
c96789758
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c96789758
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
ep
==
tp
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
ep
==
tp
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
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