Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-scripts-888
Commits
13a60c23
Commit
13a60c23
authored
May 11, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into master
parents
cf11db84
3edb0ce3
Changes
141
Hide whitespace changes
Inline
Side-by-side
Showing
141 changed files
with
351 additions
and
271 deletions
+351
-271
c10045474.lua
c10045474.lua
+1
-0
c11587414.lua
c11587414.lua
+3
-3
c11743119.lua
c11743119.lua
+1
-0
c12071500.lua
c12071500.lua
+1
-1
c12079734.lua
c12079734.lua
+1
-0
c12524259.lua
c12524259.lua
+1
-0
c12541409.lua
c12541409.lua
+1
-0
c12744567.lua
c12744567.lua
+4
-4
c14883228.lua
c14883228.lua
+1
-0
c14886469.lua
c14886469.lua
+1
-1
c1561110.lua
c1561110.lua
+1
-0
c15693423.lua
c15693423.lua
+1
-0
c15943341.lua
c15943341.lua
+1
-0
c20785975.lua
c20785975.lua
+4
-4
c21593977.lua
c21593977.lua
+1
-0
c21639276.lua
c21639276.lua
+3
-3
c21723081.lua
c21723081.lua
+1
-0
c23002292.lua
c23002292.lua
+3
-4
c23998625.lua
c23998625.lua
+2
-2
c24425055.lua
c24425055.lua
+1
-0
c24701235.lua
c24701235.lua
+6
-1
c2511.lua
c2511.lua
+1
-0
c25132288.lua
c25132288.lua
+2
-0
c25209168.lua
c25209168.lua
+1
-0
c2547033.lua
c2547033.lua
+1
-0
c26931058.lua
c26931058.lua
+1
-0
c27012990.lua
c27012990.lua
+1
-0
c27923575.lua
c27923575.lua
+1
-0
c2819435.lua
c2819435.lua
+1
-1
c29423048.lua
c29423048.lua
+6
-3
c29649320.lua
c29649320.lua
+1
-0
c29762407.lua
c29762407.lua
+1
-0
c29905795.lua
c29905795.lua
+1
-2
c30012506.lua
c30012506.lua
+1
-0
c30907810.lua
c30907810.lua
+2
-0
c31629407.lua
c31629407.lua
+2
-0
c32841045.lua
c32841045.lua
+2
-0
c33773528.lua
c33773528.lua
+1
-0
c3405259.lua
c3405259.lua
+1
-0
c34302287.lua
c34302287.lua
+1
-0
c36326160.lua
c36326160.lua
+1
-1
c36346532.lua
c36346532.lua
+1
-0
c36429703.lua
c36429703.lua
+1
-0
c36609518.lua
c36609518.lua
+6
-3
c37617348.lua
c37617348.lua
+1
-0
c37649320.lua
c37649320.lua
+2
-0
c3828844.lua
c3828844.lua
+1
-1
c39778366.lua
c39778366.lua
+1
-0
c39890958.lua
c39890958.lua
+1
-0
c41908872.lua
c41908872.lua
+1
-1
c42469671.lua
c42469671.lua
+27
-32
c42589641.lua
c42589641.lua
+1
-1
c43618262.lua
c43618262.lua
+2
-0
c43697559.lua
c43697559.lua
+1
-0
c44487250.lua
c44487250.lua
+24
-1
c44968687.lua
c44968687.lua
+1
-1
c46181000.lua
c46181000.lua
+1
-0
c46435376.lua
c46435376.lua
+6
-3
c47778083.lua
c47778083.lua
+47
-44
c4896788.lua
c4896788.lua
+1
-0
c49826746.lua
c49826746.lua
+1
-0
c50237654.lua
c50237654.lua
+2
-0
c5230799.lua
c5230799.lua
+2
-0
c52404456.lua
c52404456.lua
+1
-1
c52843699.lua
c52843699.lua
+1
-1
c52945066.lua
c52945066.lua
+1
-0
c55428242.lua
c55428242.lua
+2
-0
c58019984.lua
c58019984.lua
+2
-0
c59839761.lua
c59839761.lua
+1
-0
c60990740.lua
c60990740.lua
+1
-0
c61245403.lua
c61245403.lua
+6
-3
c61397885.lua
c61397885.lua
+1
-0
c64182380.lua
c64182380.lua
+3
-11
c66399653.lua
c66399653.lua
+1
-0
c67557908.lua
c67557908.lua
+3
-13
c6767771.lua
c6767771.lua
+6
-3
c68018709.lua
c68018709.lua
+1
-0
c68024506.lua
c68024506.lua
+2
-0
c68246154.lua
c68246154.lua
+2
-0
c69973414.lua
c69973414.lua
+1
-0
c703897.lua
c703897.lua
+0
-1
c70389815.lua
c70389815.lua
+1
-0
c70825459.lua
c70825459.lua
+1
-0
c71791814.lua
c71791814.lua
+2
-0
c71921856.lua
c71921856.lua
+1
-1
c72083436.lua
c72083436.lua
+1
-0
c72930878.lua
c72930878.lua
+1
-0
c73289035.lua
c73289035.lua
+1
-1
c73478096.lua
c73478096.lua
+6
-5
c73602965.lua
c73602965.lua
+1
-0
c73632127.lua
c73632127.lua
+1
-0
c73810864.lua
c73810864.lua
+1
-1
c73898890.lua
c73898890.lua
+1
-1
c74414885.lua
c74414885.lua
+1
-0
c74577599.lua
c74577599.lua
+4
-9
c77411244.lua
c77411244.lua
+1
-0
c77432167.lua
c77432167.lua
+1
-0
c77799846.lua
c77799846.lua
+1
-1
c77895328.lua
c77895328.lua
+7
-4
c78349103.lua
c78349103.lua
+1
-0
c79387392.lua
c79387392.lua
+2
-0
c79979666.lua
c79979666.lua
+1
-1
c80075749.lua
c80075749.lua
+1
-0
c80101899.lua
c80101899.lua
+1
-0
c80254726.lua
c80254726.lua
+1
-0
c8038143.lua
c8038143.lua
+1
-0
c81344070.lua
c81344070.lua
+1
-1
c83723605.lua
c83723605.lua
+1
-0
c84430165.lua
c84430165.lua
+1
-0
c85551711.lua
c85551711.lua
+20
-24
c85800949.lua
c85800949.lua
+1
-0
c8653757.lua
c8653757.lua
+5
-8
c86605515.lua
c86605515.lua
+1
-0
c87639778.lua
c87639778.lua
+1
-0
c88332693.lua
c88332693.lua
+1
-0
c89477759.lua
c89477759.lua
+1
-1
c8964854.lua
c8964854.lua
+1
-0
c89789152.lua
c89789152.lua
+1
-0
c89907227.lua
c89907227.lua
+3
-3
c90740329.lua
c90740329.lua
+5
-5
c91597389.lua
c91597389.lua
+1
-0
c91706817.lua
c91706817.lua
+1
-0
c9205573.lua
c9205573.lua
+6
-3
c92107604.lua
c92107604.lua
+1
-0
c92559258.lua
c92559258.lua
+2
-2
c94392192.lua
c94392192.lua
+2
-0
c94418111.lua
c94418111.lua
+2
-0
c94599451.lua
c94599451.lua
+1
-1
c9486959.lua
c9486959.lua
+1
-13
c94942656.lua
c94942656.lua
+3
-13
c95471006.lua
c95471006.lua
+1
-0
c96073342.lua
c96073342.lua
+1
-0
c96704974.lua
c96704974.lua
+1
-0
c97403510.lua
c97403510.lua
+1
-1
c97439806.lua
c97439806.lua
+2
-1
c97795930.lua
c97795930.lua
+1
-0
c98827725.lua
c98827725.lua
+1
-0
c98905.lua
c98905.lua
+1
-18
c99177923.lua
c99177923.lua
+1
-1
c99249638.lua
c99249638.lua
+1
-0
constant.lua
constant.lua
+2
-2
No files found.
c10045474.lua
View file @
13a60c23
...
...
@@ -12,6 +12,7 @@ function c10045474.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
10045474
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c10045474
.
handcon
)
...
...
c11587414.lua
View file @
13a60c23
...
...
@@ -56,8 +56,8 @@ end
function
s
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
(
e
:
GetHandler
():
IsAbleToGrave
()
or
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
))
and
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter2
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
2
,
tp
,
LOCATION_
ONFIELD
+
LOCATION_DECK
)
and
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter2
,
tp
,
LOCATION_
MZONE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
2
,
tp
,
LOCATION_
MZONE
+
LOCATION_DECK
)
end
function
s
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -67,7 +67,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
local
sg1
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
if
Duel
.
SendtoGrave
(
sg1
,
REASON_EFFECT
)
>
0
and
sg1
:
GetFirst
():
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tgfilter2
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
1
,
nil
)
local
sg2
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tgfilter2
,
tp
,
LOCATION_
MZONE
,
0
,
1
,
1
,
nil
)
if
#
sg2
>
0
then
Duel
.
BreakEffect
()
Duel
.
SendtoGrave
(
sg2
,
REASON_EFFECT
)
...
...
c11743119.lua
View file @
13a60c23
...
...
@@ -13,6 +13,7 @@ function c11743119.initial_effect(c)
e1
:
SetOperation
(
c11743119
.
eqop
)
c
:
RegisterEffect
(
e1
)
end
c11743119
.
has_text_type
=
TYPE_UNION
function
c11743119
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ec
=
e
:
GetLabelObject
()
...
...
c12071500.lua
View file @
13a60c23
...
...
@@ -74,7 +74,7 @@ function c12071500.activate(e,tp,eg,ep,ev,re,r,rp)
else
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg3
,
nil
,
chkf
)
local
fop
=
ce
:
GetOperation
()
fop
(
ce
,
e
,
tp
,
tc
,
mat2
,
SUMMON_
TYPE
_FUSION
)
fop
(
ce
,
e
,
tp
,
tc
,
mat2
,
SUMMON_
VALUE_DARK
_FUSION
)
end
tc
:
CompleteProcedure
()
end
...
...
c12079734.lua
View file @
13a60c23
...
...
@@ -11,6 +11,7 @@ function c12079734.initial_effect(c)
e1
:
SetOperation
(
c12079734
.
operation
)
c
:
RegisterEffect
(
e1
)
end
c12079734
.
has_text_type
=
TYPE_UNION
function
c12079734
.
filter1
(
c
,
ec
)
return
c
:
IsType
(
TYPE_UNION
)
and
c
:
CheckUnionTarget
(
ec
)
and
aux
.
CheckUnionEquip
(
c
,
ec
)
end
...
...
c12524259.lua
View file @
13a60c23
...
...
@@ -12,6 +12,7 @@ function c12524259.initial_effect(c)
e1
:
SetOperation
(
c12524259
.
activate
)
c
:
RegisterEffect
(
e1
)
end
c12524259
.
has_text_type
=
TYPE_UNION
function
c12524259
.
tgfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
Duel
.
IsExistingMatchingCard
(
c12524259
.
eqfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
c
,
tp
)
...
...
c12541409.lua
View file @
13a60c23
...
...
@@ -13,6 +13,7 @@ function c12541409.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in set turn
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
12541409
,
2
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c12744567.lua
View file @
13a60c23
...
...
@@ -18,7 +18,7 @@ function c12744567.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
12744567
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_RECOVER
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
)
e2
:
SetProperty
(
EFFECT_FLAG_
ACTIVATE_CONDITION
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c12744567
.
spcon
)
e2
:
SetTarget
(
c12744567
.
sptg
)
...
...
@@ -48,12 +48,12 @@ function c12744567.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c12744567
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetOverlayCount
()
>
0
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousOverlayCountOnField
()
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
48739166
)
end
function
c12744567
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
48739166
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
local
rec
=
e
:
GetHandler
():
GetBaseAttack
()
Duel
.
SetTargetPlayer
(
tp
)
...
...
c14883228.lua
View file @
13a60c23
...
...
@@ -12,6 +12,7 @@ function c14883228.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
14883228
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c14883228
.
handcon
)
...
...
c14886469.lua
View file @
13a60c23
...
...
@@ -5,7 +5,7 @@ function c14886469.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
14886469
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_
ACTIVATE_CONDITION
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
14886469
)
e1
:
SetCondition
(
c14886469
.
spcon
)
...
...
c1561110.lua
View file @
13a60c23
...
...
@@ -40,6 +40,7 @@ function c1561110.initial_effect(c)
e4
:
SetOperation
(
c1561110
.
spop2
)
c
:
RegisterEffect
(
e4
)
end
c1561110
.
has_text_type
=
TYPE_UNION
function
c1561110
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
end
...
...
c15693423.lua
View file @
13a60c23
...
...
@@ -12,6 +12,7 @@ function c15693423.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
15693423
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c15693423
.
handcon
)
...
...
c15943341.lua
View file @
13a60c23
...
...
@@ -37,6 +37,7 @@ function c15943341.activate(e,tp,eg,ep,ev,re,r,rp)
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
IsExists
(
c15943341
.
checkfilter
,
1
,
nil
,
tp
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
15943341
,
1
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c20785975.lua
View file @
13a60c23
...
...
@@ -21,7 +21,7 @@ function c20785975.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
20785975
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
)
e2
:
SetProperty
(
EFFECT_FLAG_
ACTIVATE_CONDITION
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c20785975
.
spcon
)
e2
:
SetTarget
(
c20785975
.
sptg
)
...
...
@@ -55,12 +55,12 @@ function c20785975.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c20785975
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetOverlayCount
()
>
0
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousOverlayCountOnField
()
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
94380860
)
end
function
c20785975
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
94380860
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c20785975
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c21593977.lua
View file @
13a60c23
...
...
@@ -17,6 +17,7 @@ end
function
c21593977
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
21593977
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
...
...
c21639276.lua
View file @
13a60c23
...
...
@@ -23,7 +23,7 @@ function c21639276.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_REMOVE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
,
21639277
)
e3
:
SetCondition
(
c21639276
.
rmcon
)
...
...
@@ -55,10 +55,10 @@ function c21639276.rmcfilter(c)
end
function
c21639276
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
e
:
GetHandler
():
IsStatus
(
STATUS_EFFECT_ENABLED
)
and
Duel
.
IsExistingMatchingCard
(
c21639276
.
rmcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c21639276
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
,
tp
,
POS_FACEDOWN
)
and
Duel
.
IsExistingMatchingCard
(
c21639276
.
rmcfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
,
tp
,
POS_FACEDOWN
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_HAND
)
end
...
...
c21723081.lua
View file @
13a60c23
...
...
@@ -19,6 +19,7 @@ function c21723081.initial_effect(c)
e2
:
SetOperation
(
c21723081
.
operation
)
c
:
RegisterEffect
(
e2
)
end
c21723081
.
has_text_type
=
TYPE_UNION
function
c21723081
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
91998119
)
or
c
:
IsType
(
TYPE_FUSION
)
and
aux
.
IsMaterialListCode
(
c
,
91998119
))
end
...
...
c23002292.lua
View file @
13a60c23
...
...
@@ -6,7 +6,6 @@ function c23002292.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCondition
(
c23002292
.
condition
)
e1
:
SetCost
(
c23002292
.
cost
)
e1
:
SetTarget
(
c23002292
.
target
)
e1
:
SetOperation
(
c23002292
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -14,6 +13,8 @@ function c23002292.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCost
(
c23002292
.
cost
)
e2
:
SetDescription
(
aux
.
Stringid
(
23002292
,
1
))
c
:
RegisterEffect
(
e2
)
end
function
c23002292
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -22,9 +23,7 @@ function c23002292.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c23002292
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
e
:
GetHandler
():
IsStatus
(
STATUS_ACT_FROM_HAND
)
then
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
end
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
end
function
c23002292
.
setfilter
(
c
)
return
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
(
true
)
...
...
c23998625.lua
View file @
13a60c23
...
...
@@ -61,8 +61,8 @@ function c23998625.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c23998625
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetOverlayCount
()
==
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetPreviousOverlayCountOnField
()
==
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
end
function
c23998625
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
97403510
)
and
e
:
GetHandler
():
IsCanBeXyzMaterial
(
c
)
...
...
c24425055.lua
View file @
13a60c23
...
...
@@ -34,6 +34,7 @@ function c24425055.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
24425055
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c24701235.lua
View file @
13a60c23
...
...
@@ -23,6 +23,8 @@ function c24701235.initial_effect(c)
e6
:
SetCategory
(
CATEGORY_DRAW
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e6
:
SetCode
(
EVENT_TO_GRAVE
)
e6
:
SetProperty
(
EFFECT_FLAG_ACTIVATE_CONDITION
)
e6
:
SetCondition
(
c24701235
.
condition
)
e6
:
SetTarget
(
c24701235
.
target
)
e6
:
SetOperation
(
c24701235
.
operation
)
c
:
RegisterEffect
(
e6
)
...
...
@@ -42,8 +44,11 @@ end
function
c24701235
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPIRIT
)
end
function
c24701235
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c24701235
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c24701235
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c24701235
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
c2511.lua
View file @
13a60c23
...
...
@@ -40,6 +40,7 @@ function c2511.acttg(e,c)
end
function
c2511
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
2511
,
2
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c25132288.lua
View file @
13a60c23
...
...
@@ -34,6 +34,7 @@ function c25132288.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
-
500
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
@@ -44,6 +45,7 @@ function c25132288.operation(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetValue
(
-
1500
)
tc
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
...
...
c25209168.lua
View file @
13a60c23
...
...
@@ -70,6 +70,7 @@ function c25209168.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
stg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
25209168
,
3
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c2547033.lua
View file @
13a60c23
...
...
@@ -23,6 +23,7 @@ function c2547033.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--act in set turn
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
2547033
,
1
))
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c26931058.lua
View file @
13a60c23
...
...
@@ -9,6 +9,7 @@ function c26931058.initial_effect(c)
e1
:
SetOperation
(
c26931058
.
efop
)
c
:
RegisterEffect
(
e1
)
end
c26931058
.
has_text_type
=
TYPE_UNION
function
c26931058
.
filter1
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_UNION
)
and
Duel
.
IsExistingMatchingCard
(
c26931058
.
filter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
c
)
...
...
c27012990.lua
View file @
13a60c23
...
...
@@ -14,6 +14,7 @@ function c27012990.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
27012990
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c27012990
.
handcon
)
...
...
c27923575.lua
View file @
13a60c23
...
...
@@ -59,6 +59,7 @@ function c27923575.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SSet
(
tp
,
tg
)
for
tc
in
aux
.
Next
(
tg
)
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
27923575
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c2819435.lua
View file @
13a60c23
...
...
@@ -87,7 +87,7 @@ function c2819435.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
2819436
,
0xfa
,
TYPES_TOKEN_MONSTER
,
2000
,
2000
,
6
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
and
e
:
GetHandler
():
GetFlagEffect
(
2819435
)
==
0
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_
MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_
ONFIELD
,
0
,
1
,
nil
,
TYPE_TOKEN
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
2819435
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
...
...
c29423048.lua
View file @
13a60c23
...
...
@@ -21,8 +21,9 @@ function s.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
Set
Property
(
EFFECT_FLAG_DELAY
)
e2
:
Set
Condition
(
s
.
spcon
)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -51,11 +52,13 @@ end
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PYRO
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
s
.
afilter
(
c
)
...
...
c29649320.lua
View file @
13a60c23
...
...
@@ -75,6 +75,7 @@ function c29649320.setop(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
Group
.
FromCards
(
c
,
tc
)
if
Duel
.
SSet
(
tp
,
sg
)
==
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
29649320
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c29762407.lua
View file @
13a60c23
...
...
@@ -7,6 +7,7 @@ function c29762407.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--Trap activate in set turn
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
29762407
,
1
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c29905795.lua
View file @
13a60c23
...
...
@@ -29,8 +29,7 @@ function c29905795.op(e,tp,eg,ep,ev,re,r,rp)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
+
REASON_DISCARD
)
>
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
+
REASON_DISCARD
)
>
0
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
c30012506.lua
View file @
13a60c23
...
...
@@ -18,6 +18,7 @@ function c30012506.initial_effect(c)
e5
:
SetOperation
(
c30012506
.
thop
)
c
:
RegisterEffect
(
e5
)
end
c30012506
.
has_text_type
=
TYPE_UNION
function
c30012506
.
filter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
...
...
c30907810.lua
View file @
13a60c23
...
...
@@ -12,11 +12,13 @@ function c30907810.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--activate from hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
30907810
,
2
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x108
))
e3
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e3
:
SetValue
(
32841045
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
...
...
c31629407.lua
View file @
13a60c23
...
...
@@ -2,11 +2,13 @@
function
c31629407
.
initial_effect
(
c
)
--activate from hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
31629407
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x108
))
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetValue
(
32841045
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
...
...
c32841045.lua
View file @
13a60c23
...
...
@@ -2,11 +2,13 @@
function
c32841045
.
initial_effect
(
c
)
--activate from hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
32841045
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x108
))
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetValue
(
32841045
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
...
...
c33773528.lua
View file @
13a60c23
...
...
@@ -7,6 +7,7 @@ function c33773528.initial_effect(c)
c
:
RegisterEffect
(
e0
)
--Trap activate in set turn
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
33773528
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c3405259.lua
View file @
13a60c23
...
...
@@ -18,6 +18,7 @@ function c3405259.initial_effect(c)
e5
:
SetOperation
(
c3405259
.
spop2
)
c
:
RegisterEffect
(
e5
)
end
c3405259
.
has_text_type
=
TYPE_UNION
function
c3405259
.
filter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
...
...
c34302287.lua
View file @
13a60c23
...
...
@@ -14,6 +14,7 @@ function c34302287.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
34302287
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c34302287
.
handcon
)
...
...
c36326160.lua
View file @
13a60c23
...
...
@@ -6,7 +6,7 @@ function c36326160.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e1
:
SetCountLimit
(
1
,
36326160
)
e1
:
SetCondition
(
c36326160
.
spcon
)
e1
:
SetTarget
(
c36326160
.
sptg
)
...
...
c36346532.lua
View file @
13a60c23
...
...
@@ -61,6 +61,7 @@ function c36346532.setop(e,tp,eg,ep,ev,re,r,rp)
local
sc
=
g
:
GetFirst
()
if
sc
and
Duel
.
SSet
(
tp
,
sc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
36346532
,
1
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c36429703.lua
View file @
13a60c23
...
...
@@ -81,6 +81,7 @@ function c36429703.setop(e,tp,eg,ep,ev,re,r,rp)
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
if
tc
:
IsType
(
TYPE_QUICKPLAY
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
36429703
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_SET_TURN
)
...
...
c36609518.lua
View file @
13a60c23
...
...
@@ -9,8 +9,9 @@ function c36609518.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e1
:
SetCountLimit
(
1
,
36609518
)
e1
:
SetCondition
(
c36609518
.
descon
)
e1
:
SetTarget
(
c36609518
.
destg
)
e1
:
SetOperation
(
c36609518
.
desop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -34,10 +35,12 @@ end
function
c36609518
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x152
)
end
function
c36609518
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c36609518
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c36609518
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c36609518
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
...
...
c37617348.lua
View file @
13a60c23
...
...
@@ -16,6 +16,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--quick activate
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e3
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
...
...
c37649320.lua
View file @
13a60c23
...
...
@@ -13,11 +13,13 @@ function c37649320.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--activate trap in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
37649320
,
1
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0xd4
))
e2
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e2
:
SetValue
(
37649320
)
c
:
RegisterEffect
(
e2
)
--search
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
c3828844.lua
View file @
13a60c23
...
...
@@ -51,7 +51,7 @@ function c3828844.thop(e,tp,eg,ep,ev,re,r,rp)
end
function
c3828844
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
Get
OverlayCount
()
>
0
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
Get
PreviousOverlayCountOnField
()
>
0
end
function
c3828844
.
spfilter
(
c
,
e
,
tp
)
if
not
(
c
:
IsRankAbove
(
5
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsType
(
TYPE_XYZ
)
...
...
c39778366.lua
View file @
13a60c23
...
...
@@ -24,6 +24,7 @@ function c39778366.initial_effect(c)
e2
:
SetOperation
(
c39778366
.
thop
)
c
:
RegisterEffect
(
e2
)
end
c39778366
.
has_text_type
=
TYPE_UNION
function
c39778366
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_NORMAL
+
TYPE_UNION
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c39890958.lua
View file @
13a60c23
...
...
@@ -19,6 +19,7 @@ function c39890958.initial_effect(c)
e5
:
SetOperation
(
c39890958
.
sumop
)
c
:
RegisterEffect
(
e5
)
end
c39890958
.
has_text_type
=
TYPE_UNION
function
c39890958
.
filter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
end
...
...
c41908872.lua
View file @
13a60c23
...
...
@@ -10,7 +10,7 @@ function c41908872.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e1
:
SetCountLimit
(
1
,
41908872
)
e1
:
SetCondition
(
c41908872
.
spcon
)
e1
:
SetTarget
(
c41908872
.
sptg
)
...
...
c42469671.lua
View file @
13a60c23
...
...
@@ -20,12 +20,9 @@ end
function
c42469671
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c42469671
.
actfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c42469671
.
desfilter
(
c
)
return
c
:
IsFaceup
()
end
function
c42469671
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c42469671
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
if
g
:
GetCount
()
~=
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
g
:
GetCount
())
...
...
@@ -35,34 +32,32 @@ function c42469671.sgfilter(c,p)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
p
)
end
function
c42469671
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c42469671
.
desfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
local
dc
=
Duel
.
GetOperatedGroup
():
FilterCount
(
c42469671
.
sgfilter
,
nil
,
1
-
tp
)
if
dc
~=
0
and
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
42469671
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
dc
,
REASON_EFFECT
)
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetCondition
(
c42469671
.
atkcon
)
e1
:
SetTarget
(
c42469671
.
atktg
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--check
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetOperation
(
c42469671
.
checkop
)
e2
:
SetLabelObject
(
e1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
if
dc
~=
0
and
Duel
.
IsTurnPlayer
(
tp
)
and
Duel
.
IsMainPhase
()
and
Duel
.
IsPlayerCanDraw
(
tp
,
dc
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
42469671
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
dc
,
REASON_EFFECT
)
--cannot attack
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetCondition
(
c42469671
.
atkcon
)
e1
:
SetTarget
(
c42469671
.
atktg
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--check
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetOperation
(
c42469671
.
checkop
)
e2
:
SetLabelObject
(
e1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c42469671
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c42589641.lua
View file @
13a60c23
...
...
@@ -121,7 +121,7 @@ function c42589641.hdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
end
function
c42589641
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
Get
OverlayCount
()
>
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_MZONE
)
return
e
:
GetHandler
():
Get
PreviousOverlayCountOnField
()
>
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_MZONE
)
end
function
c42589641
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x9c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c43618262.lua
View file @
13a60c23
...
...
@@ -20,7 +20,9 @@ function c43618262.cfop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
,
tp
)
==
0
then
return
end
Duel
.
ConfirmDecktop
(
1
-
p
,
5
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
PreserveSelectDeckSequence
(
true
)
local
tc
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToHand
,
1
,
1
,
nil
,
tp
):
GetFirst
()
Duel
.
PreserveSelectDeckSequence
(
false
)
local
num
=
math.floor
(
3000
/
100
)
local
t
=
{}
for
i
=
1
,
num
do
...
...
c43697559.lua
View file @
13a60c23
--ジェット・ロイド
function
c43697559
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
43697559
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
c44487250.lua
View file @
13a60c23
...
...
@@ -14,8 +14,31 @@ end
function
c44487250
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c44487250
.
only_filter
(
c
,
onlyc
,
tp
)
local
require_count
=
c
==
onlyc
and
2
or
1
return
c
:
CheckRemoveOverlayCard
(
tp
,
require_count
,
REASON_COST
)
end
function
c44487250
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
0
,
1
,
REASON_COST
)
end
if
chk
==
0
then
local
c
=
e
:
GetHandler
()
if
c
:
IsLocation
(
LOCATION_HAND
)
then
local
fromhand_effects
=
{
c
:
IsHasEffect
(
EFFECT_TRAP_ACT_IN_HAND
)}
local
available_fromhand_effects
=
{}
for
_
,
te
in
ipairs
(
fromhand_effects
)
do
local
cost
=
te
:
GetCost
()
if
te
:
CheckCountLimit
(
tp
)
and
(
not
cost
or
cost
(
te
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
,
e
))
then
table.insert
(
available_fromhand_effects
,
te
)
end
end
if
#
available_fromhand_effects
==
1
and
available_fromhand_effects
[
1
]:
GetValue
()
==
85551711
then
return
Duel
.
IsExistingMatchingCard
(
c44487250
.
only_filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
available_fromhand_effects
[
1
]:
GetHandler
(),
tp
)
else
return
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
0
,
1
,
REASON_COST
)
end
else
return
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
0
,
1
,
REASON_COST
)
end
end
Duel
.
RemoveOverlayCard
(
tp
,
1
,
0
,
1
,
1
,
REASON_COST
)
end
function
c44487250
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c44968687.lua
View file @
13a60c23
...
...
@@ -58,7 +58,7 @@ function c44968687.spfilter(c,tp)
end
function
c44968687
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
Card
.
IsCode
,
1
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
())
return
Duel
.
CheckReleaseGroupEx
(
c
:
GetControler
(),
c44968687
.
spfilter
,
1
,
REASON_SPSUMMON
,
false
,
nil
,
c
:
GetControler
())
end
function
c44968687
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
,
false
,
REASON_SPSUMMON
):
Filter
(
c44968687
.
spfilter
,
nil
,
tp
)
...
...
c46181000.lua
View file @
13a60c23
...
...
@@ -16,6 +16,7 @@ function c46181000.initial_effect(c)
e1
:
SetOperation
(
c46181000
.
operation
)
c
:
RegisterEffect
(
e1
)
end
c46181000
.
has_text_type
=
TYPE_UNION
function
c46181000
.
filter
(
c
,
e
,
sp
)
return
c
:
IsType
(
TYPE_UNION
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
end
...
...
c46435376.lua
View file @
13a60c23
...
...
@@ -15,9 +15,10 @@ function c46435376.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
46435376
,
1
))
e2
:
SetCategory
(
CATEGORY_TOGRAVE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
46435377
)
e2
:
SetCondition
(
c46435376
.
tgcon
)
e2
:
SetTarget
(
c46435376
.
tgtg
)
e2
:
SetOperation
(
c46435376
.
tgop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -32,12 +33,14 @@ function c46435376.hdop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_DISCARD
)
end
function
c46435376
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
end
function
c46435376
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0xb
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
end
function
c46435376
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
and
Duel
.
IsExistingMatchingCard
(
c46435376
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c46435376
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c46435376
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c47778083.lua
View file @
13a60c23
...
...
@@ -20,58 +20,61 @@ function c47778083.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
IsExistingTarget
(
c47778083
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c47778083
.
filter
,
1
-
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
1
-
tp
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
1
-
tp
)
>
0
end
local
turnp
=
Duel
.
GetTurnPlayer
()
Duel
.
Hint
(
HINT_SELECTMSG
,
turnp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectTarget
(
turnp
,
c47778083
.
filter
,
turnp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
turnp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
turnp
,
HINTMSG_SPSUMMON
)
local
og
=
Duel
.
SelectTarget
(
1
-
turnp
,
c47778083
.
filter
,
1
-
turnp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
1
-
turnp
)
local
sc
=
sg
:
GetFirst
()
local
oc
=
og
:
GetFirst
()
local
g
=
Group
.
FromCards
(
sc
,
oc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
2
,
0
,
0
)
e
:
SetLabelObject
(
sc
)
local
tg
=
Group
.
CreateGroup
()
for
p
in
aux
.
TurnPlayers
()
do
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
p
,
c47778083
.
filter
,
p
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
p
)
tg
:
Merge
(
g
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
tg
,
2
,
0
,
0
)
end
function
c47778083
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
==
0
then
return
end
local
sc
=
e
:
GetLabelObject
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
oc
=
g
:
GetFirst
()
if
oc
==
sc
then
oc
=
g
:
GetNext
()
end
if
sc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummonStep
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c47778083
.
descon
)
e1
:
SetOperation
(
c47778083
.
desop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
sc
:
RegisterEffect
(
e1
,
true
)
end
if
oc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummonStep
(
oc
,
0
,
1
-
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c47778083
.
descon
)
e1
:
SetOperation
(
c47778083
.
desop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
oc
:
RegisterEffect
(
e1
,
true
)
local
tg
=
Duel
.
GetTargetsRelateToChain
()
if
#
tg
==
0
then
return
end
local
c
=
e
:
GetHandler
()
local
fid
=
c
:
GetFieldID
()
local
sg
=
Group
.
CreateGroup
()
for
p
in
aux
.
TurnPlayers
()
do
local
tc
=
tg
:
Filter
(
Card
.
IsControler
,
nil
,
1
-
p
):
GetFirst
()
if
tc
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
p
,
p
,
false
,
false
,
POS_FACEUP
)
then
tc
:
RegisterFlagEffect
(
47778083
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
fid
)
tg
:
RemoveCard
(
tc
)
sg
:
AddCard
(
tc
)
end
end
Duel
.
SpecialSummonComplete
()
if
#
sg
==
0
then
return
end
sg
:
KeepAlive
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c47778083
.
descon
)
e1
:
SetOperation
(
c47778083
.
desop
)
e1
:
SetLabel
(
fid
,
Duel
.
GetTurnCount
())
e1
:
SetLabelObject
(
sg
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c47778083
.
desfilter
(
c
,
fid
)
return
c
:
GetFlagEffectLabel
(
47778083
)
==
fid
end
function
c47778083
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
local
fid
,
turnc
=
e
:
GetLabel
()
if
Duel
.
GetTurnCount
()
==
turnc
then
return
false
end
local
g
=
e
:
GetLabelObject
()
if
not
g
:
IsExists
(
c47778083
.
desfilter
,
1
,
nil
,
fid
)
then
g
:
DeleteGroup
()
e
:
Reset
()
return
false
else
return
true
end
end
function
c47778083
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
local
fid
,
turnc
=
e
:
GetLabel
()
local
g
=
e
:
GetLabelObject
()
local
tg
=
g
:
Filter
(
c47778083
.
desfilter
,
nil
,
fid
)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
c4896788.lua
View file @
13a60c23
...
...
@@ -5,6 +5,7 @@ function c4896788.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_ACTIVATE_CONDITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c4896788
.
drcon
)
e2
:
SetOperation
(
c4896788
.
drop
)
...
...
c49826746.lua
View file @
13a60c23
...
...
@@ -3,6 +3,7 @@ function c49826746.initial_effect(c)
aux
.
AddCodeList
(
c
,
80280737
)
--Trap activate in set turn
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
49826746
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c50237654.lua
View file @
13a60c23
...
...
@@ -43,6 +43,7 @@ function c50237654.drop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SSet
(
tp
,
dc
,
tp
,
false
)
==
0
then
return
end
if
dc
:
IsType
(
TYPE_QUICKPLAY
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
50237654
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_SET_TURN
)
...
...
@@ -51,6 +52,7 @@ function c50237654.drop(e,tp,eg,ep,ev,re,r,rp)
end
if
dc
:
IsType
(
TYPE_TRAP
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
50237654
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c5230799.lua
View file @
13a60c23
...
...
@@ -2,11 +2,13 @@
function
c5230799
.
initial_effect
(
c
)
--activate from hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
5230799
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x108
))
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetValue
(
32841045
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
...
...
c52404456.lua
View file @
13a60c23
...
...
@@ -15,7 +15,7 @@ function c52404456.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
52404456
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
)
e2
:
SetProperty
(
EFFECT_FLAG_
ACTIVATE_CONDITION
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c52404456
.
shcon
)
e2
:
SetTarget
(
c52404456
.
shtg
)
...
...
c52843699.lua
View file @
13a60c23
...
...
@@ -32,7 +32,7 @@ function c52843699.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e3
:
SetCountLimit
(
1
,
88232397
)
e3
:
SetCountLimit
(
1
,
52843700
)
e3
:
SetCost
(
c52843699
.
cost
)
e3
:
SetTarget
(
c52843699
.
target
)
e3
:
SetOperation
(
c52843699
.
operation
)
...
...
c52945066.lua
View file @
13a60c23
...
...
@@ -13,6 +13,7 @@ function c52945066.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
52945066
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c52945066
.
handcon
)
...
...
c55428242.lua
View file @
13a60c23
...
...
@@ -10,11 +10,13 @@ function c55428242.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
55428242
,
0
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e2
:
SetTarget
(
c55428242
.
etarget
)
e2
:
SetValue
(
55428242
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
c58019984.lua
View file @
13a60c23
...
...
@@ -46,6 +46,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
>
0
then
if
tc
:
IsType
(
TYPE_QUICKPLAY
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
58019984
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_SET_TURN
)
...
...
@@ -54,6 +55,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
if
tc
:
IsType
(
TYPE_TRAP
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
58019984
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c59839761.lua
View file @
13a60c23
...
...
@@ -12,6 +12,7 @@ function c59839761.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
59839761
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c59839761
.
handcon
)
...
...
c60990740.lua
View file @
13a60c23
...
...
@@ -38,6 +38,7 @@ function c60990740.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
DisableShuffleCheck
()
if
tc
:
GetType
()
==
TYPE_TRAP
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
60990740
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c61245403.lua
View file @
13a60c23
...
...
@@ -4,9 +4,10 @@ function c61245403.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCountLimit
(
1
,
61245403
)
e1
:
SetCondition
(
c61245403
.
thcon1
)
e1
:
SetTarget
(
c61245403
.
thtg1
)
e1
:
SetOperation
(
c61245403
.
thop1
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -22,12 +23,14 @@ function c61245403.initial_effect(c)
e2
:
SetOperation
(
c61245403
.
thop2
)
c
:
RegisterEffect
(
e2
)
end
function
c61245403
.
thcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_FZONE
,
0
)
==
0
end
function
c61245403
.
thfilter1
(
c
)
return
c
:
IsType
(
TYPE_FIELD
)
and
c
:
IsAbleToHand
()
end
function
c61245403
.
thtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_FZONE
,
0
,
nil
)
if
chk
==
0
then
return
#
g
==
0
and
Duel
.
IsExistingMatchingCard
(
c61245403
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c61245403
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c61245403
.
thop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c61397885.lua
View file @
13a60c23
...
...
@@ -14,6 +14,7 @@ function c61397885.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
61397885
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c61397885
.
handcon
)
...
...
c64182380.lua
View file @
13a60c23
...
...
@@ -39,13 +39,6 @@ function s.initial_effect(c)
e3
:
SetTarget
(
s
.
sptg
)
e3
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetLabelObject
(
e3
)
e4
:
SetOperation
(
s
.
chk
)
c
:
RegisterEffect
(
e4
)
end
function
s
.
dmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_XYZ
)
...
...
@@ -87,8 +80,10 @@ function s.filter(c,e,tp)
return
c
:
IsSetCard
(
0x81
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetLabel
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
ct
=
e
:
GetHandler
():
GetPreviousOverlayCountOnField
()
if
chk
==
0
then
return
ct
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
e
:
SetLabel
(
ct
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -97,6 +92,3 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetLabel
(),
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
function
s
.
chk
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetLabelObject
():
SetLabel
(
e
:
GetHandler
():
GetOverlayCount
())
end
c66399653.lua
View file @
13a60c23
...
...
@@ -23,6 +23,7 @@ function c66399653.initial_effect(c)
aux
.
RegisterMergedDelayedEvent
(
c
,
66399653
,
EVENT_SUMMON_SUCCESS
,
g
)
aux
.
RegisterMergedDelayedEvent
(
c
,
66399653
,
EVENT_SPSUMMON_SUCCESS
,
g
)
end
c66399653
.
has_text_type
=
TYPE_UNION
function
c66399653
.
thfilter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_UNION
)
and
c
:
IsAbleToHand
()
...
...
c67557908.lua
View file @
13a60c23
...
...
@@ -36,13 +36,6 @@ function c67557908.initial_effect(c)
e3
:
SetTarget
(
c67557908
.
sptg
)
e3
:
SetOperation
(
c67557908
.
spop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e4
:
SetOperation
(
c67557908
.
regop
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
end
aux
.
xyz_number
[
67557908
]
=
4
function
c67557908
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -69,14 +62,11 @@ function c67557908.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
end
function
c67557908
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetOverlayCount
()
e
:
GetLabelObject
():
SetLabel
(
ct
)
end
function
c67557908
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_XYZ
)
and
e
:
GetLabel
()
>
0
local
ct
=
c
:
GetPreviousOverlayCountOnField
()
e
:
SetLabel
(
ct
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_XYZ
)
and
ct
>
0
end
function
c67557908
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
94942656
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c6767771.lua
View file @
13a60c23
...
...
@@ -12,8 +12,9 @@ function c6767771.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e2
:
SetCountLimit
(
1
,
6767771
)
e2
:
SetCondition
(
c6767771
.
discon
)
e2
:
SetTarget
(
c6767771
.
distg
)
e2
:
SetOperation
(
c6767771
.
disop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -35,9 +36,11 @@ end
function
c6767771
.
disfilter
(
c
)
return
((
c
:
IsSetCard
(
0x181
)
and
c
:
IsLocation
(
LOCATION_MZONE
))
or
c
:
IsCode
(
56099748
))
and
c
:
IsFaceup
()
end
function
c6767771
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c6767771
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c6767771
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
and
Duel
.
IsExistingMatchingCard
(
c6767771
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
3
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
3
)
...
...
c68018709.lua
View file @
13a60c23
...
...
@@ -2,6 +2,7 @@
function
c68018709
.
initial_effect
(
c
)
--act qp in hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
68018709
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
c68024506.lua
View file @
13a60c23
...
...
@@ -2,11 +2,13 @@
function
c68024506
.
initial_effect
(
c
)
--activate from hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
68024506
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x108
))
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetValue
(
32841045
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
...
...
c68246154.lua
View file @
13a60c23
...
...
@@ -2,11 +2,13 @@
function
c68246154
.
initial_effect
(
c
)
--activate from hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
68246154
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x108
))
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetValue
(
32841045
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
...
...
c69973414.lua
View file @
13a60c23
...
...
@@ -14,6 +14,7 @@ function c69973414.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
69973414
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c69973414
.
handcon
)
...
...
c703897.lua
View file @
13a60c23
...
...
@@ -17,7 +17,6 @@ function c703897.initial_effect(c)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
,
703897
)
e2
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e2
:
SetCost
(
c703897
.
thcost
)
e2
:
SetTarget
(
c703897
.
thtg
)
e2
:
SetOperation
(
c703897
.
thop
)
...
...
c70389815.lua
View file @
13a60c23
...
...
@@ -44,6 +44,7 @@ function c70389815.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
70389815
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c70825459.lua
View file @
13a60c23
...
...
@@ -37,6 +37,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
70825459
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c71791814.lua
View file @
13a60c23
...
...
@@ -15,11 +15,13 @@ function c71791814.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--activate from hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
71791814
,
4
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x108
))
e2
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e2
:
SetValue
(
32841045
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
...
...
c71921856.lua
View file @
13a60c23
...
...
@@ -54,7 +54,7 @@ function c71921856.atkval(e,c)
end
function
c71921856
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
Get
OverlayCount
()
local
ct
=
c
:
Get
PreviousOverlayCountOnField
()
e
:
SetLabel
(
ct
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousControler
(
tp
)
and
ct
>
0
...
...
c72083436.lua
View file @
13a60c23
...
...
@@ -11,6 +11,7 @@ function c72083436.initial_effect(c)
e1
:
SetOperation
(
c72083436
.
daop
)
c
:
RegisterEffect
(
e1
)
end
c72083436
.
has_text_type
=
TYPE_UNION
function
c72083436
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_UNION
)
end
...
...
c72930878.lua
View file @
13a60c23
...
...
@@ -11,6 +11,7 @@ function c72930878.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
72930878
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c72930878
.
handcon
)
...
...
c73289035.lua
View file @
13a60c23
...
...
@@ -44,7 +44,7 @@ function c73289035.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c73289035
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetHandler
():
Get
OverlayCount
()
local
ct
=
e
:
GetHandler
():
Get
PreviousOverlayCountOnField
()
e
:
SetLabel
(
ct
)
return
rp
==
1
-
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
ct
>
0
and
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
...
...
c73478096.lua
View file @
13a60c23
...
...
@@ -6,7 +6,7 @@ function c73478096.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e1
:
SetCountLimit
(
1
,
73478096
)
e1
:
SetCondition
(
c73478096
.
spcon
)
e1
:
SetTarget
(
c73478096
.
sptg
)
...
...
@@ -22,17 +22,18 @@ function c73478096.initial_effect(c)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
c73478096
.
sp
filter
(
c
)
function
c73478096
.
c
filter
(
c
)
return
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceupEx
()
end
function
c73478096
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
local
c
=
e
:
GetHandler
()
return
not
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
Duel
.
IsExistingMatchingCard
(
c73478096
.
cfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
c
)
end
function
c73478096
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
and
Duel
.
IsExistingMatchingCard
(
c73478096
.
spfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
c
)
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
function
c73478096
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c73602965.lua
View file @
13a60c23
...
...
@@ -66,6 +66,7 @@ function s.tfop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c73632127.lua
View file @
13a60c23
...
...
@@ -12,6 +12,7 @@ function c73632127.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
73632127
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c73810864.lua
View file @
13a60c23
...
...
@@ -6,7 +6,7 @@ function c73810864.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e1
:
SetCountLimit
(
1
,
73810864
)
e1
:
SetCondition
(
c73810864
.
spcon
)
e1
:
SetTarget
(
c73810864
.
sptg
)
...
...
c73898890.lua
View file @
13a60c23
...
...
@@ -23,7 +23,7 @@ function c73898890.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
897409
)
e2
:
SetCountLimit
(
1
,
73898891
)
e2
:
SetCost
(
c73898890
.
spcost
)
e2
:
SetCondition
(
c73898890
.
spcon
)
e2
:
SetTarget
(
c73898890
.
sptg
)
...
...
c74414885.lua
View file @
13a60c23
...
...
@@ -13,6 +13,7 @@ function c74414885.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
74414885
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c74414885
.
handcon
)
...
...
c74577599.lua
View file @
13a60c23
...
...
@@ -9,15 +9,16 @@ function s.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetCost
(
s
.
cost
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
--act in set turn
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCost
(
s
.
cost
)
c
:
RegisterEffect
(
e2
)
--Special Summon
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -38,14 +39,8 @@ function s.cfilter(c)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsDiscardable
()
end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsStatus
(
STATUS_SET_TURN
)
then
return
true
end
local
ct
=#
{
c
:
IsHasEffect
(
EFFECT_TRAP_ACT_IN_SET_TURN
,
tp
)}
local
dis
=
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
if
chk
==
0
then
return
ct
>
1
or
dis
end
if
ct
==
1
or
dis
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
DiscardHand
(
tp
,
s
.
cfilter
,
1
,
1
,
REASON_DISCARD
+
REASON_COST
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
s
.
cfilter
,
1
,
1
,
REASON_DISCARD
+
REASON_COST
,
nil
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
...
...
c77411244.lua
View file @
13a60c23
...
...
@@ -18,6 +18,7 @@ function c77411244.initial_effect(c)
e5
:
SetOperation
(
c77411244
.
thop
)
c
:
RegisterEffect
(
e5
)
end
c77411244
.
has_text_type
=
TYPE_UNION
function
c77411244
.
filter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
...
...
c77432167.lua
View file @
13a60c23
...
...
@@ -8,6 +8,7 @@ function c77432167.initial_effect(c)
c
:
RegisterEffect
(
e0
)
--act in set turn
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
77432167
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c77799846.lua
View file @
13a60c23
...
...
@@ -43,7 +43,7 @@ function c77799846.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c77799846
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
Get
OverlayCount
()
>
0
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
Get
PreviousOverlayCountOnField
()
>
0
end
function
c77799846
.
rfilter
(
c
)
return
c
:
IsSetCard
(
0x85
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
c77895328.lua
View file @
13a60c23
...
...
@@ -19,7 +19,8 @@ function s.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetTarget
(
s
.
sptg
)
e2
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -43,13 +44,15 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
function
s
.
sp
filter
(
c
)
function
s
.
c
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x6
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c78349103.lua
View file @
13a60c23
...
...
@@ -13,6 +13,7 @@ function c78349103.initial_effect(c)
e5
:
SetOperation
(
c78349103
.
sop
)
c
:
RegisterEffect
(
e5
)
end
c78349103
.
has_text_type
=
TYPE_UNION
function
c78349103
.
filter
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
end
...
...
c79387392.lua
View file @
13a60c23
...
...
@@ -80,6 +80,7 @@ function c79387392.setop(e,tp,eg,ep,ev,re,r,rp)
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
if
tc
:
IsType
(
TYPE_QUICKPLAY
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
79387392
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_SET_TURN
)
...
...
@@ -88,6 +89,7 @@ function c79387392.setop(e,tp,eg,ep,ev,re,r,rp)
end
if
tc
:
IsType
(
TYPE_TRAP
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
79387392
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c79979666.lua
View file @
13a60c23
...
...
@@ -13,7 +13,7 @@ function c79979666.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
79979666
,
1
))
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_
DAMAGE_STEP
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_
ACTIVATE_CONDITION
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCondition
(
c79979666
.
condition
)
e2
:
SetTarget
(
c79979666
.
target
)
...
...
c80075749.lua
View file @
13a60c23
...
...
@@ -17,6 +17,7 @@ function c80075749.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c80075749
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
80075749
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
...
...
c80101899.lua
View file @
13a60c23
...
...
@@ -32,6 +32,7 @@ function c80101899.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc2
=
g2
:
GetFirst
()
if
tc2
and
Duel
.
SSet
(
tp
,
tc2
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
80101899
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c80254726.lua
View file @
13a60c23
...
...
@@ -13,6 +13,7 @@ function c80254726.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
80254726
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c80254726
.
handcon
)
...
...
c8038143.lua
View file @
13a60c23
...
...
@@ -11,6 +11,7 @@ function c8038143.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
8038143
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c8038143
.
handcon
)
...
...
c81344070.lua
View file @
13a60c23
...
...
@@ -13,7 +13,7 @@ function c81344070.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--special summon from grave
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
33420078
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
81344070
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
...
...
c83723605.lua
View file @
13a60c23
...
...
@@ -12,6 +12,7 @@ function c83723605.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
83723605
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c83723605
.
handcon
)
...
...
c84430165.lua
View file @
13a60c23
...
...
@@ -11,6 +11,7 @@ function c84430165.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
84430165
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c84430165
.
handcon
)
...
...
c85551711.lua
View file @
13a60c23
...
...
@@ -5,29 +5,24 @@ function c85551711.initial_effect(c)
c
:
EnableReviveLimit
()
--act qp/trap in hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
85551711
,
2
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetCondition
(
c85551711
.
handcon
)
e1
:
SetCost
(
c85551711
.
handcost
)
e1
:
SetValue
(
85551711
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
85551711
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetRange
(
LOCATION_MZONE
)
c
:
RegisterEffect
(
e3
)
--activate cost
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_ACTIVATE_COST
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetCost
(
c85551711
.
costchk
)
e4
:
SetTarget
(
c85551711
.
costtg
)
e4
:
SetOperation
(
c85551711
.
costop
)
c
:
RegisterEffect
(
e4
)
--spsummon
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
85551711
,
1
))
...
...
@@ -41,21 +36,22 @@ function c85551711.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
c85551711
.
handcon
(
e
)
return
Duel
.
GetTurnPlayer
()
~=
e
:
GetHandlerPlayer
()
and
e
:
GetHandler
():
GetOverlayCount
()
~=
0
end
function
c85551711
.
costtg
(
e
,
te
,
tp
)
local
tc
=
te
:
GetHandler
()
return
Duel
.
GetTurnPlayer
()
~=
e
:
GetHandlerPlayer
()
and
tc
:
IsLocation
(
LOCATION_HAND
)
and
tc
:
GetEffectCount
(
85551711
)
>
0
and
((
tc
:
GetEffectCount
(
EFFECT_QP_ACT_IN_NTPHAND
)
<=
tc
:
GetEffectCount
(
85551711
)
and
tc
:
IsType
(
TYPE_QUICKPLAY
))
or
(
tc
:
GetEffectCount
(
EFFECT_TRAP_ACT_IN_HAND
)
<=
tc
:
GetEffectCount
(
85551711
)
and
tc
:
IsType
(
TYPE_TRAP
)))
end
function
c85551711
.
costchk
(
e
,
te_or_
c
,
tp
)
return
e
:
GetHandler
()
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
function
c85551711
.
similarfilter
(
c
,
tp
)
return
c
:
IsHasEffect
(
85551711
)
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
function
c85551711
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
85551711
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
function
c85551711
.
handcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c85551711
.
similarfilter
,
tp
,
LOCATION_MZONE
,
0
,
c
,
tp
)
if
#
g
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DEATTACHFROM
)
local
tc
=
(
g
+
c
):
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
tc
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
else
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_EFFECT
)
end
end
function
c85551711
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c85800949.lua
View file @
13a60c23
...
...
@@ -57,6 +57,7 @@ function c85800949.setop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
85800949
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c8653757.lua
View file @
13a60c23
...
...
@@ -13,9 +13,8 @@ function c8653757.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e2
:
SetCondition
(
c8653757
.
etcon
)
e2
:
SetTarget
(
c8653757
.
ettg
)
e2
:
SetOperation
(
c8653757
.
etop
)
c
:
RegisterEffect
(
e2
)
end
...
...
@@ -38,16 +37,14 @@ function c8653757.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c8653757
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
93717133
)
or
(
c
:
IsType
(
TYPE_XYZ
)
and
c
:
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
93717133
)))
end
function
c8653757
.
etcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
Duel
.
GetTurnPlayer
()
~=
tp
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEDOWN
)
end
function
c8653757
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
93717133
)
or
(
c
:
IsType
(
TYPE_XYZ
)
and
c
:
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
93717133
)))
end
function
c8653757
.
ettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c8653757
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c8653757
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
function
c8653757
.
etop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_DRAW
,
RESET_PHASE
+
PHASE_END
,
1
)
...
...
c86605515.lua
View file @
13a60c23
...
...
@@ -30,6 +30,7 @@ function c86605515.setop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
86605515
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c87639778.lua
View file @
13a60c23
...
...
@@ -9,6 +9,7 @@ function c87639778.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
87639778
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c87639778
.
handcon
)
...
...
c88332693.lua
View file @
13a60c23
...
...
@@ -66,6 +66,7 @@ function c88332693.setop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c88332693
.
setfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
tc
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
88332693
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c89477759.lua
View file @
13a60c23
...
...
@@ -79,7 +79,7 @@ function c89477759.desop2(e,tp,eg,ep,ev,re,r,rp)
end
function
c89477759
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
Get
OverlayCount
()
>
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
return
c
:
Get
PreviousOverlayCountOnField
()
>
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousControler
(
tp
)
end
function
c89477759
.
spfilter
(
c
,
e
,
tp
)
...
...
c8964854.lua
View file @
13a60c23
...
...
@@ -11,6 +11,7 @@ function c8964854.initial_effect(c)
e1
:
SetOperation
(
c8964854
.
operation
)
c
:
RegisterEffect
(
e1
)
end
c8964854
.
has_text_type
=
TYPE_UNION
function
c8964854
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
...
...
c89789152.lua
View file @
13a60c23
...
...
@@ -11,6 +11,7 @@ function c89789152.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
89789152
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c89789152
.
handcon
)
...
...
c89907227.lua
View file @
13a60c23
...
...
@@ -31,7 +31,7 @@ function c89907227.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
89907227
,
2
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCondition
(
c89907227
.
spcon
)
e3
:
SetTarget
(
c89907227
.
sptg
)
...
...
@@ -69,11 +69,11 @@ function c89907227.spcon(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_DESTROY
)
and
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousControler
(
tp
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
89907228
)
end
function
c89907227
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
89907228
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c89907227
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c90740329.lua
View file @
13a60c23
...
...
@@ -15,14 +15,14 @@ function c90740329.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
end
function
c90740329
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATTACKTARGET
)
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c90740329
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
Is
Faceup
()
and
tc
:
Is
RelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
local
fid
=
tc
:
GetRealFieldID
()
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c91597389.lua
View file @
13a60c23
...
...
@@ -10,6 +10,7 @@ function c91597389.initial_effect(c)
e1
:
SetOperation
(
c91597389
.
operation
)
c
:
RegisterEffect
(
e1
)
end
c91597389
.
has_text_type
=
TYPE_UNION
function
c91597389
.
filter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_UNION
)
and
Duel
.
IsExistingMatchingCard
(
c91597389
.
filter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
c
)
end
...
...
c91706817.lua
View file @
13a60c23
...
...
@@ -83,6 +83,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
IsExists
(
Card
.
IsPreviousLocation
,
1
,
nil
,
LOCATION_HAND
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
...
...
c9205573.lua
View file @
13a60c23
...
...
@@ -9,8 +9,9 @@ function c9205573.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_ACTIVATE_CONDITION
)
e1
:
SetCountLimit
(
1
,
9205573
)
e1
:
SetCondition
(
c9205573
.
drcon
)
e1
:
SetTarget
(
c9205573
.
drtg
)
e1
:
SetOperation
(
c9205573
.
drop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -34,9 +35,11 @@ end
function
c9205573
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x153
)
end
function
c9205573
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c9205573
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c9205573
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
IsExistingMatchingCard
(
c9205573
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
...
...
c92107604.lua
View file @
13a60c23
...
...
@@ -8,6 +8,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act qp in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e2
:
SetRange
(
LOCATION_FZONE
)
...
...
c92559258.lua
View file @
13a60c23
...
...
@@ -36,7 +36,7 @@ function c92559258.initial_effect(c)
c
:
RegisterEffect
(
e4
)
--add counter
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
66104644
,
2
))
e5
:
SetDescription
(
aux
.
Stringid
(
92559258
,
1
))
e5
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e5
:
SetCode
(
EVENT_FREE_CHAIN
)
e5
:
SetRange
(
LOCATION_MZONE
)
...
...
@@ -49,7 +49,7 @@ function c92559258.initial_effect(c)
c
:
RegisterEffect
(
e5
)
--pendulum set
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
92559258
,
1
))
e6
:
SetDescription
(
aux
.
Stringid
(
92559258
,
2
))
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetCode
(
EVENT_DESTROYED
)
...
...
c94392192.lua
View file @
13a60c23
...
...
@@ -85,7 +85,9 @@ function c94392192.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmDecktop
(
1
-
tp
,
ct
)
local
g
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
ct
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
PreserveSelectDeckSequence
(
true
)
local
sg
=
g
:
FilterSelect
(
tp
,
c94392192
.
rmfilter
,
1
,
1
,
nil
,
tp
)
Duel
.
PreserveSelectDeckSequence
(
false
)
if
#
sg
>
0
then
Duel
.
DisableShuffleCheck
(
true
)
Duel
.
Remove
(
sg
,
POS_FACEDOWN
,
REASON_EFFECT
)
...
...
c94418111.lua
View file @
13a60c23
...
...
@@ -2,11 +2,13 @@
function
c94418111
.
initial_effect
(
c
)
--activate from hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
94418111
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x108
))
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetValue
(
32841045
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
...
...
c94599451.lua
View file @
13a60c23
...
...
@@ -17,7 +17,7 @@ function c94599451.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
94
243005
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
94
599451
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCountLimit
(
1
)
...
...
c9486959.lua
View file @
13a60c23
...
...
@@ -25,13 +25,6 @@ function c9486959.initial_effect(c)
e2
:
SetTarget
(
c9486959
.
tdtg
)
e2
:
SetOperation
(
c9486959
.
tdop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetOperation
(
c9486959
.
regop
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
end
function
c9486959
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
@@ -65,11 +58,6 @@ end
function
c9486959
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ReturnToField
(
e
:
GetLabelObject
())
end
function
c9486959
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetOverlayCount
()
e
:
GetLabelObject
():
SetLabel
(
ct
)
end
function
c9486959
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
rp
==
1
-
tp
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
...
...
@@ -79,7 +67,7 @@ function c9486959.tdfilter(c)
end
function
c9486959
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c9486959
.
tdfilter
(
chkc
)
end
local
ct
=
e
:
Get
Label
()
local
ct
=
e
:
Get
Handler
():
GetPreviousOverlayCountOnField
()
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingTarget
(
c9486959
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
sg
=
Duel
.
SelectTarget
(
tp
,
c9486959
.
tdfilter
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
ct
,
nil
)
...
...
c94942656.lua
View file @
13a60c23
...
...
@@ -34,13 +34,6 @@ function c94942656.initial_effect(c)
e3
:
SetTarget
(
c94942656
.
sptg
)
e3
:
SetOperation
(
c94942656
.
spop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e4
:
SetOperation
(
c94942656
.
regop2
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
end
function
c94942656
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
...
...
@@ -69,14 +62,11 @@ end
function
c94942656
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
94942656
,
RESET_EVENT
+
RESET_TURN_SET
+
RESET_TOHAND
+
RESET_TODECK
+
RESET_TOFIELD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
94942656
,
3
))
end
function
c94942656
.
regop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetOverlayCount
()
e
:
GetLabelObject
():
SetLabel
(
ct
)
end
function
c94942656
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetFlagEffect
(
94942656
)
>
0
and
e
:
GetLabel
()
>
0
local
ct
=
c
:
GetPreviousOverlayCountOnField
()
e
:
SetLabel
(
ct
)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetFlagEffect
(
94942656
)
>
0
and
ct
>
0
end
function
c94942656
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x168
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c95471006.lua
View file @
13a60c23
...
...
@@ -30,6 +30,7 @@ function c95471006.initial_effect(c)
e2
:
SetOperation
(
c95471006
.
sprop
)
c
:
RegisterEffect
(
e2
)
end
c95471006
.
has_text_type
=
TYPE_UNION
function
c95471006
.
cfilter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsType
(
TYPE_UNION
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsFaceup
()
...
...
c96073342.lua
View file @
13a60c23
...
...
@@ -13,6 +13,7 @@ function c96073342.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
96073342
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c96073342
.
handcon
)
...
...
c96704974.lua
View file @
13a60c23
...
...
@@ -31,6 +31,7 @@ function c96704974.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
96704974
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c97403510.lua
View file @
13a60c23
...
...
@@ -86,7 +86,7 @@ function c97403510.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c97403510
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
Get
OverlayCount
()
>
0
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
Get
PreviousOverlayCountOnField
()
>
0
end
function
c97403510
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c97439806.lua
View file @
13a60c23
...
...
@@ -12,7 +12,8 @@ function c97439806.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c97439806
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x35
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
97439806
)
and
c
:
IsDiscardable
()
return
c
:
IsSetCard
(
0x35
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
97439806
)
and
c
:
IsDiscardable
()
and
c
:
IsAbleToGraveAsCost
()
end
function
c97439806
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c97439806
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
...
...
c97795930.lua
View file @
13a60c23
...
...
@@ -11,6 +11,7 @@ function c97795930.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
97795930
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c97795930
.
handcon
)
...
...
c98827725.lua
View file @
13a60c23
...
...
@@ -11,6 +11,7 @@ function c98827725.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act in set turn
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
98827725
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_SET_TURN
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
...
...
c98905.lua
View file @
13a60c23
...
...
@@ -9,26 +9,9 @@ function c98905.initial_effect(c)
e1
:
SetTarget
(
c98905
.
target
)
e1
:
SetOperation
(
c98905
.
activate
)
c
:
RegisterEffect
(
e1
)
if
not
c98905
.
global_check
then
c98905
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_TO_GRAVE
)
ge1
:
SetOperation
(
c98905
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c98905
.
callback
(
c
)
local
tp
=
c
:
GetPreviousControler
()
if
c
:
IsSetCard
(
0xe5
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsControler
(
tp
)
and
c
:
GetOverlayCount
()
>
0
then
c
:
RegisterFlagEffect
(
98905
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
end
function
c98905
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
eg
:
ForEach
(
c98905
.
callback
)
end
function
c98905
.
filter
(
c
,
e
,
tp
)
return
c
:
Get
FlagEffect
(
98905
)
~=
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
return
c
:
Get
PreviousOverlayCountOnField
(
)
~=
0
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsControler
(
tp
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c98905
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetCode
())
...
...
c99177923.lua
View file @
13a60c23
...
...
@@ -17,7 +17,7 @@ function c99177923.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
99177923
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
)
e2
:
SetProperty
(
EFFECT_FLAG_
ACTIVATE_CONDITION
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCondition
(
c99177923
.
srcon
)
...
...
c99249638.lua
View file @
13a60c23
...
...
@@ -13,6 +13,7 @@ function c99249638.initial_effect(c)
e4
:
SetOperation
(
c99249638
.
reop
)
c
:
RegisterEffect
(
e4
)
end
c99249638
.
has_text_type
=
TYPE_UNION
function
c99249638
.
recost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetHandler
():
GetEquipTarget
()
e
:
SetLabelObject
(
tc
)
...
...
constant.lua
View file @
13a60c23
--min/max value
MIN_ID
=
1
000
--4 digits
, by DataManager::GetDesc()
MIN_ID
=
1
28
--0x80
, by DataManager::GetDesc()
MAX_ID
=
268435455
--28 bits, by DataManager::GetDesc()
MAX_COUNTER
=
65535
--max number for adding/removing counters, by card::add_counter(), field::remove_counter()
MAX_PARAMETER
=
0xffff
...
...
@@ -333,7 +333,7 @@ EFFECT_FLAG_CANNOT_INACTIVATE =0x2000000 --發動不會被無效
EFFECT_FLAG_CLIENT_HINT
=
0x4000000
--客户端提示
EFFECT_FLAG_CONTINUOUS_TARGET
=
0x8000000
--建立持續對象的永續魔法/永續陷阱/早埋系以外的裝備魔法卡
EFFECT_FLAG_LIMIT_ZONE
=
0x10000000
--限制魔法·陷阱卡发动时可以放置的区域
EFFECT_FLAG_
COF
=
0x20000000
--N/A
EFFECT_FLAG_
ACTIVATE_CONDITION
=
0x20000000
--诱发效果即将发动时检查条件(手卡诱发之外的无此标记的诱发效果为触发事件时检查)
EFFECT_FLAG_CVAL_CHECK
=
0x40000000
--N/A
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
--卡在发动时效果就立即适用
...
...
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