Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
八宫一月
ygopro-scripts
Commits
4f9c7c68
Commit
4f9c7c68
authored
Jan 10, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format: space
parent
5a64bbae
Changes
177
Hide whitespace changes
Inline
Side-by-side
Showing
177 changed files
with
191 additions
and
191 deletions
+191
-191
c10860121.lua
c10860121.lua
+1
-1
c11834972.lua
c11834972.lua
+1
-1
c12183332.lua
c12183332.lua
+1
-1
c12469386.lua
c12469386.lua
+1
-1
c12538374.lua
c12538374.lua
+1
-1
c12644061.lua
c12644061.lua
+1
-1
c1372887.lua
c1372887.lua
+2
-2
c14391920.lua
c14391920.lua
+2
-2
c14517422.lua
c14517422.lua
+1
-1
c14536035.lua
c14536035.lua
+1
-1
c16111820.lua
c16111820.lua
+1
-1
c1644289.lua
c1644289.lua
+1
-1
c1662004.lua
c1662004.lua
+1
-1
c16832845.lua
c16832845.lua
+3
-3
c17266660.lua
c17266660.lua
+1
-1
c17418744.lua
c17418744.lua
+1
-1
c17775525.lua
c17775525.lua
+1
-1
c19261966.lua
c19261966.lua
+1
-1
c19596712.lua
c19596712.lua
+1
-1
c1995985.lua
c1995985.lua
+1
-1
c20057949.lua
c20057949.lua
+1
-1
c20137754.lua
c20137754.lua
+1
-1
c20590515.lua
c20590515.lua
+1
-1
c20612097.lua
c20612097.lua
+1
-1
c20747792.lua
c20747792.lua
+1
-1
c20822520.lua
c20822520.lua
+1
-1
c21074344.lua
c21074344.lua
+1
-1
c21105106.lua
c21105106.lua
+1
-1
c21208154.lua
c21208154.lua
+2
-2
c21843307.lua
c21843307.lua
+1
-1
c21924381.lua
c21924381.lua
+1
-1
c22419772.lua
c22419772.lua
+1
-1
c22587018.lua
c22587018.lua
+1
-1
c23557835.lua
c23557835.lua
+1
-1
c23681456.lua
c23681456.lua
+1
-1
c24096228.lua
c24096228.lua
+1
-1
c24285858.lua
c24285858.lua
+1
-1
c24566654.lua
c24566654.lua
+1
-1
c25518020.lua
c25518020.lua
+1
-1
c2584136.lua
c2584136.lua
+1
-1
c25988873.lua
c25988873.lua
+1
-1
c26308721.lua
c26308721.lua
+1
-1
c2645637.lua
c2645637.lua
+1
-1
c26640671.lua
c26640671.lua
+1
-1
c27174286.lua
c27174286.lua
+1
-1
c27407330.lua
c27407330.lua
+1
-1
c282886.lua
c282886.lua
+1
-1
c28649820.lua
c28649820.lua
+1
-1
c28741524.lua
c28741524.lua
+1
-1
c29590905.lua
c29590905.lua
+1
-1
c32134638.lua
c32134638.lua
+1
-1
c32362575.lua
c32362575.lua
+1
-1
c32603633.lua
c32603633.lua
+1
-1
c3280747.lua
c3280747.lua
+1
-1
c33491462.lua
c33491462.lua
+1
-1
c34822850.lua
c34822850.lua
+1
-1
c3580032.lua
c3580032.lua
+2
-2
c36006208.lua
c36006208.lua
+1
-1
c368382.lua
c368382.lua
+1
-1
c36870345.lua
c36870345.lua
+1
-1
c37198732.lua
c37198732.lua
+1
-1
c37626500.lua
c37626500.lua
+1
-1
c38538445.lua
c38538445.lua
+1
-1
c38891741.lua
c38891741.lua
+1
-1
c38988538.lua
c38988538.lua
+1
-1
c39712330.lua
c39712330.lua
+1
-1
c39829561.lua
c39829561.lua
+1
-1
c4064256.lua
c4064256.lua
+1
-1
c41158734.lua
c41158734.lua
+1
-1
c4192696.lua
c4192696.lua
+1
-1
c41999284.lua
c41999284.lua
+1
-1
c42256406.lua
c42256406.lua
+1
-1
c42793609.lua
c42793609.lua
+1
-1
c43114901.lua
c43114901.lua
+1
-1
c43641473.lua
c43641473.lua
+1
-1
c44330098.lua
c44330098.lua
+1
-1
c44689688.lua
c44689688.lua
+1
-1
c44944304.lua
c44944304.lua
+1
-1
c45305419.lua
c45305419.lua
+1
-1
c45313993.lua
c45313993.lua
+1
-1
c45383307.lua
c45383307.lua
+1
-1
c45705025.lua
c45705025.lua
+1
-1
c46035545.lua
c46035545.lua
+1
-1
c46609443.lua
c46609443.lua
+1
-1
c46647144.lua
c46647144.lua
+1
-1
c47171541.lua
c47171541.lua
+1
-1
c48356796.lua
c48356796.lua
+1
-1
c50584941.lua
c50584941.lua
+1
-1
c50613779.lua
c50613779.lua
+1
-1
c50669347.lua
c50669347.lua
+1
-1
c50781944.lua
c50781944.lua
+1
-1
c52035300.lua
c52035300.lua
+1
-1
c52977572.lua
c52977572.lua
+1
-1
c53291093.lua
c53291093.lua
+1
-1
c54451023.lua
c54451023.lua
+1
-1
c54913680.lua
c54913680.lua
+1
-1
c5592689.lua
c5592689.lua
+1
-1
c56535497.lua
c56535497.lua
+2
-2
c57019473.lua
c57019473.lua
+1
-1
c57409948.lua
c57409948.lua
+1
-1
c58330108.lua
c58330108.lua
+2
-2
c58577036.lua
c58577036.lua
+1
-1
c59577547.lua
c59577547.lua
+2
-2
c5975022.lua
c5975022.lua
+1
-1
c59820352.lua
c59820352.lua
+1
-1
c60312997.lua
c60312997.lua
+1
-1
c60482781.lua
c60482781.lua
+1
-1
c6165656.lua
c6165656.lua
+1
-1
c62325062.lua
c62325062.lua
+1
-1
c62624486.lua
c62624486.lua
+1
-1
c6276588.lua
c6276588.lua
+1
-1
c63175639.lua
c63175639.lua
+2
-2
c63251695.lua
c63251695.lua
+1
-1
c63442604.lua
c63442604.lua
+1
-1
c63519819.lua
c63519819.lua
+1
-1
c65240384.lua
c65240384.lua
+2
-2
c65676461.lua
c65676461.lua
+1
-1
c66194206.lua
c66194206.lua
+1
-1
c66607691.lua
c66607691.lua
+1
-1
c66729231.lua
c66729231.lua
+1
-1
c67007102.lua
c67007102.lua
+1
-1
c67630339.lua
c67630339.lua
+1
-1
c68191243.lua
c68191243.lua
+1
-1
c68722455.lua
c68722455.lua
+1
-1
c68829754.lua
c68829754.lua
+1
-1
c69035382.lua
c69035382.lua
+1
-1
c7030340.lua
c7030340.lua
+1
-1
c706925.lua
c706925.lua
+1
-1
c7243511.lua
c7243511.lua
+1
-1
c72537897.lua
c72537897.lua
+1
-1
c72549351.lua
c72549351.lua
+1
-1
c72932673.lua
c72932673.lua
+1
-1
c74095602.lua
c74095602.lua
+1
-1
c74115234.lua
c74115234.lua
+1
-1
c74117290.lua
c74117290.lua
+1
-1
c74591968.lua
c74591968.lua
+1
-1
c75487237.lua
c75487237.lua
+2
-2
c75991898.lua
c75991898.lua
+1
-1
c76218643.lua
c76218643.lua
+1
-1
c76754619.lua
c76754619.lua
+1
-1
c77372241.lua
c77372241.lua
+1
-1
c7802006.lua
c7802006.lua
+1
-1
c78156759.lua
c78156759.lua
+1
-1
c80604091.lua
c80604091.lua
+1
-1
c80769747.lua
c80769747.lua
+1
-1
c81426505.lua
c81426505.lua
+1
-1
c81782376.lua
c81782376.lua
+1
-1
c82044279.lua
c82044279.lua
+1
-1
c82052602.lua
c82052602.lua
+1
-1
c83531441.lua
c83531441.lua
+1
-1
c83965310.lua
c83965310.lua
+1
-1
c85087012.lua
c85087012.lua
+1
-1
c85551711.lua
c85551711.lua
+1
-1
c86137485.lua
c86137485.lua
+1
-1
c86238081.lua
c86238081.lua
+1
-1
c8719957.lua
c8719957.lua
+1
-1
c88616795.lua
c88616795.lua
+2
-2
c90727556.lua
c90727556.lua
+1
-1
c91468551.lua
c91468551.lua
+1
-1
c92099232.lua
c92099232.lua
+1
-1
c9236985.lua
c9236985.lua
+1
-1
c92373006.lua
c92373006.lua
+1
-1
c92826944.lua
c92826944.lua
+1
-1
c93108433.lua
c93108433.lua
+1
-1
c93191801.lua
c93191801.lua
+1
-1
c93895605.lua
c93895605.lua
+1
-1
c93912845.lua
c93912845.lua
+1
-1
c94224458.lua
c94224458.lua
+1
-1
c94689635.lua
c94689635.lua
+1
-1
c95451366.lua
c95451366.lua
+1
-1
c9560338.lua
c9560338.lua
+2
-2
c96380700.lua
c96380700.lua
+1
-1
c98427577.lua
c98427577.lua
+1
-1
c98645731.lua
c98645731.lua
+1
-1
c99050989.lua
c99050989.lua
+1
-1
c99330325.lua
c99330325.lua
+1
-1
utility.lua
utility.lua
+1
-1
No files found.
c10860121.lua
View file @
4f9c7c68
...
@@ -17,7 +17,7 @@ function c10860121.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c10860121.initial_effect(c)
end
end
function
c10860121
.
cfilter
(
c
,
tp
)
function
c10860121
.
cfilter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0x88
)
and
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
IsSetCard
(
0x88
)
and
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
c
:
IsReason
(
REASON_BATTLE
)
end
end
function
c10860121
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10860121
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c10860121
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c10860121
.
cfilter
,
1
,
nil
,
tp
)
...
...
c11834972.lua
View file @
4f9c7c68
...
@@ -25,7 +25,7 @@ function c11834972.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,7 +25,7 @@ function c11834972.cost(e,tp,eg,ep,ev,re,r,rp,chk)
table.insert
(
ct
,
i
)
table.insert
(
ct
,
i
)
end
end
end
end
if
#
ct
==
1
then
if
#
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
11834972
,
1
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
11834972
,
1
))
...
...
c12183332.lua
View file @
4f9c7c68
...
@@ -22,7 +22,7 @@ end
...
@@ -22,7 +22,7 @@ end
function
c12183332
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12183332
.
operation
(
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
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
12183332
,
1
),
aux
.
Stringid
(
12183332
,
2
))
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
12183332
,
1
),
aux
.
Stringid
(
12183332
,
2
))
if
opt
==
0
then
if
opt
==
0
then
Duel
.
ShuffleDeck
(
tp
)
Duel
.
ShuffleDeck
(
tp
)
else
else
Duel
.
ShuffleDeck
(
1
-
tp
)
Duel
.
ShuffleDeck
(
1
-
tp
)
...
...
c12469386.lua
View file @
4f9c7c68
...
@@ -14,7 +14,7 @@ function c12469386.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c12469386.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c12469386
.
filter
(
c
,
tp
)
function
c12469386
.
filter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetPreviousLevelOnField
()
>=
5
and
bit
.
band
(
c
:
GetPreviousRaceOnField
(),
RACE_PLANT
)
~=
0
and
c
:
GetPreviousLevelOnField
()
>=
5
and
bit
.
band
(
c
:
GetPreviousRaceOnField
(),
RACE_PLANT
)
~=
0
end
end
function
c12469386
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12469386
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c12538374.lua
View file @
4f9c7c68
...
@@ -17,7 +17,7 @@ function c12538374.filter(c)
...
@@ -17,7 +17,7 @@ function c12538374.filter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
or
(
c
:
IsCode
(
12538374
)
and
c
:
IsFaceup
())
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
or
(
c
:
IsCode
(
12538374
)
and
c
:
IsFaceup
())
end
end
function
c12538374
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12538374
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
not
Duel
.
IsExistingMatchingCard
(
c12538374
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
not
Duel
.
IsExistingMatchingCard
(
c12538374
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
end
function
c12538374
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12538374
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c12644061.lua
View file @
4f9c7c68
...
@@ -68,7 +68,7 @@ function c12644061.distg(e,c)
...
@@ -68,7 +68,7 @@ function c12644061.distg(e,c)
end
end
function
c12644061
.
condition
(
e
)
function
c12644061
.
condition
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NECRO_VALLEY
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NECRO_VALLEY
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
end
end
function
c12644061
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12644061
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c1372887.lua
View file @
4f9c7c68
...
@@ -38,7 +38,7 @@ function c1372887.cfilter(c,tp)
...
@@ -38,7 +38,7 @@ function c1372887.cfilter(c,tp)
return
c
:
IsControler
(
1
-
tp
)
and
not
c
:
IsReason
(
REASON_DRAW
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_GRAVE
)
return
c
:
IsControler
(
1
-
tp
)
and
not
c
:
IsReason
(
REASON_DRAW
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c1372887
.
drcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1372887
.
drcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c1372887
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c1372887
.
cfilter
,
1
,
nil
,
tp
)
and
(
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
or
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
))
and
(
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
or
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
))
end
end
function
c1372887
.
drop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1372887
.
drop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -46,7 +46,7 @@ function c1372887.drop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +46,7 @@ function c1372887.drop1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
function
c1372887
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1372887
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c1372887
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
1372887
)
==
0
return
eg
:
IsExists
(
c1372887
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
1372887
)
==
0
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
end
end
function
c1372887
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1372887
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c14391920.lua
View file @
4f9c7c68
...
@@ -21,8 +21,8 @@ function c14391920.filter(c)
...
@@ -21,8 +21,8 @@ function c14391920.filter(c)
end
end
function
c14391920
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14391920
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c14391920
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c14391920
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c14391920
.
chkfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c14391920
.
chkfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
...
...
c14517422.lua
View file @
4f9c7c68
...
@@ -14,7 +14,7 @@ function c14517422.filter(c,e,tp)
...
@@ -14,7 +14,7 @@ function c14517422.filter(c,e,tp)
return
c
:
IsSetCard
(
0xef
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0xef
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c14517422
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14517422
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c14517422
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c14517422
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
...
c14536035.lua
View file @
4f9c7c68
...
@@ -53,7 +53,7 @@ end
...
@@ -53,7 +53,7 @@ end
function
c14536035
.
sgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14536035
.
sgop
(
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
,
c14536035
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14536035
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
end
end
c16111820.lua
View file @
4f9c7c68
...
@@ -12,7 +12,7 @@ function c16111820.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c16111820.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c16111820
.
filter
(
c
,
tp
)
function
c16111820
.
filter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousPosition
(
POS_DEFENSE
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousPosition
(
POS_DEFENSE
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsSetCard
(
0x22
)
and
c
:
GetCode
()
~=
16111820
and
c
:
IsSetCard
(
0x22
)
and
c
:
GetCode
()
~=
16111820
end
end
function
c16111820
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c16111820
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c1644289.lua
View file @
4f9c7c68
...
@@ -39,7 +39,7 @@ function c1644289.eqlimit(e,c)
...
@@ -39,7 +39,7 @@ function c1644289.eqlimit(e,c)
return
c
:
IsSetCard
(
0x30
)
return
c
:
IsSetCard
(
0x30
)
end
end
function
c1644289
.
tglimit
(
e
,
re
,
rp
)
function
c1644289
.
tglimit
(
e
,
re
,
rp
)
return
rp
==
1
-
e
:
GetHandlerPlayer
()
and
re
:
IsActiveType
(
TYPE_TRAP
+
TYPE_MONSTER
)
return
rp
==
1
-
e
:
GetHandlerPlayer
()
and
re
:
IsActiveType
(
TYPE_TRAP
+
TYPE_MONSTER
)
end
end
function
c1644289
.
filter
(
c
)
function
c1644289
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x30
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x30
)
...
...
c1662004.lua
View file @
4f9c7c68
...
@@ -27,7 +27,7 @@ function c1662004.spfilter(c,e,tp)
...
@@ -27,7 +27,7 @@ function c1662004.spfilter(c,e,tp)
return
c
:
IsDefenseBelow
(
200
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsDefenseBelow
(
200
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c1662004
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c1662004
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c1662004
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c1662004
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c1662004
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c1662004
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
c16832845.lua
View file @
4f9c7c68
...
@@ -49,9 +49,9 @@ function c16832845.filter(c)
...
@@ -49,9 +49,9 @@ function c16832845.filter(c)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
end
function
c16832845
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16832845
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c16832845
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
and
return
Duel
.
IsExistingMatchingCard
(
c16832845
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c16832845
.
chkfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
not
Duel
.
IsExistingMatchingCard
(
c16832845
.
chkfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
end
local
g
=
Duel
.
GetMatchingGroup
(
c16832845
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c16832845
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
c17266660.lua
View file @
4f9c7c68
...
@@ -22,7 +22,7 @@ function c17266660.costfilter(c)
...
@@ -22,7 +22,7 @@ function c17266660.costfilter(c)
end
end
function
c17266660
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17266660
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToGraveAsCost
()
and
if
chk
==
0
then
return
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c17266660
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
IsExistingMatchingCard
(
c17266660
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c17266660
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c17266660
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
...
...
c17418744.lua
View file @
4f9c7c68
...
@@ -18,7 +18,7 @@ function c17418744.counterfilter(c)
...
@@ -18,7 +18,7 @@ function c17418744.counterfilter(c)
end
end
function
c17418744
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17418744
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
17418744
,
tp
,
ACTIVITY_SUMMON
)
==
0
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
17418744
,
tp
,
ACTIVITY_SUMMON
)
==
0
and
Duel
.
GetCustomActivityCount
(
17418744
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
Duel
.
GetCustomActivityCount
(
17418744
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
Duel
.
GetCustomActivityCount
(
17418744
,
tp
,
ACTIVITY_FLIPSUMMON
)
==
0
end
and
Duel
.
GetCustomActivityCount
(
17418744
,
tp
,
ACTIVITY_FLIPSUMMON
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c17775525.lua
View file @
4f9c7c68
...
@@ -62,7 +62,7 @@ function c17775525.filter(c)
...
@@ -62,7 +62,7 @@ function c17775525.filter(c)
end
end
function
c17775525
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17775525
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c17775525
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c17775525
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c17775525
.
chkfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c17775525
.
chkfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
end
local
g
=
Duel
.
GetMatchingGroup
(
c17775525
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c17775525
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
)
...
...
c19261966.lua
View file @
4f9c7c68
...
@@ -35,7 +35,7 @@ function c19261966.splimit(e,se,sp,st)
...
@@ -35,7 +35,7 @@ function c19261966.splimit(e,se,sp,st)
return
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
return
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
end
end
function
c19261966
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c19261966
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
se
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
se
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
return
se
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
se
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
c
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_HAND
)
and
c
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_HAND
)
end
end
function
c19261966
.
thfilter
(
c
)
function
c19261966
.
thfilter
(
c
)
...
...
c19596712.lua
View file @
4f9c7c68
...
@@ -52,7 +52,7 @@ function c19596712.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +52,7 @@ function c19596712.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c19596712
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c19596712
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_SZONE
return
rp
==
1
-
tp
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_SZONE
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
Duel
.
IsChainDisablable
(
ev
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
c19596712
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c19596712
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateEffect
(
ev
)
then
if
Duel
.
NegateEffect
(
ev
)
then
...
...
c1995985.lua
View file @
4f9c7c68
...
@@ -37,7 +37,7 @@ function c1995985.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,7 +37,7 @@ function c1995985.disop(e,tp,eg,ep,ev,re,r,rp)
if
not
re
:
GetHandler
():
IsType
(
TYPE_SPELL
)
or
rp
==
tp
then
return
end
if
not
re
:
GetHandler
():
IsType
(
TYPE_SPELL
)
or
rp
==
tp
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
g
and
g
:
IsContains
(
e
:
GetHandler
())
then
if
g
and
g
:
IsContains
(
e
:
GetHandler
())
then
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
end
end
...
...
c20057949.lua
View file @
4f9c7c68
...
@@ -72,7 +72,7 @@ function c20057949.filter(c,e,tp)
...
@@ -72,7 +72,7 @@ function c20057949.filter(c,e,tp)
return
c
:
IsSetCard
(
0x31
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x31
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c20057949
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20057949
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c20057949
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c20057949
.
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
...
...
c20137754.lua
View file @
4f9c7c68
...
@@ -51,7 +51,7 @@ function c20137754.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c20137754.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c20137754
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20137754
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
20137754
)
>
0
return
e
:
GetHandler
():
GetFlagEffect
(
20137754
)
>
0
and
aux
.
dscon
()
and
aux
.
dscon
()
end
end
function
c20137754
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20137754
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c20590515.lua
View file @
4f9c7c68
...
@@ -26,7 +26,7 @@ function c20590515.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c20590515.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c20590515
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20590515
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20590515
,
0
,
0x11
,
500
,
1800
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
20590515
,
0
,
0x11
,
500
,
1800
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
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
...
...
c20612097.lua
View file @
4f9c7c68
...
@@ -32,7 +32,7 @@ function c20612097.spfilter(c,e,tp,check)
...
@@ -32,7 +32,7 @@ function c20612097.spfilter(c,e,tp,check)
and
(
check
or
c
:
IsSetCard
(
0x1142
))
and
(
check
or
c
:
IsSetCard
(
0x1142
))
end
end
function
c20612097
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20612097
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
chk1
=
Duel
.
IsExistingMatchingCard
(
c20612097
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
chk1
=
Duel
.
IsExistingMatchingCard
(
c20612097
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c20612097
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
chk1
)
and
Duel
.
IsExistingMatchingCard
(
c20612097
.
spfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
chk1
)
...
...
c20747792.lua
View file @
4f9c7c68
...
@@ -47,7 +47,7 @@ function c20747792.spfilter(c,e,tp)
...
@@ -47,7 +47,7 @@ function c20747792.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0x20a2
)
and
not
c
:
IsCode
(
20747792
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x20a2
)
and
not
c
:
IsCode
(
20747792
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c20747792
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20747792
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsContains
(
e
:
GetHandler
())
and
rp
==
1
-
tp
return
eg
:
IsContains
(
e
:
GetHandler
())
and
rp
==
1
-
tp
end
end
function
c20747792
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20747792
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsContains
(
e
:
GetHandler
())
and
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
return
eg
:
IsContains
(
e
:
GetHandler
())
and
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
...
...
c20822520.lua
View file @
4f9c7c68
...
@@ -48,7 +48,7 @@ function c20822520.aclimit(e,re,tp)
...
@@ -48,7 +48,7 @@ function c20822520.aclimit(e,re,tp)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
not
re
:
GetHandler
():
IsSetCard
(
0x106e
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
not
re
:
GetHandler
():
IsSetCard
(
0x106e
)
end
end
function
c20822520
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20822520
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
2
then
return
false
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
2
then
return
false
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
2
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
2
)
return
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
return
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
...
...
c21074344.lua
View file @
4f9c7c68
...
@@ -23,7 +23,7 @@ function c21074344.costfilter(c)
...
@@ -23,7 +23,7 @@ function c21074344.costfilter(c)
end
end
function
c21074344
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c21074344
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToGraveAsCost
()
and
if
chk
==
0
then
return
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c21074344
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
IsExistingMatchingCard
(
c21074344
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c21074344
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c21074344
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
...
...
c21105106.lua
View file @
4f9c7c68
...
@@ -83,7 +83,7 @@ function c21105106.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -83,7 +83,7 @@ function c21105106.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c21105106
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c21105106
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
e
:
GetHandler
())
and
not
Duel
.
IsExistingMatchingCard
(
aux
.
NOT
(
Card
.
IsAbleToRemove
),
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
e
:
GetHandler
())
and
not
Duel
.
IsExistingMatchingCard
(
aux
.
NOT
(
Card
.
IsAbleToRemove
),
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
e
:
GetHandler
())
end
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
e
:
GetHandler
())
...
...
c21208154.lua
View file @
4f9c7c68
...
@@ -58,7 +58,7 @@ function c21208154.filter(c)
...
@@ -58,7 +58,7 @@ function c21208154.filter(c)
end
end
function
c21208154
.
adval
(
e
,
c
)
function
c21208154
.
adval
(
e
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c21208154
.
filter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c21208154
.
filter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
==
0
then
if
g
:
GetCount
()
==
0
then
return
100
return
100
else
else
local
tg
,
val
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
local
tg
,
val
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
...
@@ -74,7 +74,7 @@ function c21208154.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,7 +74,7 @@ function c21208154.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
c21208154
.
aclimit
)
e1
:
SetValue
(
c21208154
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
,
2
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c21208154
.
aclimit
(
e
,
re
,
tp
)
function
c21208154
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
c21843307.lua
View file @
4f9c7c68
...
@@ -16,7 +16,7 @@ function c21843307.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,7 +16,7 @@ function c21843307.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c21843307
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c21843307
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ec
=
eg
:
GetFirst
()
local
ec
=
eg
:
GetFirst
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
ec
:
GetCode
(),
0
,
0x11
,
0
,
0
,
ec
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
ec
:
GetCode
(),
0
,
0x11
,
0
,
0
,
ec
:
GetLevel
(),
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
end
ec
:
CreateEffectRelation
(
e
)
ec
:
CreateEffectRelation
(
e
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
c21924381.lua
View file @
4f9c7c68
...
@@ -27,7 +27,7 @@ end
...
@@ -27,7 +27,7 @@ end
function
c21924381
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c21924381
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
and
a
:
IsAttackable
()
and
a
:
IsRelateToEffect
(
e
)
and
not
a
:
IsImmuneToEffect
(
e
)
then
and
a
:
IsAttackable
()
and
a
:
IsRelateToEffect
(
e
)
and
not
a
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c22419772.lua
View file @
4f9c7c68
...
@@ -17,7 +17,7 @@ function c22419772.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -17,7 +17,7 @@ function c22419772.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c22419772
.
filter
(
c
,
tp
,
tid
)
function
c22419772
.
filter
(
c
,
tp
,
tid
)
return
c
:
IsAbleToDeck
()
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
GetTurnID
()
==
tid
and
c
:
GetReasonPlayer
()
==
1
-
tp
return
c
:
IsAbleToDeck
()
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
GetTurnID
()
==
tid
and
c
:
GetReasonPlayer
()
==
1
-
tp
end
end
function
c22419772
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c22419772
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
tid
=
Duel
.
GetTurnCount
()
local
tid
=
Duel
.
GetTurnCount
()
...
...
c22587018.lua
View file @
4f9c7c68
...
@@ -15,7 +15,7 @@ function c22587018.filter(c,e,tp)
...
@@ -15,7 +15,7 @@ function c22587018.filter(c,e,tp)
return
c
:
IsCode
(
22587018
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
22587018
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c22587018
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22587018
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c22587018
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c22587018
.
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
...
...
c23557835.lua
View file @
4f9c7c68
...
@@ -18,7 +18,7 @@ function c23557835.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,7 +18,7 @@ function c23557835.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
2000
)
Duel
.
PayLPCost
(
tp
,
2000
)
end
end
function
c23557835
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23557835
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
if
chk
==
0
then
return
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c23557835
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
))
or
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c23557835
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
))
or
(
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c23557835
.
filter
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
1
-
tp
))
(
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c23557835
.
filter
,
tp
,
0
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
1
-
tp
))
end
end
...
...
c23681456.lua
View file @
4f9c7c68
...
@@ -13,7 +13,7 @@ function c23681456.filter(c,e,tp)
...
@@ -13,7 +13,7 @@ function c23681456.filter(c,e,tp)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x71
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23681456
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23681456
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c23681456
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c23681456
.
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
...
...
c24096228.lua
View file @
4f9c7c68
...
@@ -92,7 +92,7 @@ function c24096228.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -92,7 +92,7 @@ function c24096228.operation(e,tp,eg,ep,ev,re,r,rp)
etc
:
CreateEffectRelation
(
te
)
etc
:
CreateEffectRelation
(
te
)
etc
=
g
:
GetNext
()
etc
=
g
:
GetNext
()
end
end
if
op
then
if
op
then
if
tc
:
IsSetCard
(
0x95
)
then
if
tc
:
IsSetCard
(
0x95
)
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
else
else
...
...
c24285858.lua
View file @
4f9c7c68
...
@@ -15,7 +15,7 @@ function c24285858.filter(c)
...
@@ -15,7 +15,7 @@ function c24285858.filter(c)
end
end
function
c24285858
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c24285858
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_GRAVE
and
chkc
:
GetControler
()
==
tp
and
c24285858
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_GRAVE
and
chkc
:
GetControler
()
==
tp
and
c24285858
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingTarget
(
c24285858
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
and
Duel
.
IsExistingTarget
(
c24285858
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c24285858
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
3
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c24285858
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
3
,
3
,
nil
)
...
...
c24566654.lua
View file @
4f9c7c68
...
@@ -12,7 +12,7 @@ function c24566654.cfilter(c)
...
@@ -12,7 +12,7 @@ function c24566654.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
70902743
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
70902743
)
end
end
function
c24566654
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24566654
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c24566654
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
ep
~=
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
Duel
.
IsExistingMatchingCard
(
c24566654
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
ep
~=
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
aux
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
aux
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
function
c24566654
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24566654
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c25518020.lua
View file @
4f9c7c68
...
@@ -13,7 +13,7 @@ function c25518020.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c25518020.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_MACHINE
))
e2
:
SetValue
(
200
)
e2
:
SetValue
(
200
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--add counter
--add counter
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
c2584136.lua
View file @
4f9c7c68
...
@@ -13,7 +13,7 @@ end
...
@@ -13,7 +13,7 @@ end
function
c2584136
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c2584136
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
rp
==
1
-
tp
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
rp
==
1
-
tp
and
bc
:
IsFaceup
()
and
bc
:
IsRelateToBattle
()
and
bc
:
IsFaceup
()
and
bc
:
IsRelateToBattle
()
end
end
function
c2584136
.
eqlimit
(
e
,
c
)
function
c2584136
.
eqlimit
(
e
,
c
)
...
...
c25988873.lua
View file @
4f9c7c68
...
@@ -33,7 +33,7 @@ function c25988873.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +33,7 @@ function c25988873.spop(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
then
return
end
if
not
tc
then
return
end
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsControler
(
1
-
tp
)
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsControler
(
1
-
tp
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
...
...
c26308721.lua
View file @
4f9c7c68
--捕食植物プテロペンテス
--捕食植物プテロペンテス
function
c26308721
.
initial_effect
(
c
)
function
c26308721
.
initial_effect
(
c
)
--counter
--counter
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c2645637.lua
View file @
4f9c7c68
...
@@ -41,7 +41,7 @@ function c2645637.spfilter(c)
...
@@ -41,7 +41,7 @@ function c2645637.spfilter(c)
return
c
:
GetSummonLocation
()
==
LOCATION_GRAVE
return
c
:
GetSummonLocation
()
==
LOCATION_GRAVE
end
end
function
c2645637
.
atkcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c2645637
.
atkcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c2645637
.
spfilter
,
1
,
nil
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
return
eg
:
IsExists
(
c2645637
.
spfilter
,
1
,
nil
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
and
not
(
re
and
re
:
IsActivated
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
(
re
and
re
:
IsActivated
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_GRAVE
)
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_GRAVE
)
end
end
...
...
c26640671.lua
View file @
4f9c7c68
...
@@ -39,7 +39,7 @@ function c26640671.initial_effect(c)
...
@@ -39,7 +39,7 @@ function c26640671.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c26640671
.
filter
(
c
,
ec
)
function
c26640671
.
filter
(
c
,
ec
)
return
c
:
IsFaceup
()
and
not
ec
:
IsHasCardTarget
(
c
)
and
c
:
IsRace
(
RACE_INSECT
)
return
c
:
IsFaceup
()
and
not
ec
:
IsHasCardTarget
(
c
)
and
c
:
IsRace
(
RACE_INSECT
)
end
end
function
c26640671
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c26640671
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c26640671
.
filter
(
chkc
,
e
:
GetHandler
())
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c26640671
.
filter
(
chkc
,
e
:
GetHandler
())
end
...
...
c27174286.lua
View file @
4f9c7c68
...
@@ -18,7 +18,7 @@ function c27174286.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,7 +18,7 @@ function c27174286.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
end
end
function
c27174286
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c27174286
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c27174286
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c27174286
.
filter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_REMOVED
)
end
end
...
...
c27407330.lua
View file @
4f9c7c68
...
@@ -51,7 +51,7 @@ end
...
@@ -51,7 +51,7 @@ end
function
c27407330
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27407330
.
rmop
(
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
,
c27407330
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c27407330
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
end
c282886.lua
View file @
4f9c7c68
...
@@ -24,7 +24,7 @@ function c282886.filter(c,e,tp)
...
@@ -24,7 +24,7 @@ function c282886.filter(c,e,tp)
return
c
:
IsSetCard
(
0x74
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x74
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c282886
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c282886
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c282886
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c282886
.
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
...
...
c28649820.lua
View file @
4f9c7c68
...
@@ -15,7 +15,7 @@ function c28649820.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,7 +15,7 @@ function c28649820.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
end
function
c28649820
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c28649820
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28649820
,
0
,
0x11
,
1600
,
1800
,
4
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
end
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
28649820
,
0
,
0x11
,
1600
,
1800
,
4
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
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
...
...
c28741524.lua
View file @
4f9c7c68
...
@@ -16,7 +16,7 @@ function c28741524.filter(c,e,tp)
...
@@ -16,7 +16,7 @@ function c28741524.filter(c,e,tp)
end
end
function
c28741524
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c28741524
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c28741524
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c28741524
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c28741524
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c28741524
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
...
...
c29590905.lua
View file @
4f9c7c68
...
@@ -32,7 +32,7 @@ function c29590905.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,7 @@ function c29590905.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
NegateAttack
()
Duel
.
NegateAttack
()
local
a
=
ga
:
GetFirst
()
local
a
=
ga
:
GetFirst
()
local
d
=
gd
:
GetFirst
()
local
d
=
gd
:
GetFirst
()
if
a
:
IsAttackable
()
and
not
a
:
IsImmuneToEffect
(
e
)
and
not
d
:
IsImmuneToEffect
(
e
)
then
if
a
:
IsAttackable
()
and
not
a
:
IsImmuneToEffect
(
e
)
and
not
d
:
IsImmuneToEffect
(
e
)
then
Duel
.
CalculateDamage
(
a
,
d
)
Duel
.
CalculateDamage
(
a
,
d
)
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
end
end
...
...
c32134638.lua
View file @
4f9c7c68
...
@@ -27,7 +27,7 @@ function c32134638.tfilter(c,tp)
...
@@ -27,7 +27,7 @@ function c32134638.tfilter(c,tp)
end
end
function
c32134638
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32134638
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
e
:
GetHandler
():
GetFlagEffect
(
32134638
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
return
e
:
GetHandler
():
GetFlagEffect
(
32134638
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
g
and
g
:
IsExists
(
c32134638
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
g
and
g
:
IsExists
(
c32134638
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
c32134638
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32134638
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c32362575.lua
View file @
4f9c7c68
...
@@ -20,7 +20,7 @@ function c32362575.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,7 +20,7 @@ function c32362575.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
spcard
=
nil
local
spcard
=
nil
while
tc
do
while
tc
do
if
tc
:
GetSequence
()
>
seq
then
if
tc
:
GetSequence
()
>
seq
then
seq
=
tc
:
GetSequence
()
seq
=
tc
:
GetSequence
()
spcard
=
tc
spcard
=
tc
end
end
...
...
c32603633.lua
View file @
4f9c7c68
...
@@ -19,7 +19,7 @@ function c32603633.filter(c,e,tp)
...
@@ -19,7 +19,7 @@ function c32603633.filter(c,e,tp)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
c
:
GetCode
())
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
c
:
GetCode
())
end
end
function
c32603633
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c32603633
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c32603633
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c32603633
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
...
c3280747.lua
View file @
4f9c7c68
...
@@ -20,7 +20,7 @@ function c3280747.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -20,7 +20,7 @@ function c3280747.activate(e,tp,eg,ep,ev,re,r,rp)
local
p
=
1
local
p
=
1
for
i
=
1
,
6
do
t
[
i
]
=
i
end
for
i
=
1
,
6
do
t
[
i
]
=
i
end
local
a1
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
t
))
local
a1
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
t
))
for
i
=
1
,
6
do
for
i
=
1
,
6
do
if
a1
~=
i
then
t
[
p
]
=
i
p
=
p
+
1
end
if
a1
~=
i
then
t
[
p
]
=
i
p
=
p
+
1
end
end
end
t
[
p
]
=
nil
t
[
p
]
=
nil
...
...
c33491462.lua
View file @
4f9c7c68
...
@@ -44,7 +44,7 @@ function c33491462.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,7 +44,7 @@ function c33491462.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c33491462
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33491462
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33491462
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33491462
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
c34822850.lua
View file @
4f9c7c68
...
@@ -68,6 +68,6 @@ function c34822850.atlimit(e,c)
...
@@ -68,6 +68,6 @@ function c34822850.atlimit(e,c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbb
)
and
Duel
.
IsExistingMatchingCard
(
c34822850
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetLevel
())
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xbb
)
and
Duel
.
IsExistingMatchingCard
(
c34822850
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetLevel
())
end
end
function
c34822850
.
tglimit
(
e
,
c
)
function
c34822850
.
tglimit
(
e
,
c
)
return
c
:
IsSetCard
(
0xbb
)
return
c
:
IsSetCard
(
0xbb
)
and
Duel
.
IsExistingMatchingCard
(
c34822850
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetLevel
())
and
Duel
.
IsExistingMatchingCard
(
c34822850
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
c
:
GetLevel
())
end
end
c3580032.lua
View file @
4f9c7c68
...
@@ -53,7 +53,7 @@ function c3580032.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -53,7 +53,7 @@ function c3580032.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetTarget
(
c3580032
.
splimit
)
e1
:
SetTarget
(
c3580032
.
splimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c3580032
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c3580032
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsSetCard
(
0x107a
)
return
not
c
:
IsSetCard
(
0x107a
)
end
end
...
@@ -64,7 +64,7 @@ function c3580032.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -64,7 +64,7 @@ function c3580032.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingMatchingCard
(
c3580032
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c3580032
.
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
c3580032
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3580032
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
c36006208.lua
View file @
4f9c7c68
...
@@ -82,7 +82,7 @@ function c36006208.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -82,7 +82,7 @@ function c36006208.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
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
,
3
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
3
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c36006208
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36006208
.
activate
(
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
)
...
...
c368382.lua
View file @
4f9c7c68
...
@@ -25,7 +25,7 @@ function c368382.tfilter(c,tp)
...
@@ -25,7 +25,7 @@ function c368382.tfilter(c,tp)
end
end
function
c368382
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c368382
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
e
:
GetHandler
():
GetFlagEffect
(
368382
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
return
e
:
GetHandler
():
GetFlagEffect
(
368382
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
g
and
g
:
IsExists
(
c368382
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
g
and
g
:
IsExists
(
c368382
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
c368382
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c368382
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c36870345.lua
View file @
4f9c7c68
...
@@ -38,7 +38,7 @@ function c36870345.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,7 @@ function c36870345.spop(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
then
return
end
if
not
tc
then
return
end
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsControler
(
1
-
tp
)
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsControler
(
1
-
tp
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
...
...
c37198732.lua
View file @
4f9c7c68
...
@@ -14,7 +14,7 @@ function c37198732.cfilter(c)
...
@@ -14,7 +14,7 @@ function c37198732.cfilter(c)
return
c
:
GetLevel
()
>
0
and
c
:
IsAbleToGraveAsCost
()
return
c
:
GetLevel
()
>
0
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c37198732
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c37198732
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
Duel
.
IsExistingMatchingCard
(
c37198732
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
c37198732
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
then
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
return
true
return
true
...
...
c37626500.lua
View file @
4f9c7c68
...
@@ -3,5 +3,5 @@ function c37626500.initial_effect(c)
...
@@ -3,5 +3,5 @@ function c37626500.initial_effect(c)
aux
.
AddRitualProcEqual2
(
c
,
c37626500
.
ritual_filter
)
aux
.
AddRitualProcEqual2
(
c
,
c37626500
.
ritual_filter
)
end
end
function
c37626500
.
ritual_filter
(
c
)
function
c37626500
.
ritual_filter
(
c
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
end
c38538445.lua
View file @
4f9c7c68
...
@@ -22,7 +22,7 @@ function c38538445.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c38538445.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c38538445
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38538445
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
return
ep
~=
tp
end
end
function
c38538445
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c38538445
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c38891741.lua
View file @
4f9c7c68
...
@@ -32,7 +32,7 @@ function c38891741.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,7 +32,7 @@ function c38891741.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c38891741
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38891741
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
NegateActivation
(
ev
)
then
return
end
if
not
Duel
.
NegateActivation
(
ev
)
then
return
end
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
end
end
c38988538.lua
View file @
4f9c7c68
...
@@ -28,7 +28,7 @@ function c38988538.tfilter(c,tp)
...
@@ -28,7 +28,7 @@ function c38988538.tfilter(c,tp)
end
end
function
c38988538
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38988538
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
e
:
GetHandler
():
GetFlagEffect
(
38988538
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
return
e
:
GetHandler
():
GetFlagEffect
(
38988538
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
g
and
g
:
IsExists
(
c38988538
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
g
and
g
:
IsExists
(
c38988538
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
c38988538
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38988538
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c39712330.lua
View file @
4f9c7c68
...
@@ -56,7 +56,7 @@ function c39712330.activate1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function c39712330.activate1(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c39712330
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c39712330
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
if
tc
:
IsSummonable
(
true
,
nil
)
and
(
not
tc
:
IsMSetable
(
true
,
nil
)
if
tc
:
IsSummonable
(
true
,
nil
)
and
(
not
tc
:
IsMSetable
(
true
,
nil
)
or
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
then
or
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
then
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
)
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
)
else
Duel
.
MSet
(
tp
,
tc
,
true
,
nil
)
end
else
Duel
.
MSet
(
tp
,
tc
,
true
,
nil
)
end
...
...
c39829561.lua
View file @
4f9c7c68
...
@@ -25,7 +25,7 @@ function c39829561.filter(c)
...
@@ -25,7 +25,7 @@ function c39829561.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
83986578
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
83986578
)
end
end
function
c39829561
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39829561
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
not
Duel
.
IsExistingMatchingCard
(
c39829561
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
not
Duel
.
IsExistingMatchingCard
(
c39829561
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c39829561
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c39829561
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c4064256.lua
View file @
4f9c7c68
...
@@ -41,6 +41,6 @@ function c4064256.sumlimit(e,c,tp,sumtp)
...
@@ -41,6 +41,6 @@ function c4064256.sumlimit(e,c,tp,sumtp)
end
end
function
c4064256
.
condition
(
e
)
function
c4064256
.
condition
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NECRO_VALLEY
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NECRO_VALLEY
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
end
end
c41158734.lua
View file @
4f9c7c68
...
@@ -35,7 +35,7 @@ function c41158734.spfilter(c,e,tp)
...
@@ -35,7 +35,7 @@ function c41158734.spfilter(c,e,tp)
end
end
function
c41158734
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c41158734
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c41158734
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c41158734
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c41158734
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c41158734
.
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
,
c41158734
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c41158734
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c4192696.lua
View file @
4f9c7c68
...
@@ -16,7 +16,7 @@ function c4192696.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,7 +16,7 @@ function c4192696.spcon(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
tp
and
1
-
tp
==
rp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
return
ep
==
tp
and
1
-
tp
==
rp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
end
function
c4192696
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4192696
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
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
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ev
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ev
)
...
...
c41999284.lua
View file @
4f9c7c68
...
@@ -57,7 +57,7 @@ function c41999284.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -57,7 +57,7 @@ function c41999284.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c41999284
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41999284
.
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
)
end
end
end
end
c42256406.lua
View file @
4f9c7c68
...
@@ -67,7 +67,7 @@ function c42256406.defcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -67,7 +67,7 @@ function c42256406.defcost(e,tp,eg,ep,ev,re,r,rp,chk)
table.insert
(
ct
,
i
)
table.insert
(
ct
,
i
)
end
end
end
end
if
#
ct
==
1
then
if
#
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
else
...
...
c42793609.lua
View file @
4f9c7c68
...
@@ -26,7 +26,7 @@ function c42793609.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -26,7 +26,7 @@ function c42793609.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
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
sc
=
g
:
GetNext
()
local
sc
=
g
:
GetNext
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
sc
:
IsFacedown
()
or
not
sc
:
IsRelateToEffect
(
e
)
then
return
end
or
sc
:
IsFacedown
()
or
not
sc
:
IsRelateToEffect
(
e
)
then
return
end
local
ac
=
e
:
GetLabelObject
()
local
ac
=
e
:
GetLabelObject
()
if
tc
==
ac
then
tc
=
sc
end
if
tc
==
ac
then
tc
=
sc
end
...
...
c43114901.lua
View file @
4f9c7c68
...
@@ -17,7 +17,7 @@ function c43114901.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,7 +17,7 @@ function c43114901.thcon(e,tp,eg,ep,ev,re,r,rp)
if
not
aux
.
IsDualState
(
e
)
then
return
false
end
if
not
aux
.
IsDualState
(
e
)
then
return
false
end
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
end
end
function
c43114901
.
filter
(
c
)
function
c43114901
.
filter
(
c
)
return
c
:
IsSetCard
(
0x1047
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x1047
)
and
c
:
IsAbleToHand
()
...
...
c43641473.lua
View file @
4f9c7c68
...
@@ -32,7 +32,7 @@ function c43641473.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,7 @@ function c43641473.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
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
==
ec
then
tc
=
g
:
GetNext
()
end
if
tc
==
ec
then
tc
=
g
:
GetNext
()
end
if
ec
:
IsFaceup
()
and
ec
:
IsRelateToEffect
(
e
)
then
if
ec
:
IsFaceup
()
and
ec
:
IsRelateToEffect
(
e
)
then
Duel
.
Equip
(
tp
,
ec
,
tc
)
Duel
.
Equip
(
tp
,
ec
,
tc
)
end
end
end
end
c44330098.lua
View file @
4f9c7c68
...
@@ -42,7 +42,7 @@ function c44330098.sumcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,7 +42,7 @@ function c44330098.sumcon(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
tp
and
1
-
tp
==
rp
and
not
Duel
.
IsExistingMatchingCard
(
c44330098
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
ep
==
tp
and
1
-
tp
==
rp
and
not
Duel
.
IsExistingMatchingCard
(
c44330098
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
end
function
c44330098
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44330098
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
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
...
...
c44689688.lua
View file @
4f9c7c68
...
@@ -15,7 +15,7 @@ end
...
@@ -15,7 +15,7 @@ end
function
c44689688
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44689688
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
end
end
function
c44689688
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44689688
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c44944304.lua
View file @
4f9c7c68
...
@@ -80,7 +80,7 @@ end
...
@@ -80,7 +80,7 @@ end
function
c44944304
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c44944304
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
chkc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c44944304
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c44944304
.
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
,
c44944304
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c44944304
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c45305419.lua
View file @
4f9c7c68
...
@@ -17,7 +17,7 @@ function c45305419.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c45305419.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c45305419
.
filter
(
c
,
e
,
tp
)
function
c45305419
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
c
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
c
,
c
:
GetCode
())
end
end
function
c45305419
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c45305419
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c45313993.lua
View file @
4f9c7c68
--レッド・ウルフ
--レッド・ウルフ
function
c45313993
.
initial_effect
(
c
)
function
c45313993
.
initial_effect
(
c
)
--summon success
--summon success
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c45383307.lua
View file @
4f9c7c68
...
@@ -52,7 +52,7 @@ function c45383307.drfilter(c)
...
@@ -52,7 +52,7 @@ function c45383307.drfilter(c)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0xe2
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c45383307
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c45383307
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c45383307
.
drfilter
,
1
,
nil
)
if
chk
==
0
then
return
eg
:
IsExists
(
c45383307
.
drfilter
,
1
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
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
)
...
...
c45705025.lua
View file @
4f9c7c68
--紋章獣ユニコーン
--紋章獣ユニコーン
function
c45705025
.
initial_effect
(
c
)
function
c45705025
.
initial_effect
(
c
)
--revive
--revive
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
45705025
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
45705025
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
c46035545.lua
View file @
4f9c7c68
...
@@ -81,7 +81,7 @@ function c46035545.pfilter(c)
...
@@ -81,7 +81,7 @@ function c46035545.pfilter(c)
end
end
function
c46035545
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c46035545
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c46035545
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c46035545
.
thfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c46035545
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c46035545
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
(
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
(
c46035545
.
pfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c46035545
.
pfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
c46609443.lua
View file @
4f9c7c68
...
@@ -15,7 +15,7 @@ end
...
@@ -15,7 +15,7 @@ end
function
c46609443
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c46609443
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
end
end
function
c46609443
.
filter
(
c
,
e
,
tp
)
function
c46609443
.
filter
(
c
,
e
,
tp
)
return
c
:
IsAttackBelow
(
1600
)
and
c
:
IsLevelAbove
(
5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsAttackBelow
(
1600
)
and
c
:
IsLevelAbove
(
5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c46647144.lua
View file @
4f9c7c68
...
@@ -76,7 +76,7 @@ function c46647144.tkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,7 +76,7 @@ function c46647144.tkop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
<=
0
or
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
46647145
,
0xfe
,
0x4011
,
0
,
0
,
1
,
RACE_MACHINE
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
)
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
46647145
,
0xfe
,
0x4011
,
0
,
0
,
1
,
RACE_MACHINE
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
)
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
46647145
,
0xfe
,
0x4011
,
0
,
0
,
1
,
RACE_MACHINE
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
46647145
,
0xfe
,
0x4011
,
0
,
0
,
1
,
RACE_MACHINE
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
local
token1
=
Duel
.
CreateToken
(
tp
,
46647145
)
local
token1
=
Duel
.
CreateToken
(
tp
,
46647145
)
local
token2
=
Duel
.
CreateToken
(
tp
,
46647145
)
local
token2
=
Duel
.
CreateToken
(
tp
,
46647145
)
...
...
c47171541.lua
View file @
4f9c7c68
...
@@ -32,7 +32,7 @@ function c47171541.cfilter(c)
...
@@ -32,7 +32,7 @@ function c47171541.cfilter(c)
end
end
function
c47171541
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47171541
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
res
=
e
:
GetLabel
()
==
1
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
res
=
e
:
GetLabel
()
==
1
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
if
chk
==
0
then
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
return
res
and
Duel
.
IsExistingTarget
(
c47171541
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
return
res
and
Duel
.
IsExistingTarget
(
c47171541
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
end
...
...
c48356796.lua
View file @
4f9c7c68
...
@@ -11,7 +11,7 @@ function c48356796.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c48356796.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_DRAW_COUNT
)
e2
:
SetCode
(
EFFECT_DRAW_COUNT
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetValue
(
2
)
e2
:
SetValue
(
2
)
e2
:
SetCondition
(
c48356796
.
drawcon
)
e2
:
SetCondition
(
c48356796
.
drawcon
)
...
...
c50584941.lua
View file @
4f9c7c68
...
@@ -16,7 +16,7 @@ function c50584941.cfilter(c,tp)
...
@@ -16,7 +16,7 @@ function c50584941.cfilter(c,tp)
and
Duel
.
IsExistingTarget
(
c50584941
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
code
)
and
Duel
.
IsExistingTarget
(
c50584941
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
code
)
end
end
function
c50584941
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50584941
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
Duel
.
IsExistingMatchingCard
(
c50584941
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
then
if
Duel
.
IsExistingMatchingCard
(
c50584941
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
then
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
return
true
return
true
...
...
c50613779.lua
View file @
4f9c7c68
...
@@ -16,7 +16,7 @@ function c50613779.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,7 +16,7 @@ function c50613779.spcon(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
return
ep
==
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
end
function
c50613779
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50613779
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
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
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
ev
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
ev
)
...
...
c50669347.lua
View file @
4f9c7c68
...
@@ -26,7 +26,7 @@ function c50669347.desfilter(c,e,tp,g)
...
@@ -26,7 +26,7 @@ function c50669347.desfilter(c,e,tp,g)
and
Duel
.
IsExistingMatchingCard
(
c50669347
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c50669347
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
c
)
end
end
function
c50669347
.
spfilter
(
c
,
e
,
tp
,
dc
)
function
c50669347
.
spfilter
(
c
,
e
,
tp
,
dc
)
return
c
:
IsSetCard
(
0x11f
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsOriginalCodeRule
(
dc
:
GetOriginalCodeRule
())
return
c
:
IsSetCard
(
0x11f
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsOriginalCodeRule
(
dc
:
GetOriginalCodeRule
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c50669347
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50669347
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c50781944.lua
View file @
4f9c7c68
...
@@ -14,7 +14,7 @@ function c50781944.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c50781944.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c50781944
.
filter
(
c
,
tp
)
function
c50781944
.
filter
(
c
,
tp
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsType
(
TYPE_MONSTER
)
c
:
GetPreviousControler
()
==
tp
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c50781944
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50781944
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c52035300.lua
View file @
4f9c7c68
...
@@ -36,7 +36,7 @@ function c52035300.filter(c)
...
@@ -36,7 +36,7 @@ function c52035300.filter(c)
end
end
function
c52035300
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52035300
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
return
tp
==
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
and
not
Duel
.
IsExistingMatchingCard
(
c52035300
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c52035300
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
end
function
c52035300
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52035300
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c52977572.lua
View file @
4f9c7c68
...
@@ -39,7 +39,7 @@ function c52977572.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +39,7 @@ function c52977572.spop(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
then
return
end
if
not
tc
then
return
end
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsControler
(
1
-
tp
)
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsControler
(
1
-
tp
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
...
...
c53291093.lua
View file @
4f9c7c68
...
@@ -27,7 +27,7 @@ function c53291093.spfilter(c,e,tp)
...
@@ -27,7 +27,7 @@ function c53291093.spfilter(c,e,tp)
end
end
function
c53291093
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c53291093
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
local
g
=
Duel
.
GetMatchingGroup
(
c53291093
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c53291093
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
53291093
,
0
))
then
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
53291093
,
0
))
then
...
...
c54451023.lua
View file @
4f9c7c68
...
@@ -90,7 +90,7 @@ function c54451023.eqlimit(e,c)
...
@@ -90,7 +90,7 @@ function c54451023.eqlimit(e,c)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
()
and
c
:
IsRace
(
RACE_PLANT
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
()
and
c
:
IsRace
(
RACE_PLANT
)
end
end
function
c54451023
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54451023
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
e
:
GetHandler
():
GetReason
(),
REASON_EFFECT
+
REASON_DESTROY
)
==
REASON_EFFECT
+
REASON_DESTROY
return
bit
.
band
(
e
:
GetHandler
():
GetReason
(),
REASON_EFFECT
+
REASON_DESTROY
)
==
REASON_EFFECT
+
REASON_DESTROY
and
e
:
GetHandler
():
GetEquipTarget
()
and
e
:
GetHandler
():
GetEquipTarget
()
end
end
function
c54451023
.
spfilter
(
c
,
e
,
tp
)
function
c54451023
.
spfilter
(
c
,
e
,
tp
)
...
...
c54913680.lua
View file @
4f9c7c68
...
@@ -26,7 +26,7 @@ function c54913680.spfilter(c,e,tp)
...
@@ -26,7 +26,7 @@ function c54913680.spfilter(c,e,tp)
end
end
function
c54913680
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54913680
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
res
=
e
:
GetLabel
()
==
1
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
res
=
e
:
GetLabel
()
==
1
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
if
chk
==
0
then
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
return
res
and
Duel
.
IsExistingMatchingCard
(
c54913680
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
return
res
and
Duel
.
IsExistingMatchingCard
(
c54913680
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
end
...
...
c5592689.lua
View file @
4f9c7c68
...
@@ -30,7 +30,7 @@ function c5592689.filter(c)
...
@@ -30,7 +30,7 @@ function c5592689.filter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
end
function
c5592689
.
sscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5592689
.
sscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
not
Duel
.
IsExistingMatchingCard
(
c5592689
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
not
Duel
.
IsExistingMatchingCard
(
c5592689
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
end
function
c5592689
.
sstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5592689
.
sstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c56535497.lua
View file @
4f9c7c68
...
@@ -28,7 +28,7 @@ end
...
@@ -28,7 +28,7 @@ end
function
c56535497
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c56535497
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
if
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE
or
if
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE
or
(
Duel
.
IsExistingTarget
(
c56535497
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
2
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
56535497
,
0
)))
then
(
Duel
.
IsExistingTarget
(
c56535497
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
2
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
56535497
,
0
)))
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
56535497
,
2
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
56535497
,
2
))
...
@@ -37,7 +37,7 @@ function c56535497.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -37,7 +37,7 @@ function c56535497.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
56535497
,
3
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
56535497
,
3
))
Duel
.
SelectTarget
(
tp
,
c56535497
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
rg
:
GetFirst
())
Duel
.
SelectTarget
(
tp
,
c56535497
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
rg
:
GetFirst
())
e
:
GetHandler
():
RegisterFlagEffect
(
56535497
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
56535497
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
else
else
e
:
SetLabelObject
(
nil
)
e
:
SetLabelObject
(
nil
)
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
end
end
...
...
c57019473.lua
View file @
4f9c7c68
...
@@ -16,7 +16,7 @@ function c57019473.filter(c)
...
@@ -16,7 +16,7 @@ function c57019473.filter(c)
and
c
:
GetCode
()
~=
57019473
and
c
:
IsAttackBelow
(
1600
)
and
c
:
IsAbleToRemove
()
and
c
:
GetCode
()
~=
57019473
and
c
:
IsAttackBelow
(
1600
)
and
c
:
IsAbleToRemove
()
end
end
function
c57019473
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c57019473
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c57019473
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c57019473
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c57019473
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c57019473
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c57019473
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c57019473
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c57409948.lua
View file @
4f9c7c68
...
@@ -19,7 +19,7 @@ function c57409948.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,7 +19,7 @@ function c57409948.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFacedown
()
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
tp
,
tc
)
Duel
.
ConfirmCards
(
tp
,
tc
)
if
tc
:
IsType
(
TYPE_EFFECT
)
then
if
tc
:
IsType
(
TYPE_EFFECT
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
...
...
c58330108.lua
View file @
4f9c7c68
...
@@ -74,9 +74,9 @@ function c58330108.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -74,9 +74,9 @@ function c58330108.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
gc
=
Duel
.
GetMatchingGroup
(
c58330108
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
local
gc
=
Duel
.
GetMatchingGroup
(
c58330108
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
):
GetClassCount
(
Card
.
GetCode
)
if
chk
==
0
then
if
chk
==
0
then
local
b1
=
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
and
not
Duel
.
IsExistingMatchingCard
(
aux
.
NOT
(
Card
.
IsAbleToRemove
),
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
and
not
Duel
.
IsExistingMatchingCard
(
aux
.
NOT
(
Card
.
IsAbleToRemove
),
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
local
b3
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
c
)
local
b3
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
c
)
and
not
Duel
.
IsExistingMatchingCard
(
aux
.
NOT
(
Card
.
IsAbleToRemove
),
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
c
)
and
not
Duel
.
IsExistingMatchingCard
(
aux
.
NOT
(
Card
.
IsAbleToRemove
),
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
c
)
return
(
gc
==
1
and
b1
)
or
(
gc
==
2
and
b2
)
or
(
gc
>
2
and
b3
)
return
(
gc
==
1
and
b1
)
or
(
gc
==
2
and
b2
)
or
(
gc
>
2
and
b3
)
end
end
...
...
c58577036.lua
View file @
4f9c7c68
...
@@ -24,7 +24,7 @@ function c58577036.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,7 +24,7 @@ function c58577036.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
spcard
=
nil
local
spcard
=
nil
while
tc
do
while
tc
do
if
tc
:
GetSequence
()
>
seq
then
if
tc
:
GetSequence
()
>
seq
then
seq
=
tc
:
GetSequence
()
seq
=
tc
:
GetSequence
()
spcard
=
tc
spcard
=
tc
end
end
...
...
c59577547.lua
View file @
4f9c7c68
...
@@ -73,7 +73,7 @@ end
...
@@ -73,7 +73,7 @@ end
function
c59577547
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59577547
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c59577547
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59577547
.
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
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
...
@@ -83,4 +83,4 @@ end
...
@@ -83,4 +83,4 @@ end
function
c59577547
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c59577547
.
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
.
Recover
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
end
end
c5975022.lua
View file @
4f9c7c68
...
@@ -25,7 +25,7 @@ function c5975022.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c5975022.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c5975022
.
desfilter
(
c
)
function
c5975022
.
desfilter
(
c
)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
end
end
function
c5975022
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c5975022
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_MZONE
and
c5975022
.
desfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
GetLocation
()
==
LOCATION_MZONE
and
c5975022
.
desfilter
(
chkc
)
end
...
...
c59820352.lua
View file @
4f9c7c68
...
@@ -3,5 +3,5 @@ function c59820352.initial_effect(c)
...
@@ -3,5 +3,5 @@ function c59820352.initial_effect(c)
aux
.
AddRitualProcEqual2
(
c
,
c59820352
.
ritual_filter
)
aux
.
AddRitualProcEqual2
(
c
,
c59820352
.
ritual_filter
)
end
end
function
c59820352
.
ritual_filter
(
c
)
function
c59820352
.
ritual_filter
(
c
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
end
end
c60312997.lua
View file @
4f9c7c68
...
@@ -17,7 +17,7 @@ function c60312997.filter(c,lv)
...
@@ -17,7 +17,7 @@ function c60312997.filter(c,lv)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsStatus
(
STATUS_PROC_COMPLETE
)
return
c
:
IsLevelBelow
(
lv
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsStatus
(
STATUS_PROC_COMPLETE
)
end
end
function
c60312997
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c60312997
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c60312997
.
filter
(
chkc
,
eg
:
GetFirst
():
GetLevel
())
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c60312997
.
filter
(
chkc
,
eg
:
GetFirst
():
GetLevel
())
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60312997
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
eg
:
GetFirst
():
GetLevel
())
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60312997
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
eg
:
GetFirst
():
GetLevel
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c60312997
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
eg
:
GetFirst
():
GetLevel
())
Duel
.
SelectTarget
(
tp
,
c60312997
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
eg
:
GetFirst
():
GetLevel
())
...
...
c60482781.lua
View file @
4f9c7c68
...
@@ -15,7 +15,7 @@ function c60482781.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c60482781.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_LIMIT_SUMMON_PROC
)
e2
:
SetCode
(
EFFECT_LIMIT_SUMMON_PROC
)
e2
:
SetCondition
(
c60482781
.
sumcon
)
e2
:
SetCondition
(
c60482781
.
sumcon
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c60482781
.
lvdn
=
{
47507260
,
74591968
}
c60482781
.
lvdn
=
{
47507260
,
74591968
}
function
c60482781
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60482781
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c6165656.lua
View file @
4f9c7c68
...
@@ -41,7 +41,7 @@ end
...
@@ -41,7 +41,7 @@ end
c6165656
.
xyz_number
=
88
c6165656
.
xyz_number
=
88
--target check is in RUM magic cards
--target check is in RUM magic cards
function
c6165656
.
splimit
(
e
,
se
,
sp
,
st
)
function
c6165656
.
splimit
(
e
,
se
,
sp
,
st
)
return
se
:
GetHandler
():
IsSetCard
(
0x95
)
and
se
:
GetHandler
():
IsType
(
TYPE_SPELL
)
return
se
:
GetHandler
():
IsSetCard
(
0x95
)
and
se
:
GetHandler
():
IsType
(
TYPE_SPELL
)
and
se
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
se
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
end
end
function
c6165656
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6165656
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c62325062.lua
View file @
4f9c7c68
...
@@ -23,7 +23,7 @@ function c62325062.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -23,7 +23,7 @@ function c62325062.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
end
end
function
c62325062
.
filter2
(
c
,
e
,
tp
)
function
c62325062
.
filter2
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
GetSummonPlayer
()
~=
tp
and
c
:
IsRelateToEffect
(
e
)
return
c
:
IsFaceup
()
and
c
:
GetSummonPlayer
()
~=
tp
and
c
:
IsRelateToEffect
(
e
)
end
end
function
c62325062
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62325062
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
c62325062
.
filter2
,
nil
,
e
,
tp
)
local
g
=
eg
:
Filter
(
c62325062
.
filter2
,
nil
,
e
,
tp
)
...
...
c62624486.lua
View file @
4f9c7c68
...
@@ -23,7 +23,7 @@ end
...
@@ -23,7 +23,7 @@ end
function
c62624486
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62624486
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
end
end
function
c62624486
.
filter
(
c
,
e
,
tp
)
function
c62624486
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x8
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x8
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c6276588.lua
View file @
4f9c7c68
...
@@ -35,7 +35,7 @@ end
...
@@ -35,7 +35,7 @@ end
function
c6276588
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6276588
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
end
end
function
c6276588
.
filter
(
c
,
e
,
tp
)
function
c6276588
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x11
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x11
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c63175639.lua
View file @
4f9c7c68
...
@@ -34,7 +34,7 @@ end
...
@@ -34,7 +34,7 @@ end
function
c63175639
.
sgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63175639
.
sgop
(
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
,
c63175639
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c63175639
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
end
end
...
@@ -63,7 +63,7 @@ function c63175639.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,7 +63,7 @@ function c63175639.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c63175639
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c63175639
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
c63251695.lua
View file @
4f9c7c68
...
@@ -28,7 +28,7 @@ function c63251695.tfilter(c,tp)
...
@@ -28,7 +28,7 @@ function c63251695.tfilter(c,tp)
end
end
function
c63251695
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63251695
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
e
:
GetHandler
():
GetFlagEffect
(
63251695
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
return
e
:
GetHandler
():
GetFlagEffect
(
63251695
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
g
and
g
:
IsExists
(
c63251695
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
g
and
g
:
IsExists
(
c63251695
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
c63251695
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63251695
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c63442604.lua
View file @
4f9c7c68
...
@@ -21,7 +21,7 @@ function c63442604.cfilter(c,tp)
...
@@ -21,7 +21,7 @@ function c63442604.cfilter(c,tp)
end
end
function
c63442604
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c63442604
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c63442604
.
cfilter
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c63442604
.
cfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c63442604
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
IsExistingTarget
(
c63442604
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c63442604
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c63442604
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
...
c63519819.lua
View file @
4f9c7c68
...
@@ -50,7 +50,7 @@ function c63519819.eqcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,7 +50,7 @@ function c63519819.eqcon(e,tp,eg,ep,ev,re,r,rp)
return
c63519819
.
can_equip_monster
(
c
)
return
c63519819
.
can_equip_monster
(
c
)
end
end
function
c63519819
.
eqfilter
(
c
)
function
c63519819
.
eqfilter
(
c
)
return
c
:
GetFlagEffect
(
63519819
)
~=
0
return
c
:
GetFlagEffect
(
63519819
)
~=
0
end
end
function
c63519819
.
can_equip_monster
(
c
)
function
c63519819
.
can_equip_monster
(
c
)
local
g
=
c
:
GetEquipGroup
():
Filter
(
c63519819
.
eqfilter
,
nil
)
local
g
=
c
:
GetEquipGroup
():
Filter
(
c63519819
.
eqfilter
,
nil
)
...
...
c65240384.lua
View file @
4f9c7c68
...
@@ -25,8 +25,8 @@ function c65240384.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,8 +25,8 @@ function c65240384.negcon(e,tp,eg,ep,ev,re,r,rp)
if
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
if
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
:
GetCount
()
==
1
and
tg
:
GetFirst
()
==
e
:
GetHandler
()
and
e
:
GetHandler
():
IsFacedown
()
return
tg
:
GetCount
()
==
1
and
tg
:
GetFirst
()
==
e
:
GetHandler
()
and
e
:
GetHandler
():
IsFacedown
()
else
else
return
false
return
false
end
end
end
end
function
c65240384
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65240384
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c65676461.lua
View file @
4f9c7c68
...
@@ -20,7 +20,7 @@ c65676461.xyz_number=32
...
@@ -20,7 +20,7 @@ c65676461.xyz_number=32
function
c65676461
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65676461
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
c
==
Duel
.
GetAttacker
()
and
c
:
IsRelateToBattle
()
and
c
:
IsStatus
(
STATUS_OPPO_BATTLE
)
return
c
==
Duel
.
GetAttacker
()
and
c
:
IsRelateToBattle
()
and
c
:
IsStatus
(
STATUS_OPPO_BATTLE
)
and
bc
:
IsLocation
(
LOCATION_GRAVE
)
and
bc
:
IsType
(
TYPE_MONSTER
)
and
bc
:
IsLocation
(
LOCATION_GRAVE
)
and
bc
:
IsType
(
TYPE_MONSTER
)
end
end
function
c65676461
.
atcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c65676461
.
atcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c66194206.lua
View file @
4f9c7c68
...
@@ -31,7 +31,7 @@ function c66194206.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function c66194206.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c66194206
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66194206
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsSetCard
(
0x38
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsSetCard
(
0x38
)
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
end
function
c66194206
.
thfilter
(
c
)
function
c66194206
.
thfilter
(
c
)
...
...
c66607691.lua
View file @
4f9c7c68
...
@@ -26,7 +26,7 @@ function c66607691.spfilter(c,e,tp)
...
@@ -26,7 +26,7 @@ function c66607691.spfilter(c,e,tp)
end
end
function
c66607691
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66607691
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
res
=
e
:
GetLabel
()
==
1
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
res
=
e
:
GetLabel
()
==
1
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
if
chk
==
0
then
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
return
res
and
Duel
.
IsExistingMatchingCard
(
c66607691
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
return
res
and
Duel
.
IsExistingMatchingCard
(
c66607691
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
end
...
...
c66729231.lua
View file @
4f9c7c68
...
@@ -15,7 +15,7 @@ function c66729231.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c66729231.initial_effect(c)
end
end
function
c66729231
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66729231
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
end
Duel
.
PayLPCost
(
tp
,
1000
)
Duel
.
PayLPCost
(
tp
,
1000
)
end
end
function
c66729231
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66729231
.
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
...
...
c67007102.lua
View file @
4f9c7c68
...
@@ -29,7 +29,7 @@ function c67007102.atkfilter(c)
...
@@ -29,7 +29,7 @@ function c67007102.atkfilter(c)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
0
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
0
end
end
function
c67007102
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c67007102
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
67007102
,
0
,
0x11
,
800
,
2500
,
8
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
67007102
,
0
,
0x11
,
800
,
2500
,
8
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
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
...
...
c67630339.lua
View file @
4f9c7c68
...
@@ -55,7 +55,7 @@ end
...
@@ -55,7 +55,7 @@ end
function
c67630339
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67630339
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
c67630339
[
2
]
local
d
=
c67630339
[
2
]
if
a
:
GetFlagEffect
(
67630339
)
~=
0
and
d
:
GetFlagEffect
(
67630339
)
~=
0
if
a
:
GetFlagEffect
(
67630339
)
~=
0
and
d
:
GetFlagEffect
(
67630339
)
~=
0
and
a
:
IsAttackable
()
and
not
a
:
IsImmuneToEffect
(
e
)
and
not
d
:
IsImmuneToEffect
(
e
)
then
and
a
:
IsAttackable
()
and
not
a
:
IsImmuneToEffect
(
e
)
and
not
d
:
IsImmuneToEffect
(
e
)
then
Duel
.
CalculateDamage
(
a
,
d
)
Duel
.
CalculateDamage
(
a
,
d
)
end
end
...
...
c68191243.lua
View file @
4f9c7c68
...
@@ -20,7 +20,7 @@ function c68191243.filter(c,e,tp)
...
@@ -20,7 +20,7 @@ function c68191243.filter(c,e,tp)
return
c
:
IsSetCard
(
0x1a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x1a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c68191243
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68191243
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c68191243
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c68191243
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
...
...
c68722455.lua
View file @
4f9c7c68
...
@@ -34,7 +34,7 @@ end
...
@@ -34,7 +34,7 @@ end
function
c68722455
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68722455
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
Duel
.
SendtoHand
(
rg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
rg
,
nil
,
REASON_EFFECT
)
end
end
end
end
c68829754.lua
View file @
4f9c7c68
...
@@ -29,7 +29,7 @@ function c68829754.spfilter(c,e,tp,check)
...
@@ -29,7 +29,7 @@ function c68829754.spfilter(c,e,tp,check)
and
(
check
or
c
:
IsSetCard
(
0x1142
))
and
(
check
or
c
:
IsSetCard
(
0x1142
))
end
end
function
c68829754
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68829754
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
chk1
=
Duel
.
IsExistingMatchingCard
(
c68829754
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
chk1
=
Duel
.
IsExistingMatchingCard
(
c68829754
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c68829754
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
chk1
)
and
Duel
.
IsExistingMatchingCard
(
c68829754
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
chk1
)
...
...
c69035382.lua
View file @
4f9c7c68
...
@@ -3,5 +3,5 @@ function c69035382.initial_effect(c)
...
@@ -3,5 +3,5 @@ function c69035382.initial_effect(c)
aux
.
AddRitualProcEqual2
(
c
,
c69035382
.
ritual_filter
)
aux
.
AddRitualProcEqual2
(
c
,
c69035382
.
ritual_filter
)
end
end
function
c69035382
.
ritual_filter
(
c
)
function
c69035382
.
ritual_filter
(
c
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
end
c7030340.lua
View file @
4f9c7c68
...
@@ -22,7 +22,7 @@ end
...
@@ -22,7 +22,7 @@ end
function
c7030340
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c7030340
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c7030340
.
filter2
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c7030340
.
filter2
(
chkc
)
end
if
chk
==
0
then
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c7030340
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c7030340
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c7030340
.
chkfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c7030340
.
chkfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c7030340
.
filter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c7030340
.
filter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
...
...
c706925.lua
View file @
4f9c7c68
...
@@ -30,7 +30,7 @@ function c706925.spfilter(c,e,tp)
...
@@ -30,7 +30,7 @@ function c706925.spfilter(c,e,tp)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c706925
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c706925
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c706925
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c706925
.
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
...
...
c7243511.lua
View file @
4f9c7c68
...
@@ -33,7 +33,7 @@ function c7243511.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,7 +33,7 @@ function c7243511.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
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
,
chk
)
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
)
end
end
end
end
c72537897.lua
View file @
4f9c7c68
...
@@ -17,7 +17,7 @@ function c72537897.spfilter(c,e,tp)
...
@@ -17,7 +17,7 @@ function c72537897.spfilter(c,e,tp)
return
c
:
IsRace
(
RACE_BEAST
)
and
c
:
IsLevelBelow
(
2
)
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_BEAST
)
and
c
:
IsLevelBelow
(
2
)
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c72537897
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72537897
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
c72537897
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c72537897
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
2
and
g
:
GetClassCount
(
Card
.
GetCode
)
>=
3
end
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
2
and
g
:
GetClassCount
(
Card
.
GetCode
)
>=
3
end
...
...
c72549351.lua
View file @
4f9c7c68
...
@@ -26,7 +26,7 @@ function c72549351.spfilter(c,e,tp)
...
@@ -26,7 +26,7 @@ function c72549351.spfilter(c,e,tp)
end
end
function
c72549351
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72549351
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
res
=
e
:
GetLabel
()
==
1
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
res
=
e
:
GetLabel
()
==
1
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
if
chk
==
0
then
e
:
SetLabel
(
0
)
e
:
SetLabel
(
0
)
return
res
and
Duel
.
IsExistingMatchingCard
(
c72549351
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
return
res
and
Duel
.
IsExistingMatchingCard
(
c72549351
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
end
...
...
c72932673.lua
View file @
4f9c7c68
...
@@ -53,7 +53,7 @@ end
...
@@ -53,7 +53,7 @@ end
function
c72932673
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72932673
.
negcon
(
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
rp
==
1
-
tp
and
bit
.
band
(
loc
,
LOCATION_SZONE
)
~=
0
return
rp
==
1
-
tp
and
bit
.
band
(
loc
,
LOCATION_SZONE
)
~=
0
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
IsChainDisablable
(
ev
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
c72932673
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72932673
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateEffect
(
ev
)
then
if
Duel
.
NegateEffect
(
ev
)
then
...
...
c74095602.lua
View file @
4f9c7c68
...
@@ -14,7 +14,7 @@ end
...
@@ -14,7 +14,7 @@ end
function
c74095602
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74095602
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
return
tc
:
GetPreviousControler
()
==
tp
and
tc
:
IsType
(
TYPE_FUSION
)
and
tc
:
IsSetCard
(
0x3008
)
return
tc
:
GetPreviousControler
()
==
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
)
end
end
function
c74095602
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74095602
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c74115234.lua
View file @
4f9c7c68
...
@@ -63,7 +63,7 @@ function c74115234.recon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,7 +63,7 @@ function c74115234.recon(e,tp,eg,ep,ev,re,r,rp)
local
bc
=
ec
:
GetBattleTarget
()
local
bc
=
ec
:
GetBattleTarget
()
e
:
SetLabelObject
(
bc
)
e
:
SetLabelObject
(
bc
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
eg
:
GetFirst
()
and
ec
:
IsControler
(
tp
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
eg
:
GetFirst
()
and
ec
:
IsControler
(
tp
)
and
bc
:
IsLocation
(
LOCATION_GRAVE
)
and
bc
:
IsType
(
TYPE_MONSTER
)
and
bc
:
IsReason
(
REASON_BATTLE
)
and
bc
:
IsLocation
(
LOCATION_GRAVE
)
and
bc
:
IsType
(
TYPE_MONSTER
)
and
bc
:
IsReason
(
REASON_BATTLE
)
end
end
function
c74115234
.
retg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c74115234
.
retg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c74117290.lua
View file @
4f9c7c68
...
@@ -22,7 +22,7 @@ function c74117290.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -22,7 +22,7 @@ function c74117290.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
if
h2
>
0
then
if
h2
>
0
then
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
1
-
tp
,
aux
.
TRUE
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
...
...
c74591968.lua
View file @
4f9c7c68
...
@@ -34,7 +34,7 @@ function c74591968.initial_effect(c)
...
@@ -34,7 +34,7 @@ function c74591968.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_LIMIT_SUMMON_PROC
)
e4
:
SetCode
(
EFFECT_LIMIT_SUMMON_PROC
)
e4
:
SetCondition
(
c74591968
.
sumcon
)
e4
:
SetCondition
(
c74591968
.
sumcon
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
c74591968
.
lvup
=
{
60482781
}
c74591968
.
lvup
=
{
60482781
}
c74591968
.
lvdn
=
{
47507260
}
c74591968
.
lvdn
=
{
47507260
}
...
...
c75487237.lua
View file @
4f9c7c68
...
@@ -34,8 +34,8 @@ function c75487237.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,8 +34,8 @@ function c75487237.negcon(e,tp,eg,ep,ev,re,r,rp)
if
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
if
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
:
GetCount
()
==
1
and
tg
:
GetFirst
()
==
e
:
GetHandler
()
and
e
:
GetHandler
():
IsFacedown
()
return
tg
:
GetCount
()
==
1
and
tg
:
GetFirst
()
==
e
:
GetHandler
()
and
e
:
GetHandler
():
IsFacedown
()
else
else
return
false
return
false
end
end
end
end
function
c75487237
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75487237
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c75991898.lua
View file @
4f9c7c68
...
@@ -33,7 +33,7 @@ function c75991898.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,7 +33,7 @@ function c75991898.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
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
,
chk
)
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
)
end
end
end
end
c76218643.lua
View file @
4f9c7c68
...
@@ -27,7 +27,7 @@ function c76218643.indcon(e)
...
@@ -27,7 +27,7 @@ function c76218643.indcon(e)
return
Duel
.
IsExistingMatchingCard
(
c76218643
.
indfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c76218643
.
indfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c76218643
.
filter
(
c
,
tp
)
function
c76218643
.
filter
(
c
,
tp
)
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsType
(
TYPE_TUNER
)
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsType
(
TYPE_TUNER
)
end
end
function
c76218643
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c76218643
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c76218643
.
filter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c76218643
.
filter
,
1
,
nil
,
tp
)
...
...
c76754619.lua
View file @
4f9c7c68
...
@@ -31,7 +31,7 @@ function c76754619.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function c76754619.operation(e,tp,eg,ep,ev,re,r,rp)
sc
:
RegisterEffect
(
e1
)
sc
:
RegisterEffect
(
e1
)
sc
=
g
:
GetNext
()
sc
=
g
:
GetNext
()
end
end
else
else
local
sc
=
g
:
GetFirst
()
local
sc
=
g
:
GetFirst
()
while
sc
do
while
sc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c77372241.lua
View file @
4f9c7c68
...
@@ -17,7 +17,7 @@ function c77372241.damcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,7 +17,7 @@ function c77372241.damcon(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
e
:
SetLabel
(
tc
:
GetLevel
())
e
:
SetLabel
(
tc
:
GetLevel
())
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
return
eg
:
GetCount
()
==
1
and
tc
:
GetReasonCard
()
==
e
:
GetHandler
()
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
IsReason
(
REASON_BATTLE
)
end
end
function
c77372241
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c77372241
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c7802006.lua
View file @
4f9c7c68
...
@@ -14,7 +14,7 @@ end
...
@@ -14,7 +14,7 @@ end
function
c7802006
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7802006
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c7802006
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c7802006
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
tc
:
AddCounter
(
0x1
,
1
)
tc
:
AddCounter
(
0x1
,
1
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
...
...
c78156759.lua
View file @
4f9c7c68
--発条機雷ゼンマイン
--発条機雷ゼンマイン
function
c78156759
.
initial_effect
(
c
)
function
c78156759
.
initial_effect
(
c
)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
3
,
2
)
aux
.
AddXyzProcedure
(
c
,
nil
,
3
,
2
)
...
...
c80604091.lua
View file @
4f9c7c68
...
@@ -51,7 +51,7 @@ function c80604091.activate1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c80604091.activate1(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c80604091
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c80604091
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
if
tc
:
IsSummonable
(
true
,
nil
)
and
(
not
tc
:
IsMSetable
(
true
,
nil
)
if
tc
:
IsSummonable
(
true
,
nil
)
and
(
not
tc
:
IsMSetable
(
true
,
nil
)
or
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
then
or
Duel
.
SelectPosition
(
tp
,
tc
,
POS_FACEUP_ATTACK
+
POS_FACEDOWN_DEFENSE
)
==
POS_FACEUP_ATTACK
)
then
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
)
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
)
else
Duel
.
MSet
(
tp
,
tc
,
true
,
nil
)
end
else
Duel
.
MSet
(
tp
,
tc
,
true
,
nil
)
end
...
...
c80769747.lua
View file @
4f9c7c68
...
@@ -22,7 +22,7 @@ function c80769747.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c80769747.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c80769747
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c80769747
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
...
...
c81426505.lua
View file @
4f9c7c68
...
@@ -26,7 +26,7 @@ function c81426505.filter3(c)
...
@@ -26,7 +26,7 @@ function c81426505.filter3(c)
return
c
:
IsFacedown
()
return
c
:
IsFacedown
()
end
end
function
c81426505
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c81426505
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter3
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter3
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
...
...
c81782376.lua
View file @
4f9c7c68
...
@@ -36,7 +36,7 @@ function c81782376.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,7 +36,7 @@ function c81782376.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c81782376
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81782376
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
return
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c81782376
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c81782376
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c82044279.lua
View file @
4f9c7c68
...
@@ -54,7 +54,7 @@ function c82044279.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -54,7 +54,7 @@ function c82044279.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
c82044279
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82044279
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
end
end
...
...
c82052602.lua
View file @
4f9c7c68
...
@@ -48,7 +48,7 @@ function c82052602.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c82052602.condition(e,tp,eg,ep,ev,re,r,rp)
return
c82052602
[
tp
]
and
Duel
.
GetFlagEffect
(
tp
,
82052602
)
==
0
return
c82052602
[
tp
]
and
Duel
.
GetFlagEffect
(
tp
,
82052602
)
==
0
end
end
function
c82052602
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82052602
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c82052602
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
Duel
.
GetTurnCount
(),
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c82052602
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
Duel
.
GetTurnCount
(),
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
RegisterFlagEffect
(
tp
,
82052602
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
82052602
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
c83531441.lua
View file @
4f9c7c68
...
@@ -42,7 +42,7 @@ function c83531441.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -42,7 +42,7 @@ function c83531441.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
table.insert
(
ct
,
i
)
table.insert
(
ct
,
i
)
end
end
end
end
if
#
ct
==
1
then
if
#
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
else
...
...
c83965310.lua
View file @
4f9c7c68
--D-HERO Bloo-D
--D-HERO Bloo-D
function
c83965310
.
initial_effect
(
c
)
function
c83965310
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--cannot special summon
--cannot special summon
...
...
c85087012.lua
View file @
4f9c7c68
...
@@ -29,7 +29,7 @@ function c85087012.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function c85087012.cost(e,tp,eg,ep,ev,re,r,rp,chk)
table.insert
(
ct
,
i
)
table.insert
(
ct
,
i
)
end
end
end
end
if
#
ct
==
1
then
if
#
ct
==
1
then
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
Duel
.
DiscardDeck
(
tp
,
ct
[
1
],
REASON_COST
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
else
else
...
...
c85551711.lua
View file @
4f9c7c68
...
@@ -59,7 +59,7 @@ function c85551711.costop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +59,7 @@ function c85551711.costop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c85551711
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c85551711
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
((
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
))
return
((
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
))
or
c
:
IsReason
(
REASON_BATTLE
))
and
c
:
IsSummonType
(
SUMMON_TYPE_XYZ
)
or
c
:
IsReason
(
REASON_BATTLE
))
and
c
:
IsSummonType
(
SUMMON_TYPE_XYZ
)
end
end
function
c85551711
.
spfilter
(
c
,
e
,
tp
)
function
c85551711
.
spfilter
(
c
,
e
,
tp
)
...
...
c86137485.lua
View file @
4f9c7c68
...
@@ -39,7 +39,7 @@ end
...
@@ -39,7 +39,7 @@ end
function
c86137485
.
atcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c86137485
.
atcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
Duel
.
GetTurnPlayer
()
~=
tp
and
c
:
IsRelateToBattle
()
and
c
:
IsStatus
(
STATUS_OPPO_BATTLE
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
c
:
IsRelateToBattle
()
and
c
:
IsStatus
(
STATUS_OPPO_BATTLE
)
and
bc
:
IsLocation
(
LOCATION_GRAVE
)
and
bc
:
IsType
(
TYPE_MONSTER
)
and
bc
:
IsLocation
(
LOCATION_GRAVE
)
and
bc
:
IsType
(
TYPE_MONSTER
)
end
end
function
c86137485
.
atop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c86137485
.
atop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c86238081.lua
View file @
4f9c7c68
--覇王烈竜オッドアイズ・レイジング・ドラゴン
--覇王烈竜オッドアイズ・レイジング・ドラゴン
function
c86238081
.
initial_effect
(
c
)
function
c86238081
.
initial_effect
(
c
)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_DRAGON
),
7
,
2
)
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_DRAGON
),
7
,
2
)
...
...
c8719957.lua
View file @
4f9c7c68
...
@@ -52,7 +52,7 @@ function c8719957.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +52,7 @@ function c8719957.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c8719957
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8719957
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_MZONE
return
rp
==
1
-
tp
and
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainDisablable
(
ev
)
end
end
function
c8719957
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8719957
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateEffect
(
ev
)
then
if
Duel
.
NegateEffect
(
ev
)
then
...
...
c88616795.lua
View file @
4f9c7c68
...
@@ -31,8 +31,8 @@ function c88616795.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,8 +31,8 @@ function c88616795.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
if
e
:
GetLabel
()
==
0
then
if
e
:
GetLabel
()
==
0
then
e2
:
SetValue
(
c88616795
.
efilter1
)
e2
:
SetValue
(
c88616795
.
efilter1
)
else
else
e2
:
SetValue
(
c88616795
.
efilter2
)
e2
:
SetValue
(
c88616795
.
efilter2
)
end
end
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
...
...
c90727556.lua
View file @
4f9c7c68
...
@@ -34,7 +34,7 @@ function c90727556.initial_effect(c)
...
@@ -34,7 +34,7 @@ function c90727556.initial_effect(c)
end
end
function
c90727556
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90727556
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
and
not
Duel
.
CheckPhaseActivity
()
and
e
:
GetHandler
():
IsSetCard
(
0x100a
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
and
not
Duel
.
CheckPhaseActivity
()
and
e
:
GetHandler
():
IsSetCard
(
0x100a
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
TYPE_SPELL
+
TYPE_TRAP
)
end
end
function
c90727556
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c90727556
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
...
...
c91468551.lua
View file @
4f9c7c68
...
@@ -12,7 +12,7 @@ function c91468551.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c91468551.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
c91468551
.
atktg
)
e2
:
SetTarget
(
c91468551
.
atktg
)
e2
:
SetValue
(
300
)
e2
:
SetValue
(
300
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c91468551
.
atktg
(
e
,
c
)
function
c91468551
.
atktg
(
e
,
c
)
...
...
c92099232.lua
View file @
4f9c7c68
...
@@ -11,7 +11,7 @@ function c92099232.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c92099232.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c92099232
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c92099232
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92099232
,
0
,
0x11
,
0
,
0
,
2
,
RACE_FIEND
,
ATTRIBUTE_EARTH
)
end
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
92099232
,
0
,
0x11
,
0
,
0
,
2
,
RACE_FIEND
,
ATTRIBUTE_EARTH
)
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
...
...
c9236985.lua
View file @
4f9c7c68
...
@@ -10,7 +10,7 @@ function c9236985.initial_effect(c)
...
@@ -10,7 +10,7 @@ function c9236985.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c9236985
.
filter
(
c
,
e
,
tp
,
lp
)
function
c9236985
.
filter
(
c
,
e
,
tp
,
lp
)
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsSetCard
(
0x3a
)
if
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsSetCard
(
0x3a
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
false
)
then
return
false
end
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
true
,
false
)
then
return
false
end
return
lp
>
c
:
GetLevel
()
*
500
return
lp
>
c
:
GetLevel
()
*
500
end
end
...
...
c92373006.lua
View file @
4f9c7c68
...
@@ -25,7 +25,7 @@ function c92373006.sprfilter(c)
...
@@ -25,7 +25,7 @@ function c92373006.sprfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x19
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x19
)
end
end
function
c92373006
.
sprcon
(
e
,
c
)
function
c92373006
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c92373006
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c92373006
.
sprfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
c92826944.lua
View file @
4f9c7c68
--馬頭鬼
--馬頭鬼
function
c92826944
.
initial_effect
(
c
)
function
c92826944
.
initial_effect
(
c
)
--revive
--revive
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
92826944
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
92826944
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
c93108433.lua
View file @
4f9c7c68
...
@@ -19,7 +19,7 @@ end
...
@@ -19,7 +19,7 @@ end
function
c93108433
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c93108433
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c93108433
.
mfilter
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c93108433
.
mfilter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
and
Duel
.
IsExistingTarget
(
c93108433
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsExistingTarget
(
c93108433
.
mfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
(),
tp
)
and
not
Duel
.
IsExistingMatchingCard
(
c93108433
.
hfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
and
not
Duel
.
IsExistingMatchingCard
(
c93108433
.
hfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
...
...
c93191801.lua
View file @
4f9c7c68
...
@@ -26,7 +26,7 @@ function c93191801.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c93191801.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c93191801
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c93191801
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93191801
,
0
,
0x11
,
1800
,
1500
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93191801
,
0
,
0x11
,
1800
,
1500
,
5
,
RACE_ZOMBIE
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
0
,
PLAYER_ALL
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
0
,
PLAYER_ALL
,
LOCATION_GRAVE
)
...
...
c93895605.lua
View file @
4f9c7c68
...
@@ -29,7 +29,7 @@ function c93895605.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,7 +29,7 @@ function c93895605.activate(e,tp,eg,ep,ev,re,r,rp)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
a
:
IsRelateToEffect
(
e
)
and
a
:
IsAttackable
()
and
not
a
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
if
a
:
IsRelateToEffect
(
e
)
and
a
:
IsAttackable
()
and
not
a
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
and
d
:
IsFaceup
()
and
d
:
IsRelateToEffect
(
e
)
then
and
d
:
IsFaceup
()
and
d
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
if
not
a
:
IsOnField
()
then
if
not
a
:
IsOnField
()
then
...
...
c93912845.lua
View file @
4f9c7c68
...
@@ -41,7 +41,7 @@ function c93912845.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,7 +41,7 @@ function c93912845.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
,
true
)
tc
:
RegisterEffect
(
e2
,
true
)
end
end
end
end
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
1
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
1
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93912846
,
0
,
0x4011
,
1500
,
1500
,
3
,
RACE_FIEND
,
ATTRIBUTE_DARK
,
POS_FACEUP
,
1
-
tp
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93912846
,
0
,
0x4011
,
1500
,
1500
,
3
,
RACE_FIEND
,
ATTRIBUTE_DARK
,
POS_FACEUP
,
1
-
tp
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
for
i
=
1
,
2
do
for
i
=
1
,
2
do
...
...
c94224458.lua
View file @
4f9c7c68
...
@@ -30,7 +30,7 @@ function c94224458.spfilter(c,e,tp,check)
...
@@ -30,7 +30,7 @@ function c94224458.spfilter(c,e,tp,check)
and
(
check
or
c
:
IsSetCard
(
0x1142
))
and
(
check
or
c
:
IsSetCard
(
0x1142
))
end
end
function
c94224458
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94224458
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
chk1
=
Duel
.
IsExistingMatchingCard
(
c94224458
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
local
chk1
=
Duel
.
IsExistingMatchingCard
(
c94224458
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c94224458
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
chk1
)
and
Duel
.
IsExistingMatchingCard
(
c94224458
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
chk1
)
...
...
c94689635.lua
View file @
4f9c7c68
...
@@ -23,7 +23,7 @@ function c94689635.costfilter(c)
...
@@ -23,7 +23,7 @@ function c94689635.costfilter(c)
end
end
function
c94689635
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94689635
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToGraveAsCost
()
and
if
chk
==
0
then
return
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c94689635
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
IsExistingMatchingCard
(
c94689635
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94689635
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94689635
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
...
...
c95451366.lua
View file @
4f9c7c68
...
@@ -17,7 +17,7 @@ end
...
@@ -17,7 +17,7 @@ end
function
c95451366
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c95451366
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c95451366
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c95451366
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
cc
=
tc
:
GetCounter
(
0x1
)
local
cc
=
tc
:
GetCounter
(
0x1
)
tc
:
RemoveCounter
(
tp
,
0x1
,
cc
,
REASON_EFFECT
)
tc
:
RemoveCounter
(
tp
,
0x1
,
cc
,
REASON_EFFECT
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
...
...
c9560338.lua
View file @
4f9c7c68
...
@@ -49,7 +49,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,7 +49,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9560338
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9560338
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
...
@@ -58,7 +58,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,7 +58,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9560338
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9560338
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
...
...
c96380700.lua
View file @
4f9c7c68
...
@@ -32,7 +32,7 @@ function c96380700.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -32,7 +32,7 @@ function c96380700.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabelObject
(
g
:
GetFirst
())
e
:
SetLabelObject
(
g
:
GetFirst
())
end
end
function
c96380700
.
spfilter
(
c
,
e
,
tp
,
rc
)
function
c96380700
.
spfilter
(
c
,
e
,
tp
,
rc
)
return
c
:
IsSetCard
(
0x101
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsOriginalCodeRule
(
rc
:
GetOriginalCodeRule
())
return
c
:
IsSetCard
(
0x101
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsOriginalCodeRule
(
rc
:
GetOriginalCodeRule
())
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c96380700
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c96380700
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c98427577.lua
View file @
4f9c7c68
--くず鉄のかかし
--くず鉄のかかし
function
c98427577
.
initial_effect
(
c
)
function
c98427577
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c98645731.lua
View file @
4f9c7c68
...
@@ -24,7 +24,7 @@ function c98645731.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -24,7 +24,7 @@ function c98645731.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c98645731
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c98645731
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
3
then
return
false
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
3
then
return
false
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
local
result
=
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
local
result
=
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
...
...
c99050989.lua
View file @
4f9c7c68
...
@@ -12,6 +12,6 @@ function c99050989.filter(c)
...
@@ -12,6 +12,6 @@ function c99050989.filter(c)
end
end
function
c99050989
.
dircon
(
e
)
function
c99050989
.
dircon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_SZONE
)
==
0
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_SZONE
)
==
0
and
not
Duel
.
IsExistingMatchingCard
(
c99050989
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c99050989
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
c99330325.lua
View file @
4f9c7c68
...
@@ -23,7 +23,7 @@ function c99330325.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c99330325.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c99330325
.
chkfilter1
(
c
,
e
,
tp
)
function
c99330325
.
chkfilter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xd3
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
return
c
:
IsSetCard
(
0xd3
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsHasEffect
(
EFFECT_REVIVE_LIMIT
)
and
Duel
.
IsPlayerCanSpecialSummon
(
tp
,
0
,
POS_FACEUP
,
tp
,
c
)
not
c
:
IsHasEffect
(
EFFECT_REVIVE_LIMIT
)
and
Duel
.
IsPlayerCanSpecialSummon
(
tp
,
0
,
POS_FACEUP
,
tp
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c99330325
.
chkfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
c99330325
.
chkfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
end
end
...
...
utility.lua
View file @
4f9c7c68
...
@@ -2102,7 +2102,7 @@ function Auxiliary.ChangeBattleDamage(player,value)
...
@@ -2102,7 +2102,7 @@ function Auxiliary.ChangeBattleDamage(player,value)
end
end
end
end
end
end
end
end
--card effect disable filter(target)
--card effect disable filter(target)
function
Auxiliary
.
disfilter1
(
c
)
function
Auxiliary
.
disfilter1
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
and
(
not
c
:
IsType
(
TYPE_NORMAL
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
and
(
not
c
:
IsType
(
TYPE_NORMAL
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
...
...
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