Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-scripts
Commits
f5f3c42e
You need to sign in or sign up before continuing.
Commit
f5f3c42e
authored
May 05, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
https://github.com/Fluorohydride/ygopro-core/commit/095d7ca68e1c242151afd2201c844ad5eae3a156
parent
c2bfd0e7
Changes
112
Show whitespace changes
Inline
Side-by-side
Showing
112 changed files
with
141 additions
and
141 deletions
+141
-141
c10731333.lua
c10731333.lua
+2
-2
c12255007.lua
c12255007.lua
+1
-1
c12289247.lua
c12289247.lua
+1
-1
c128454.lua
c128454.lua
+1
-1
c14920218.lua
c14920218.lua
+1
-1
c15286412.lua
c15286412.lua
+1
-1
c15520842.lua
c15520842.lua
+1
-1
c16617334.lua
c16617334.lua
+1
-1
c17330916.lua
c17330916.lua
+1
-1
c19036557.lua
c19036557.lua
+1
-1
c19302550.lua
c19302550.lua
+1
-1
c19580308.lua
c19580308.lua
+1
-1
c20409757.lua
c20409757.lua
+1
-1
c20773176.lua
c20773176.lua
+2
-2
c21495657.lua
c21495657.lua
+2
-2
c22617205.lua
c22617205.lua
+2
-2
c23166823.lua
c23166823.lua
+1
-1
c23377694.lua
c23377694.lua
+1
-1
c23893227.lua
c23893227.lua
+1
-1
c26493435.lua
c26493435.lua
+1
-1
c26845680.lua
c26845680.lua
+1
-1
c27813661.lua
c27813661.lua
+1
-1
c27873305.lua
c27873305.lua
+1
-1
c27970830.lua
c27970830.lua
+1
-1
c28039390.lua
c28039390.lua
+1
-1
c28201945.lua
c28201945.lua
+2
-2
c28770951.lua
c28770951.lua
+2
-2
c29666221.lua
c29666221.lua
+1
-1
c31111109.lua
c31111109.lua
+2
-2
c32360466.lua
c32360466.lua
+1
-1
c3356494.lua
c3356494.lua
+1
-1
c34838437.lua
c34838437.lua
+1
-1
c35950025.lua
c35950025.lua
+1
-1
c36693940.lua
c36693940.lua
+1
-1
c38695361.lua
c38695361.lua
+1
-1
c42160203.lua
c42160203.lua
+1
-1
c42925441.lua
c42925441.lua
+2
-2
c43147039.lua
c43147039.lua
+1
-1
c45002991.lua
c45002991.lua
+1
-1
c45215225.lua
c45215225.lua
+1
-1
c45803070.lua
c45803070.lua
+2
-2
c46425662.lua
c46425662.lua
+1
-1
c464362.lua
c464362.lua
+1
-1
c46796664.lua
c46796664.lua
+1
-1
c47436247.lua
c47436247.lua
+1
-1
c47660516.lua
c47660516.lua
+1
-1
c55051920.lua
c55051920.lua
+2
-2
c55154048.lua
c55154048.lua
+2
-2
c55312487.lua
c55312487.lua
+2
-2
c55428242.lua
c55428242.lua
+2
-2
c56655675.lua
c56655675.lua
+1
-1
c56675280.lua
c56675280.lua
+1
-1
c57690191.lua
c57690191.lua
+1
-1
c57777714.lua
c57777714.lua
+2
-2
c58016954.lua
c58016954.lua
+1
-1
c58165765.lua
c58165765.lua
+1
-1
c58468105.lua
c58468105.lua
+1
-1
c58504745.lua
c58504745.lua
+1
-1
c58990362.lua
c58990362.lua
+2
-2
c60222582.lua
c60222582.lua
+2
-2
c62256492.lua
c62256492.lua
+1
-1
c62834295.lua
c62834295.lua
+1
-1
c63956833.lua
c63956833.lua
+2
-2
c63992027.lua
c63992027.lua
+1
-1
c64283880.lua
c64283880.lua
+2
-2
c64655485.lua
c64655485.lua
+1
-1
c6511113.lua
c6511113.lua
+2
-2
c6595475.lua
c6595475.lua
+1
-1
c68812773.lua
c68812773.lua
+1
-1
c70083592.lua
c70083592.lua
+1
-1
c71071546.lua
c71071546.lua
+1
-1
c71612253.lua
c71612253.lua
+1
-1
c71797713.lua
c71797713.lua
+1
-1
c72181263.lua
c72181263.lua
+1
-1
c72714461.lua
c72714461.lua
+1
-1
c72819261.lua
c72819261.lua
+1
-1
c73511233.lua
c73511233.lua
+1
-1
c73639099.lua
c73639099.lua
+1
-1
c74605254.lua
c74605254.lua
+1
-1
c76794549.lua
c76794549.lua
+1
-1
c77522571.lua
c77522571.lua
+2
-2
c7799906.lua
c7799906.lua
+1
-1
c78348934.lua
c78348934.lua
+1
-1
c79531196.lua
c79531196.lua
+1
-1
c79777187.lua
c79777187.lua
+1
-1
c80889750.lua
c80889750.lua
+1
-1
c8165596.lua
c8165596.lua
+1
-1
c82162616.lua
c82162616.lua
+2
-2
c82224646.lua
c82224646.lua
+2
-2
c82428674.lua
c82428674.lua
+1
-1
c82738277.lua
c82738277.lua
+1
-1
c83032858.lua
c83032858.lua
+1
-1
c83519853.lua
c83519853.lua
+1
-1
c84388461.lua
c84388461.lua
+1
-1
c86827882.lua
c86827882.lua
+1
-1
c87246309.lua
c87246309.lua
+1
-1
c87475570.lua
c87475570.lua
+1
-1
c87765315.lua
c87765315.lua
+1
-1
c88760522.lua
c88760522.lua
+1
-1
c89113320.lua
c89113320.lua
+1
-1
c89132148.lua
c89132148.lua
+2
-2
c91812341.lua
c91812341.lua
+2
-2
c92572371.lua
c92572371.lua
+1
-1
c94220427.lua
c94220427.lua
+1
-1
c94415058.lua
c94415058.lua
+1
-1
c95401059.lua
c95401059.lua
+1
-1
c96142517.lua
c96142517.lua
+5
-5
c96223501.lua
c96223501.lua
+2
-2
c96733134.lua
c96733134.lua
+1
-1
c97617181.lua
c97617181.lua
+1
-1
c9765723.lua
c9765723.lua
+1
-1
c99397762.lua
c99397762.lua
+1
-1
No files found.
c10731333.lua
View file @
f5f3c42e
...
@@ -20,10 +20,10 @@ function c10731333.initial_effect(c)
...
@@ -20,10 +20,10 @@ function c10731333.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c10731333
.
ptg
(
e
,
c
)
function
c10731333
.
ptg
(
e
,
c
)
return
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
return
c
:
IsSetCard
(
0x9f
,
0x99
)
end
end
function
c10731333
.
atkfilter
(
c
)
function
c10731333
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
,
0x99
)
end
end
function
c10731333
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10731333
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
...
...
c12255007.lua
View file @
f5f3c42e
...
@@ -29,7 +29,7 @@ end
...
@@ -29,7 +29,7 @@ end
function
c12255007
.
actcon
(
e
)
function
c12255007
.
actcon
(
e
)
local
tc
=
Duel
.
GetAttacker
()
local
tc
=
Duel
.
GetAttacker
()
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
tc
and
tc
:
IsControler
(
tp
)
and
(
tc
:
IsSetCard
(
0x9f
)
or
tc
:
IsSetCard
(
0x99
)
)
return
tc
and
tc
:
IsControler
(
tp
)
and
tc
:
IsSetCard
(
0x9f
,
0x99
)
end
end
function
c12255007
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12255007
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
...
...
c12289247.lua
View file @
f5f3c42e
...
@@ -90,7 +90,7 @@ function c12289247.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -90,7 +90,7 @@ function c12289247.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c12289247
.
cfilter
(
c
)
function
c12289247
.
cfilter
(
c
)
return
(
c
:
IsSetCard
(
0x10f2
)
or
c
:
IsSetCard
(
0x2073
)
or
c
:
IsSetCard
(
0x2017
)
or
c
:
IsSetCard
(
0x1046
)
)
return
c
:
IsSetCard
(
0x10f2
,
0x2073
,
0x2017
,
0x1046
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
(
not
c
:
IsLocation
(
LOCATION_MZONE
)
or
c
:
IsFaceup
())
and
(
not
c
:
IsLocation
(
LOCATION_MZONE
)
or
c
:
IsFaceup
())
end
end
...
...
c128454.lua
View file @
f5f3c42e
...
@@ -14,7 +14,7 @@ function c128454.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c128454.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c128454
.
thfilter
(
c
)
function
c128454
.
thfilter
(
c
)
return
((
c
:
IsLocation
(
LOCATION_PZONE
)
and
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x98
)
))
return
((
c
:
IsLocation
(
LOCATION_PZONE
)
and
c
:
IsSetCard
(
0x9f
,
0x98
))
or
(
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_PENDULUM
)))
and
c
:
IsAbleToHand
()
or
(
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_PENDULUM
)))
and
c
:
IsAbleToHand
()
end
end
function
c128454
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c128454
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c14920218.lua
View file @
f5f3c42e
...
@@ -32,7 +32,7 @@ function c14920218.pcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,7 @@ function c14920218.pcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
(),
0x98
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSetCard
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
(),
0x98
)
end
end
function
c14920218
.
pfilter
(
c
)
function
c14920218
.
pfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
(
c
:
IsSetCard
(
0x98
)
or
c
:
IsSetCard
(
0x99
)
)
and
not
c
:
IsCode
(
14920218
)
and
c
:
IsAbleToHand
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x98
,
0x99
)
and
not
c
:
IsCode
(
14920218
)
and
c
:
IsAbleToHand
()
end
end
function
c14920218
.
ptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14920218
.
ptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c14920218
.
pfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c14920218
.
pfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
...
...
c15286412.lua
View file @
f5f3c42e
...
@@ -12,7 +12,7 @@ function c15286412.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c15286412.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c15286412
.
cfilter
(
c
)
function
c15286412
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x42
)
or
c
:
IsSetCard
(
0x4b
)
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x42
,
0x4b
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
function
c15286412
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c15286412
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
e
:
SetLabel
(
1
)
...
...
c15520842.lua
View file @
f5f3c42e
...
@@ -14,7 +14,7 @@ function c15520842.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c15520842.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c15520842
.
cfilter
(
c
)
function
c15520842
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x55
,
0x7b
)
end
end
function
c15520842
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15520842
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c15520842
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c15520842
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
c16617334.lua
View file @
f5f3c42e
...
@@ -51,7 +51,7 @@ function c16617334.condition2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c16617334.condition2(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
end
function
c16617334
.
filter
(
c
)
function
c16617334
.
filter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
,
0x99
)
end
end
function
c16617334
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c16617334
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsOnField
()
and
c16617334
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsOnField
()
and
c16617334
.
filter
(
chkc
)
end
...
...
c17330916.lua
View file @
f5f3c42e
...
@@ -74,7 +74,7 @@ function c17330916.lvcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -74,7 +74,7 @@ function c17330916.lvcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_DISCARD
)
end
end
function
c17330916
.
filter
(
c
)
function
c17330916
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsLevelAbove
(
2
)
return
c
:
IsSetCard
(
0x9f
,
0x99
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsLevelAbove
(
2
)
end
end
function
c17330916
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17330916
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c17330916
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c17330916
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
...
...
c19036557.lua
View file @
f5f3c42e
...
@@ -48,7 +48,7 @@ function c19036557.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,7 +48,7 @@ function c19036557.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
end
end
function
c19036557
.
thfilter
(
c
)
function
c19036557
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
19036557
)
and
(
c
:
IsSetCard
(
0x400d
)
or
c
:
IsSetCard
(
0x113
)
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
19036557
)
and
c
:
IsSetCard
(
0x400d
,
0x113
)
and
c
:
IsAbleToHand
()
end
end
function
c19036557
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c19036557
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c19036557
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c19036557
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c19302550.lua
View file @
f5f3c42e
...
@@ -50,7 +50,7 @@ function c19302550.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -50,7 +50,7 @@ function c19302550.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
c19302550
.
thfilter
(
c
)
function
c19302550
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0xaf
)
or
c
:
IsSetCard
(
0xae
)
)
and
not
c
:
IsCode
(
19302550
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xaf
,
0xae
)
and
not
c
:
IsCode
(
19302550
)
and
c
:
IsAbleToHand
()
end
end
function
c19302550
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c19302550
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c19302550
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c19302550
.
thfilter
(
chkc
)
end
...
...
c19580308.lua
View file @
f5f3c42e
...
@@ -13,7 +13,7 @@ function c19580308.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c19580308.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c19580308
.
cfilter
(
c
,
ft
)
function
c19580308
.
cfilter
(
c
,
ft
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
(
c
:
IsSetCard
(
0xaf
)
or
c
:
IsSetCard
(
0xae
)
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0xaf
,
0xae
)
and
not
c
:
IsCode
(
19580308
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
and
not
c
:
IsCode
(
19580308
)
and
c
:
IsAbleToGraveAsCost
()
and
(
ft
>
0
or
c
:
GetSequence
()
<
5
)
end
end
function
c19580308
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c19580308
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c20409757.lua
View file @
f5f3c42e
...
@@ -66,7 +66,7 @@ function c20409757.aclimit(e,re,tp)
...
@@ -66,7 +66,7 @@ function c20409757.aclimit(e,re,tp)
return
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c20409757
.
slfilter
(
c
)
function
c20409757
.
slfilter
(
c
)
return
c
:
IsSetCard
(
0x98
)
or
c
:
IsSetCard
(
0x99
)
return
c
:
IsSetCard
(
0x98
,
0x99
)
end
end
function
c20409757
.
slcon
(
e
)
function
c20409757
.
slcon
(
e
)
return
not
Duel
.
IsExistingMatchingCard
(
c20409757
.
slfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
return
not
Duel
.
IsExistingMatchingCard
(
c20409757
.
slfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
...
...
c20773176.lua
View file @
f5f3c42e
...
@@ -25,12 +25,12 @@ function c20773176.initial_effect(c)
...
@@ -25,12 +25,12 @@ function c20773176.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c20773176
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c20773176
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0xb4
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0xb4
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c20773176
.
filter
(
c
,
tp
)
function
c20773176
.
filter
(
c
,
tp
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
(
c
:
IsSetCard
(
0xb4
)
or
c
:
IsSetCard
(
0xc4
)
)
and
not
c
:
IsCode
(
20773176
)
and
c
:
IsSetCard
(
0xb4
,
0xc4
)
and
not
c
:
IsCode
(
20773176
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
GetPreviousControler
()
==
tp
and
((
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
))
and
((
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
))
or
c
:
IsPreviousLocation
(
LOCATION_PZONE
))
or
c
:
IsPreviousLocation
(
LOCATION_PZONE
))
...
...
c21495657.lua
View file @
f5f3c42e
...
@@ -23,14 +23,14 @@ function c21495657.initial_effect(c)
...
@@ -23,14 +23,14 @@ function c21495657.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c21495657
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c21495657
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0x9e
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0x9e
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c21495657
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c21495657
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
or
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
or
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
end
end
function
c21495657
.
filter
(
c
)
function
c21495657
.
filter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x9e
)
or
c
:
IsSetCard
(
0xc4
)
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
not
c
:
IsCode
(
21495657
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9e
,
0xc4
)
and
not
c
:
IsType
(
TYPE_TUNER
)
and
not
c
:
IsCode
(
21495657
)
end
end
function
c21495657
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c21495657
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c21495657
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c21495657
.
filter
(
chkc
)
end
...
...
c22617205.lua
View file @
f5f3c42e
...
@@ -30,14 +30,14 @@ function c22617205.initial_effect(c)
...
@@ -30,14 +30,14 @@ function c22617205.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c22617205
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c22617205
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0x9c
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0x9c
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c22617205
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22617205
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
end
end
function
c22617205
.
filter1
(
c
)
function
c22617205
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x9c
)
or
c
:
IsSetCard
(
0xc4
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9c
,
0xc4
)
end
end
function
c22617205
.
filter2
(
c
)
function
c22617205
.
filter2
(
c
)
return
c
:
IsFacedown
()
return
c
:
IsFacedown
()
...
...
c23166823.lua
View file @
f5f3c42e
...
@@ -26,7 +26,7 @@ function c23166823.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c23166823.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c23166823
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c23166823
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0xb5
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0xb5
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c23166823
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23166823
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c23377694.lua
View file @
f5f3c42e
...
@@ -55,7 +55,7 @@ function c23377694.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,7 @@ function c23377694.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c23377694
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c23377694
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c23377694
.
spfilter
(
c
,
e
,
tp
)
function
c23377694
.
spfilter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x9f
,
0x99
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23377694
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23377694
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_PZONE
)
and
c23377694
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_PZONE
)
and
c23377694
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
c23893227.lua
View file @
f5f3c42e
...
@@ -32,7 +32,7 @@ function c23893227.initial_effect(c)
...
@@ -32,7 +32,7 @@ function c23893227.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c23893227
.
filter
(
c
)
function
c23893227
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x93
)
or
c
:
IsSetCard
(
0x94
)
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x93
,
0x94
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
function
c23893227
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23893227
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c26493435.lua
View file @
f5f3c42e
...
@@ -55,7 +55,7 @@ function c26493435.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -55,7 +55,7 @@ function c26493435.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x30
,
2
,
REASON_COST
)
e
:
GetHandler
():
RemoveCounter
(
tp
,
0x30
,
2
,
REASON_COST
)
end
end
function
c26493435
.
filter
(
c
,
e
,
tp
)
function
c26493435
.
filter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0x8f
)
or
c
:
IsSetCard
(
0x54
)
or
c
:
IsSetCard
(
0x59
)
or
c
:
IsSetCard
(
0x82
)
)
return
c
:
IsSetCard
(
0x8f
,
0x54
,
0x59
,
0x82
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c26493435
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26493435
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c26845680.lua
View file @
f5f3c42e
...
@@ -13,7 +13,7 @@ function c26845680.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c26845680.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c26845680
.
costfilter
(
c
)
function
c26845680
.
costfilter
(
c
)
return
(
c
:
IsSetCard
(
0xfe
)
or
c
:
IsSetCard
(
0x11b
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsFaceup
()
or
not
c
:
IsLocation
(
LOCATION_MZONE
))
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsSetCard
(
0xfe
,
0x11b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsFaceup
()
or
not
c
:
IsLocation
(
LOCATION_MZONE
))
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c26845680
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26845680
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c26845680
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c26845680
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
c27813661.lua
View file @
f5f3c42e
...
@@ -28,7 +28,7 @@ function c27813661.initial_effect(c)
...
@@ -28,7 +28,7 @@ function c27813661.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c27813661
.
tgtg
(
e
,
c
)
function
c27813661
.
tgtg
(
e
,
c
)
return
c
:
IsSetCard
(
0x98
)
or
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
return
c
:
IsSetCard
(
0x98
,
0x9f
,
0x99
)
end
end
function
c27813661
.
desfilter
(
c
)
function
c27813661
.
desfilter
(
c
)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
...
...
c27873305.lua
View file @
f5f3c42e
...
@@ -21,7 +21,7 @@ function c27873305.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -21,7 +21,7 @@ function c27873305.condition(e,tp,eg,ep,ev,re,r,rp)
return
(
Duel
.
GetAttacker
()
==
c
or
Duel
.
GetAttackTarget
()
==
c
)
return
(
Duel
.
GetAttacker
()
==
c
or
Duel
.
GetAttackTarget
()
==
c
)
end
end
function
c27873305
.
thfilter
(
c
)
function
c27873305
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0xaf
)
or
c
:
IsSetCard
(
0xae
)
)
and
c
:
IsAbleToHand
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xaf
,
0xae
)
and
c
:
IsAbleToHand
()
end
end
function
c27873305
.
eqfilter
(
c
)
function
c27873305
.
eqfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToChangeControler
()
return
c
:
IsFaceup
()
and
c
:
IsAbleToChangeControler
()
...
...
c27970830.lua
View file @
f5f3c42e
...
@@ -64,7 +64,7 @@ function c27970830.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -64,7 +64,7 @@ function c27970830.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x3
,
2
,
REASON_COST
)
Duel
.
RemoveCounter
(
tp
,
1
,
0
,
0x3
,
2
,
REASON_COST
)
end
end
function
c27970830
.
filter1
(
c
)
function
c27970830
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x3d
)
or
c
:
IsSetCard
(
0x20
)
)
and
c
:
IsType
(
TYPE_EFFECT
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
,
0x20
)
and
c
:
IsType
(
TYPE_EFFECT
)
end
end
function
c27970830
.
tg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c27970830
.
tg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c27970830
.
filter1
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c27970830
.
filter1
(
chkc
)
end
...
...
c28039390.lua
View file @
f5f3c42e
...
@@ -41,7 +41,7 @@ function c28039390.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,7 +41,7 @@ function c28039390.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c28039390
.
tgfilter
(
c
)
function
c28039390
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0xa9
)
or
c
:
IsSetCard
(
0xad
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa9
,
0xad
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c28039390
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c28039390
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c28039390
.
tgfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c28039390
.
tgfilter
(
chkc
)
end
...
...
c28201945.lua
View file @
f5f3c42e
...
@@ -31,11 +31,11 @@ function c28201945.initial_effect(c)
...
@@ -31,11 +31,11 @@ function c28201945.initial_effect(c)
end
end
function
c28201945
.
efilter
(
e
,
te
)
function
c28201945
.
efilter
(
e
,
te
)
local
c
=
te
:
GetHandler
()
local
c
=
te
:
GetHandler
()
return
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
end
end
function
c28201945
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28201945
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
re
:
GetHandler
()
local
c
=
re
:
GetHandler
()
return
rp
==
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
rp
==
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
end
end
function
c28201945
.
filter
(
c
,
e
,
tp
,
ft
)
function
c28201945
.
filter
(
c
,
e
,
tp
,
ft
)
return
c
:
IsSetCard
(
0x108a
)
and
c
:
GetCode
()
~=
28201945
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsAbleToHand
()
or
(
ft
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
return
c
:
IsSetCard
(
0x108a
)
and
c
:
GetCode
()
~=
28201945
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsAbleToHand
()
or
(
ft
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
...
...
c28770951.lua
View file @
f5f3c42e
...
@@ -26,7 +26,7 @@ function c28770951.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c28770951.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c28770951
.
matfilter
(
c
)
function
c28770951
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsType
(
TYPE_XYZ
)
end
end
function
c28770951
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c28770951
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c28770951
.
matfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c28770951
.
matfilter
(
chkc
)
end
...
@@ -42,7 +42,7 @@ function c28770951.matop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,7 +42,7 @@ function c28770951.matop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c28770951
.
filter
(
c
,
e
)
function
c28770951
.
filter
(
c
,
e
)
return
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
c28770951
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c28770951
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c28770951
.
filter
(
chkc
,
e
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c28770951
.
filter
(
chkc
,
e
)
end
...
...
c29666221.lua
View file @
f5f3c42e
...
@@ -12,7 +12,7 @@ function c29666221.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c29666221.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c29666221
.
cfilter
(
c
)
function
c29666221
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0xfe
)
or
c
:
IsSetCard
(
0x11b
)
return
c
:
IsSetCard
(
0xfe
,
0x11b
)
end
end
function
c29666221
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c29666221
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c29666221
.
cfilter
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c29666221
.
cfilter
,
1
,
nil
)
end
...
...
c31111109.lua
View file @
f5f3c42e
...
@@ -23,7 +23,7 @@ function c31111109.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c31111109.initial_effect(c)
end
end
c31111109
.
material_setcode
=
0x8
c31111109
.
material_setcode
=
0x8
function
c31111109
.
ffilter
(
c
,
fc
)
function
c31111109
.
ffilter
(
c
,
fc
)
return
c
:
IsFusionSetCard
(
0x9
)
or
c
:
IsFusionSetCard
(
0x1f
)
or
c
:
IsFusionSetCard
(
0x8
)
return
c
:
IsFusionSetCard
(
0x9
,
0x1f
,
0x8
)
end
end
function
c31111109
.
ffilter1
(
c
,
fc
)
function
c31111109
.
ffilter1
(
c
,
fc
)
return
c
:
IsFusionSetCard
(
0x9
)
return
c
:
IsFusionSetCard
(
0x9
)
...
@@ -35,7 +35,7 @@ function c31111109.ffilter3(c,fc)
...
@@ -35,7 +35,7 @@ function c31111109.ffilter3(c,fc)
return
c
:
IsFusionSetCard
(
0x8
)
return
c
:
IsFusionSetCard
(
0x8
)
end
end
function
c31111109
.
filter
(
c
)
function
c31111109
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x9
)
or
c
:
IsSetCard
(
0x1f
)
or
c
:
IsSetCard
(
0x8
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x9
,
0x1f
,
0x8
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
and
c
:
IsAbleToRemove
()
and
not
c
:
IsForbidden
()
and
c
:
IsAbleToRemove
()
end
end
function
c31111109
.
copytg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c31111109
.
copytg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c32360466.lua
View file @
f5f3c42e
...
@@ -14,7 +14,7 @@ function c32360466.filter1(c)
...
@@ -14,7 +14,7 @@ function c32360466.filter1(c)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
end
end
function
c32360466
.
filter2
(
c
)
function
c32360466
.
filter2
(
c
)
return
c
:
IsSetCard
(
0x10cf
)
or
c
:
IsSetCard
(
0xbd
)
return
c
:
IsSetCard
(
0x10cf
,
0xbd
)
end
end
function
c32360466
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c32360466
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
c32360466
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c32360466
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
...
...
c3356494.lua
View file @
f5f3c42e
...
@@ -38,7 +38,7 @@ function c3356494.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,7 +38,7 @@ function c3356494.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
end
function
c3356494
.
thfilter
(
c
)
function
c3356494
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c3356494
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c3356494
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c3356494
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c3356494
.
thfilter
(
chkc
)
end
...
...
c34838437.lua
View file @
f5f3c42e
...
@@ -29,7 +29,7 @@ function c34838437.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function c34838437.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c34838437
.
spfilter
(
c
,
e
,
tp
)
function
c34838437
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c34838437
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c34838437
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c35950025.lua
View file @
f5f3c42e
...
@@ -22,7 +22,7 @@ function c35950025.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c35950025.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c35950025
.
cfilter
(
c
)
function
c35950025
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x55
,
0x7b
)
end
end
function
c35950025
.
ntcon
(
e
,
c
,
minc
)
function
c35950025
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
...
...
c36693940.lua
View file @
f5f3c42e
...
@@ -11,7 +11,7 @@ function c36693940.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c36693940.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c36693940
.
filter
(
c
,
e
,
tp
)
function
c36693940
.
filter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0xa9
)
or
c
:
IsSetCard
(
0xc3
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xa9
,
0xc3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c36693940
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c36693940
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c36693940
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c36693940
.
filter
(
chkc
,
e
,
tp
)
end
...
...
c38695361.lua
View file @
f5f3c42e
...
@@ -36,7 +36,7 @@ function c38695361.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -36,7 +36,7 @@ function c38695361.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
c38695361
.
atkfilter
(
c
)
function
c38695361
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x10cf
)
or
c
:
IsSetCard
(
0xbd
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10cf
,
0xbd
)
end
end
function
c38695361
.
atktg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c38695361
.
atktg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c38695361
.
atkfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c38695361
.
atkfilter
(
chkc
)
end
...
...
c42160203.lua
View file @
f5f3c42e
...
@@ -70,7 +70,7 @@ function c42160203.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -70,7 +70,7 @@ function c42160203.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_COST
)
Duel
.
SendtoDeck
(
c
,
nil
,
0
,
REASON_COST
)
end
end
function
c42160203
.
spfilter
(
c
,
e
,
tp
)
function
c42160203
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x10f8
)
or
c
:
IsSetCard
(
0x20f8
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10f8
,
0x20f8
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c42160203
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c42160203
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c42925441.lua
View file @
f5f3c42e
...
@@ -62,14 +62,14 @@ function c42925441.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -62,14 +62,14 @@ function c42925441.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RegisterFlagEffect
(
42925441
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
42925441
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c42925441
.
costfilter1
(
c
,
e
,
tp
)
function
c42925441
.
costfilter1
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x55
,
0x7b
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c42925441
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetOriginalCode
())
and
Duel
.
IsExistingMatchingCard
(
c42925441
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetOriginalCode
())
end
end
function
c42925441
.
spfilter1
(
c
,
e
,
tp
,
code
)
function
c42925441
.
spfilter1
(
c
,
e
,
tp
,
code
)
return
c
:
IsSetCard
(
0x55
)
and
c
:
GetOriginalCode
()
~=
code
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x55
)
and
c
:
GetOriginalCode
()
~=
code
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c42925441
.
costfilter2
(
c
)
function
c42925441
.
costfilter2
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c42925441
.
thfilter
(
c
)
function
c42925441
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x55
)
and
not
c
:
IsCode
(
42925441
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x55
)
and
not
c
:
IsCode
(
42925441
)
and
c
:
IsAbleToHand
()
...
...
c43147039.lua
View file @
f5f3c42e
...
@@ -36,7 +36,7 @@ function c43147039.initial_effect(c)
...
@@ -36,7 +36,7 @@ function c43147039.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c43147039
.
sprfilter
(
c
)
function
c43147039
.
sprfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x55
,
0x7b
)
end
end
function
c43147039
.
sprcon
(
e
,
c
)
function
c43147039
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
...
...
c45002991.lua
View file @
f5f3c42e
...
@@ -45,7 +45,7 @@ function c45002991.antg(e,c)
...
@@ -45,7 +45,7 @@ function c45002991.antg(e,c)
return
e
:
GetHandler
():
GetLinkedGroup
():
IsContains
(
c
)
return
e
:
GetHandler
():
GetLinkedGroup
():
IsContains
(
c
)
end
end
function
c45002991
.
cfilter
(
c
,
g
)
function
c45002991
.
cfilter
(
c
,
g
)
return
(
c
:
IsSetCard
(
0xfe
)
or
c
:
IsSetCard
(
0x116
)
)
and
g
:
IsContains
(
c
)
return
c
:
IsSetCard
(
0xfe
,
0x116
)
and
g
:
IsContains
(
c
)
end
end
function
c45002991
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c45002991
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
...
...
c45215225.lua
View file @
f5f3c42e
...
@@ -25,7 +25,7 @@ function c45215225.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c45215225.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c45215225
.
filter
(
c
,
e
,
tp
)
function
c45215225
.
filter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0xa9
)
or
c
:
IsSetCard
(
0xc3
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xa9
,
0xc3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c45215225
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c45215225
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c45215225
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c45215225
.
filter
(
chkc
,
e
,
tp
)
end
...
...
c45803070.lua
View file @
f5f3c42e
...
@@ -31,7 +31,7 @@ function c45803070.initial_effect(c)
...
@@ -31,7 +31,7 @@ function c45803070.initial_effect(c)
end
end
function
c45803070
.
efilter
(
e
,
te
)
function
c45803070
.
efilter
(
e
,
te
)
local
c
=
te
:
GetHandler
()
local
c
=
te
:
GetHandler
()
return
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
end
end
function
c45803070
.
filter
(
c
,
e
,
tp
)
function
c45803070
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x108a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x108a
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
@@ -51,7 +51,7 @@ function c45803070.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c45803070.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c45803070
.
setfilter
(
c
)
function
c45803070
.
setfilter
(
c
)
return
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
and
c
:
IsSSetable
()
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
and
c
:
IsSSetable
()
end
end
function
c45803070
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c45803070
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c45803070
.
setfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c45803070
.
setfilter
(
chkc
)
end
...
...
c46425662.lua
View file @
f5f3c42e
...
@@ -48,7 +48,7 @@ function c46425662.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,7 +48,7 @@ function c46425662.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
end
end
function
c46425662
.
thfilter
(
c
)
function
c46425662
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0x400d
)
or
c
:
IsSetCard
(
0x113
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
46425662
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x400d
,
0x113
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
46425662
)
and
c
:
IsAbleToHand
()
end
end
function
c46425662
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c46425662
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c46425662
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c46425662
.
thfilter
(
chkc
)
end
...
...
c464362.lua
View file @
f5f3c42e
...
@@ -40,7 +40,7 @@ function c464362.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,7 @@ function c464362.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
function
c464362
.
atkfilter
(
c
)
function
c464362
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0xa9
)
or
c
:
IsSetCard
(
0xad
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa9
,
0xad
)
end
end
function
c464362
.
atkval
(
e
,
c
)
function
c464362
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
c464362
.
atkfilter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
nil
)
*
300
return
Duel
.
GetMatchingGroupCount
(
c464362
.
atkfilter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
nil
)
*
300
...
...
c46796664.lua
View file @
f5f3c42e
...
@@ -48,7 +48,7 @@ function c46796664.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c46796664.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
function
c46796664
.
tgfilter
(
c
)
function
c46796664
.
tgfilter
(
c
)
return
(
c
:
IsSetCard
(
0xaf
)
or
c
:
IsSetCard
(
0xae
)
)
and
not
c
:
IsCode
(
46796664
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0xaf
,
0xae
)
and
not
c
:
IsCode
(
46796664
)
and
c
:
IsAbleToGrave
()
end
end
function
c46796664
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46796664
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c46796664
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c46796664
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c47436247.lua
View file @
f5f3c42e
...
@@ -43,7 +43,7 @@ function c47436247.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -43,7 +43,7 @@ function c47436247.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c47436247
.
filter
(
c
,
ct
,
e
,
tp
)
function
c47436247
.
filter
(
c
,
ct
,
e
,
tp
)
return
c
:
IsLevelBelow
(
ct
)
and
(
c
:
IsSetCard
(
0x3d
)
or
c
:
IsSetCard
(
0x20
)
)
return
c
:
IsLevelBelow
(
ct
)
and
c
:
IsSetCard
(
0x3d
,
0x20
)
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c47436247
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47436247
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c47660516.lua
View file @
f5f3c42e
...
@@ -19,7 +19,7 @@ function c47660516.filter1(c,e,tp)
...
@@ -19,7 +19,7 @@ function c47660516.filter1(c,e,tp)
end
end
function
c47660516
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
rc
,
code
)
function
c47660516
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
rc
,
code
)
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
return
c
:
IsRank
(
rk
)
and
c
:
IsRace
(
rc
)
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
)
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
return
c
:
IsRank
(
rk
)
and
c
:
IsRace
(
rc
)
and
c
:
IsSetCard
(
0x1048
,
0x1073
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c47660516
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c47660516
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c55051920.lua
View file @
f5f3c42e
...
@@ -32,7 +32,7 @@ function c55051920.costfilter(c,tp)
...
@@ -32,7 +32,7 @@ function c55051920.costfilter(c,tp)
and
Duel
.
IsExistingTarget
(
c55051920
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsExistingTarget
(
c55051920
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
end
end
function
c55051920
.
tgfilter
(
c
)
function
c55051920
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0xfe
)
or
c
:
IsSetCard
(
0x11b
)
)
and
not
c
:
IsCode
(
55051920
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xfe
,
0x11b
)
and
not
c
:
IsCode
(
55051920
)
end
end
function
c55051920
.
tgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55051920
.
tgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c55051920
.
costfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c55051920
.
costfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
...
@@ -59,7 +59,7 @@ function c55051920.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +59,7 @@ function c55051920.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c55051920
.
repfilter
(
c
,
tp
)
function
c55051920
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0xfe
)
or
c
:
IsSetCard
(
0x11b
)
)
and
c
:
IsControler
(
tp
)
and
c
:
IsOnField
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xfe
,
0x11b
)
and
c
:
IsControler
(
tp
)
and
c
:
IsOnField
()
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
end
function
c55051920
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55051920
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c55154048.lua
View file @
f5f3c42e
...
@@ -35,10 +35,10 @@ function c55154048.initial_effect(c)
...
@@ -35,10 +35,10 @@ function c55154048.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c55154048
.
eqlimit
(
e
,
c
)
function
c55154048
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x42
)
or
c
:
IsSetCard
(
0x4b
)
return
c
:
IsSetCard
(
0x42
,
0x4b
)
end
end
function
c55154048
.
filter
(
c
)
function
c55154048
.
filter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x42
)
or
c
:
IsSetCard
(
0x4b
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x42
,
0x4b
)
end
end
function
c55154048
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c55154048
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c55154048
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c55154048
.
filter
(
chkc
)
end
...
...
c55312487.lua
View file @
f5f3c42e
...
@@ -21,11 +21,11 @@ function c55312487.initial_effect(c)
...
@@ -21,11 +21,11 @@ function c55312487.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c55312487
.
spfilter1
(
c
,
e
,
tp
)
function
c55312487
.
spfilter1
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0xfe
)
or
c
:
IsSetCard
(
0x116
)
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
return
c
:
IsSetCard
(
0xfe
,
0x116
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c55312487
.
spfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetOriginalCode
())
and
Duel
.
IsExistingMatchingCard
(
c55312487
.
spfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetOriginalCode
())
end
end
function
c55312487
.
spfilter2
(
c
,
e
,
tp
,
code
)
function
c55312487
.
spfilter2
(
c
,
e
,
tp
,
code
)
return
(
c
:
IsSetCard
(
0xfe
)
or
c
:
IsSetCard
(
0x116
)
)
and
c
:
GetOriginalCode
()
~=
code
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xfe
,
0x116
)
and
c
:
GetOriginalCode
()
~=
code
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c55312487
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55312487
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
c55428242.lua
View file @
f5f3c42e
...
@@ -40,10 +40,10 @@ function c55428242.initial_effect(c)
...
@@ -40,10 +40,10 @@ function c55428242.initial_effect(c)
end
end
function
c55428242
.
efilter
(
e
,
te
)
function
c55428242
.
efilter
(
e
,
te
)
local
c
=
te
:
GetHandler
()
local
c
=
te
:
GetHandler
()
return
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
end
end
function
c55428242
.
etarget
(
e
,
c
)
function
c55428242
.
etarget
(
e
,
c
)
return
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
end
end
function
c55428242
.
distarget
(
e
,
c
)
function
c55428242
.
distarget
(
e
,
c
)
return
c
:
GetType
()
==
TYPE_TRAP
or
c
:
GetType
()
==
TYPE_TRAP
+
TYPE_EQUIP
return
c
:
GetType
()
==
TYPE_TRAP
or
c
:
GetType
()
==
TYPE_TRAP
+
TYPE_EQUIP
...
...
c56655675.lua
View file @
f5f3c42e
...
@@ -23,7 +23,7 @@ function c56655675.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c56655675.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c56655675
.
cfilter
(
c
)
function
c56655675
.
cfilter
(
c
)
return
(
c
:
IsFusionSetCard
(
0x40b5
)
or
c
:
IsFusionSetCard
(
0x10b5
)
or
c
:
IsFusionSetCard
(
0x20b5
)
)
return
c
:
IsFusionSetCard
(
0x40b5
,
0x10b5
,
0x20b5
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsAbleToRemoveAsCost
()
end
end
function
c56655675
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56655675
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c56675280.lua
View file @
f5f3c42e
...
@@ -22,7 +22,7 @@ function c56675280.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c56675280.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c56675280
.
scfilter
(
c
)
function
c56675280
.
scfilter
(
c
)
return
(
c
:
IsSetCard
(
0x98
)
or
c
:
IsSetCard
(
0x99
)
or
c
:
IsSetCard
(
0x9f
)
)
and
not
c
:
IsCode
(
56675280
)
return
c
:
IsSetCard
(
0x98
,
0x99
,
0x9f
)
and
not
c
:
IsCode
(
56675280
)
end
end
function
c56675280
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56675280
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c56675280
.
scfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c56675280
.
scfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
...
...
c57690191.lua
View file @
f5f3c42e
...
@@ -65,7 +65,7 @@ function c57690191.splimit(e,c,sump,sumtype,sumpos,targetp,se)
...
@@ -65,7 +65,7 @@ function c57690191.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return
not
c
:
IsSetCard
(
0x107a
)
return
not
c
:
IsSetCard
(
0x107a
)
end
end
function
c57690191
.
drfilter
(
c
)
function
c57690191
.
drfilter
(
c
)
return
(
c
:
IsSetCard
(
0x107a
)
or
c
:
IsSetCard
(
0x207a
)
)
and
c
:
IsAbleToDeck
()
return
c
:
IsSetCard
(
0x107a
,
0x207a
)
and
c
:
IsAbleToDeck
()
end
end
function
c57690191
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c57690191
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c57690191
.
drfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c57690191
.
drfilter
(
chkc
)
end
...
...
c57777714.lua
View file @
f5f3c42e
...
@@ -27,14 +27,14 @@ function c57777714.initial_effect(c)
...
@@ -27,14 +27,14 @@ function c57777714.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c57777714
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c57777714
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0xb5
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0xb5
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c57777714
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c57777714
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
end
end
function
c57777714
.
filter
(
c
,
e
,
tp
)
function
c57777714
.
filter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0xb5
)
or
c
:
IsSetCard
(
0xc4
)
)
and
not
c
:
IsCode
(
57777714
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xb5
,
0xc4
)
and
not
c
:
IsCode
(
57777714
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c57777714
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c57777714
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c57777714
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c57777714
.
filter
(
chkc
,
e
,
tp
)
end
...
...
c58016954.lua
View file @
f5f3c42e
...
@@ -28,7 +28,7 @@ function c58016954.initial_effect(c)
...
@@ -28,7 +28,7 @@ function c58016954.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c58016954
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c58016954
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0x9d
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0x9d
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c58016954
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c58016954
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c58165765.lua
View file @
f5f3c42e
...
@@ -20,7 +20,7 @@ function c58165765.initial_effect(c)
...
@@ -20,7 +20,7 @@ function c58165765.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c58165765
.
cfilter
(
c
)
function
c58165765
.
cfilter
(
c
)
return
(
c
:
IsSetCard
(
0x2b
)
or
c
:
IsSetCard
(
0x61
)
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x2b
,
0x61
)
and
c
:
IsAbleToRemoveAsCost
()
end
end
function
c58165765
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58165765
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58165765
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58165765
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
c58468105.lua
View file @
f5f3c42e
...
@@ -42,7 +42,7 @@ function c58468105.tgcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,7 +42,7 @@ function c58468105.tgcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
and
aux
.
bdocon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
and
aux
.
bdocon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
function
c58468105
.
tgfilter
(
c
)
function
c58468105
.
tgfilter
(
c
)
return
(
c
:
IsSetCard
(
0xc3
)
or
c
:
IsSetCard
(
0xa9
)
or
c
:
IsSetCard
(
0xad
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0xc3
,
0xa9
,
0xad
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
end
end
function
c58468105
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58468105
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
...
...
c58504745.lua
View file @
f5f3c42e
...
@@ -21,7 +21,7 @@ function c58504745.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -21,7 +21,7 @@ function c58504745.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_COST
)
end
end
function
c58504745
.
filter1
(
c
)
function
c58504745
.
filter1
(
c
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
(
c
:
IsSetCard
(
0x79
)
or
c
:
IsSetCard
(
0x7c
)
)
and
c
:
IsAbleToDeck
()
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x79
,
0x7c
)
and
c
:
IsAbleToDeck
()
end
end
function
c58504745
.
filter2
(
c
)
function
c58504745
.
filter2
(
c
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsAbleToDeck
()
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsAbleToDeck
()
...
...
c58990362.lua
View file @
f5f3c42e
...
@@ -28,7 +28,7 @@ function c58990362.initial_effect(c)
...
@@ -28,7 +28,7 @@ function c58990362.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c58990362
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c58990362
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0x9e
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0x9e
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c58990362
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c58990362
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -39,7 +39,7 @@ function c58990362.condition2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +39,7 @@ function c58990362.condition2(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
end
end
function
c58990362
.
thfilter
(
c
)
function
c58990362
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0x9e
)
or
c
:
IsSetCard
(
0xc4
)
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x9e
,
0xc4
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
function
c58990362
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58990362
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58990362
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58990362
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c60222582.lua
View file @
f5f3c42e
...
@@ -12,13 +12,13 @@ function c60222582.initial_effect(c)
...
@@ -12,13 +12,13 @@ function c60222582.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c60222582
.
cfilter
(
c
)
function
c60222582
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
5
)
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
5
)
and
c
:
IsSetCard
(
0x55
,
0x7b
)
end
end
function
c60222582
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60222582
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c60222582
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c60222582
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c60222582
.
spfilter
(
c
,
e
,
tp
)
function
c60222582
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelAbove
(
5
)
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsLevelAbove
(
5
)
and
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c60222582
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60222582
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c62256492.lua
View file @
f5f3c42e
...
@@ -56,7 +56,7 @@ function c62256492.atkval(e,c)
...
@@ -56,7 +56,7 @@ function c62256492.atkval(e,c)
return
ct
*
300
return
ct
*
300
end
end
function
c62256492
.
target
(
e
,
c
)
function
c62256492
.
target
(
e
,
c
)
return
c
:
IsSetCard
(
0xbf
)
or
c
:
IsSetCard
(
0xc0
)
return
c
:
IsSetCard
(
0xbf
,
0xc0
)
end
end
function
c62256492
.
cfilter
(
c
,
tp
)
function
c62256492
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
GetBaseAttack
()
==
1850
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
GetBaseAttack
()
==
1850
...
...
c62834295.lua
View file @
f5f3c42e
...
@@ -29,7 +29,7 @@ function c62834295.tgcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,7 +29,7 @@ function c62834295.tgcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c62834295
.
cfilter
,
1
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
c62834295
.
cfilter
,
1
,
nil
,
1
-
tp
)
end
end
function
c62834295
.
tgfilter
(
c
)
function
c62834295
.
tgfilter
(
c
)
return
(
c
:
IsSetCard
(
0xfe
)
or
c
:
IsSetCard
(
0x11b
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsAbleToGrave
()
or
c
:
IsAbleToRemove
())
return
c
:
IsSetCard
(
0xfe
,
0x11b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsAbleToGrave
()
or
c
:
IsAbleToRemove
())
end
end
function
c62834295
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c62834295
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c62834295
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c62834295
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c63956833.lua
View file @
f5f3c42e
...
@@ -15,7 +15,7 @@ function c63956833.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c63956833.initial_effect(c)
Duel
.
AddCustomActivityCounter
(
63956833
,
ACTIVITY_SPSUMMON
,
c63956833
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
63956833
,
ACTIVITY_SPSUMMON
,
c63956833
.
counterfilter
)
end
end
function
c63956833
.
counterfilter
(
c
)
function
c63956833
.
counterfilter
(
c
)
return
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
return
c
:
IsSetCard
(
0x55
,
0x7b
)
end
end
function
c63956833
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c63956833
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
...
@@ -35,7 +35,7 @@ function c63956833.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -35,7 +35,7 @@ function c63956833.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c63956833
.
splimit
(
e
,
c
)
function
c63956833
.
splimit
(
e
,
c
)
return
not
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
return
not
c
:
IsSetCard
(
0x55
,
0x7b
)
end
end
function
c63956833
.
filter1
(
c
,
e
,
tp
)
function
c63956833
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x55
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x55
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c63992027.lua
View file @
f5f3c42e
...
@@ -18,7 +18,7 @@ function c63992027.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,7 +18,7 @@ function c63992027.condition(e,tp,eg,ep,ev,re,r,rp)
return
tg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
return
tg
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
end
end
function
c63992027
.
filter
(
c
,
e
,
tp
)
function
c63992027
.
filter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
(
c
:
IsSetCard
(
0x107b
)
or
c
:
IsSetCard
(
0xe5
)
)
and
c
:
GetOverlayCount
()
>
0
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x107b
,
0xe5
)
and
c
:
GetOverlayCount
()
>
0
and
(
not
e
or
Duel
.
IsExistingMatchingCard
(
c63992027
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
))
and
(
not
e
or
Duel
.
IsExistingMatchingCard
(
c63992027
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
))
end
end
function
c63992027
.
spfilter
(
c
,
e
,
tp
,
ec
)
function
c63992027
.
spfilter
(
c
,
e
,
tp
,
ec
)
...
...
c64283880.lua
View file @
f5f3c42e
...
@@ -13,7 +13,7 @@ end
...
@@ -13,7 +13,7 @@ end
function
c64283880
.
filter
(
c
,
e
,
tp
)
function
c64283880
.
filter
(
c
,
e
,
tp
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetPreviousControler
()
==
tp
and
(
c
:
IsSetCard
(
0x54
)
or
c
:
IsSetCard
(
0x82
)
or
c
:
IsSetCard
(
0x59
)
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsSetCard
(
0x54
,
0x82
,
0x59
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c64283880
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c64283880
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
@@ -26,7 +26,7 @@ function c64283880.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -26,7 +26,7 @@ function c64283880.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c64283880
.
spfilter
(
c
,
e
,
tp
)
function
c64283880
.
spfilter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0x54
)
or
c
:
IsSetCard
(
0x82
)
or
c
:
IsSetCard
(
0x59
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x54
,
0x82
,
0x59
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
function
c64283880
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64283880
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c64655485.lua
View file @
f5f3c42e
...
@@ -36,7 +36,7 @@ function c64655485.ffilter(c)
...
@@ -36,7 +36,7 @@ function c64655485.ffilter(c)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsFusionType
(
TYPE_EFFECT
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsFusionType
(
TYPE_EFFECT
)
end
end
function
c64655485
.
atkfilter
(
c
)
function
c64655485
.
atkfilter
(
c
)
return
(
c
:
IsSetCard
(
0x8
)
or
c
:
IsSetCard
(
0x1f
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x8
,
0x1f
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c64655485
.
atkval
(
e
,
c
)
function
c64655485
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
c64655485
.
atkfilter
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
)
*
100
return
Duel
.
GetMatchingGroupCount
(
c64655485
.
atkfilter
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
)
*
100
...
...
c6511113.lua
View file @
f5f3c42e
...
@@ -72,7 +72,7 @@ function c6511113.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -72,7 +72,7 @@ function c6511113.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RegisterFlagEffect
(
6511113
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
6511113
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c6511113
.
filter1
(
c
)
function
c6511113
.
filter1
(
c
)
return
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
and
c
:
IsAbleToGraveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
end
end
function
c6511113
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6511113
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -104,7 +104,7 @@ function c6511113.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -104,7 +104,7 @@ function c6511113.operation(e,tp,eg,ep,ev,re,r,rp)
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
function
c6511113
.
filter2
(
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6511113
.
filter2
(
c
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
and
c
:
IsAbleToGraveAsCost
()
then
if
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
and
c
:
IsAbleToGraveAsCost
()
then
if
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
then
return
true
end
if
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
then
return
true
end
local
te
=
c
:
GetActivateEffect
()
local
te
=
c
:
GetActivateEffect
()
if
te
:
GetCode
()
~=
EVENT_CHAINING
then
return
false
end
if
te
:
GetCode
()
~=
EVENT_CHAINING
then
return
false
end
...
...
c6595475.lua
View file @
f5f3c42e
...
@@ -16,7 +16,7 @@ function c6595475.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -16,7 +16,7 @@ function c6595475.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsAbleToGraveAsCost
,
1
,
1
,
REASON_COST
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsAbleToGraveAsCost
,
1
,
1
,
REASON_COST
)
end
end
function
c6595475
.
filter
(
c
)
function
c6595475
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsSetCard
(
0x54
)
or
c
:
IsSetCard
(
0x59
)
or
c
:
IsSetCard
(
0x82
)
or
c
:
IsSetCard
(
0x8f
)
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x54
,
0x59
,
0x82
,
0x8f
)
and
c
:
IsAbleToHand
()
end
end
function
c6595475
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6595475
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c6595475
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c6595475
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c68812773.lua
View file @
f5f3c42e
...
@@ -49,7 +49,7 @@ function c68812773.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,7 +49,7 @@ function c68812773.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c68812773
.
spfilter
(
c
,
e
,
tp
)
function
c68812773
.
spfilter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0x7b
)
or
c
:
IsSetCard
(
0x55
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x7b
,
0x55
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c68812773
.
cfilter
(
c
,
ft
,
tp
)
function
c68812773
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsRace
(
RACE_MACHINE
)
return
c
:
IsRace
(
RACE_MACHINE
)
...
...
c70083592.lua
View file @
f5f3c42e
...
@@ -12,7 +12,7 @@ function c70083592.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c70083592.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c70083592
.
filter
(
c
,
e
,
tp
)
function
c70083592
.
filter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0xa9
)
or
c
:
IsSetCard
(
0xad
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xa9
,
0xad
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c70083592
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c70083592
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c70083592
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c70083592
.
filter
(
chkc
,
e
,
tp
)
end
...
...
c71071546.lua
View file @
f5f3c42e
...
@@ -78,7 +78,7 @@ function c71071546.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -78,7 +78,7 @@ function c71071546.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c71071546
.
filter
(
c
)
function
c71071546
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c71071546
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c71071546
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c71071546
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c71071546
.
filter
(
chkc
)
end
...
...
c71612253.lua
View file @
f5f3c42e
...
@@ -77,7 +77,7 @@ function c71612253.tgcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,7 +77,7 @@ function c71612253.tgcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c71612253
.
tgfilter
(
c
)
function
c71612253
.
tgfilter
(
c
)
return
(
c
:
IsSetCard
(
0xaf
)
or
c
:
IsSetCard
(
0xae
)
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0xaf
,
0xae
)
and
c
:
IsAbleToGrave
()
end
end
function
c71612253
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c71612253
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c71612253
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c71612253
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c71797713.lua
View file @
f5f3c42e
...
@@ -102,5 +102,5 @@ function c71797713.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -102,5 +102,5 @@ function c71797713.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c71797713
.
immtg
(
e
,
c
)
function
c71797713
.
immtg
(
e
,
c
)
return
c
:
IsSetCard
(
0x400d
)
or
c
:
IsSetCard
(
0x113
)
return
c
:
IsSetCard
(
0x400d
,
0x113
)
end
end
c72181263.lua
View file @
f5f3c42e
...
@@ -37,7 +37,7 @@ function c72181263.desfilter1(c,tp,ec)
...
@@ -37,7 +37,7 @@ function c72181263.desfilter1(c,tp,ec)
and
Duel
.
IsExistingTarget
(
c72181263
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
,
ec
)
and
Duel
.
IsExistingTarget
(
c72181263
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
,
ec
)
end
end
function
c72181263
.
desfilter2
(
c
,
ec
)
function
c72181263
.
desfilter2
(
c
,
ec
)
return
c
~=
ec
and
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0xaf
)
or
c
:
IsSetCard
(
0xae
)
)
return
c
~=
ec
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xaf
,
0xae
)
end
end
function
c72181263
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c72181263
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
...
...
c72714461.lua
View file @
f5f3c42e
...
@@ -23,7 +23,7 @@ function c72714461.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c72714461.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c72714461
.
cfilter
(
c
)
function
c72714461
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x98
)
or
c
:
IsSetCard
(
0x9f
)
return
c
:
IsSetCard
(
0x98
,
0x9f
)
end
end
function
c72714461
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72714461
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c72714461
.
cfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c72714461
.
cfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
...
...
c72819261.lua
View file @
f5f3c42e
...
@@ -48,7 +48,7 @@ function c72819261.sgcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,7 +48,7 @@ function c72819261.sgcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
end
end
function
c72819261
.
filter
(
c
)
function
c72819261
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x400d
)
or
c
:
IsSetCard
(
0x113
)
)
and
not
c
:
IsCode
(
72819261
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x400d
,
0x113
)
and
not
c
:
IsCode
(
72819261
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
end
end
function
c72819261
.
sgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72819261
.
sgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c72819261
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c72819261
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c73511233.lua
View file @
f5f3c42e
...
@@ -39,7 +39,7 @@ function c73511233.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +39,7 @@ function c73511233.thcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
and
eg
:
IsExists
(
c73511233
.
thcfilter
,
1
,
nil
,
tp
)
return
eg
and
eg
:
IsExists
(
c73511233
.
thcfilter
,
1
,
nil
,
tp
)
end
end
function
c73511233
.
thfilter
(
c
)
function
c73511233
.
thfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
(
c
:
IsSetCard
(
0x98
)
or
c
:
IsSetCard
(
0x99
)
or
c
:
IsSetCard
(
0x9f
)
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x98
,
0x99
,
0x9f
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAbleToHand
()
end
end
function
c73511233
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c73511233
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c73639099.lua
View file @
f5f3c42e
...
@@ -84,7 +84,7 @@ function c73639099.setcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -84,7 +84,7 @@ function c73639099.setcon(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rc
~=
c
and
rc
:
IsSetCard
(
0x108a
)
and
rc
:
IsControler
(
tp
)
and
c
:
GetFlagEffect
(
1
)
>
0
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rc
~=
c
and
rc
:
IsSetCard
(
0x108a
)
and
rc
:
IsControler
(
tp
)
and
c
:
GetFlagEffect
(
1
)
>
0
end
end
function
c73639099
.
setfilter
(
c
)
function
c73639099
.
setfilter
(
c
)
return
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
and
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x4c
,
0x89
)
and
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSSetable
()
end
end
function
c73639099
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c73639099
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c73639099
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c73639099
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c74605254.lua
View file @
f5f3c42e
...
@@ -78,7 +78,7 @@ function c74605254.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -78,7 +78,7 @@ function c74605254.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
end
function
c74605254
.
thfilter
(
c
)
function
c74605254
.
thfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0xae
)
or
c
:
IsSetCard
(
0xaf
)
)
and
c
:
IsAbleToHand
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xae
,
0xaf
)
and
c
:
IsAbleToHand
()
end
end
function
c74605254
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c74605254
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
c74605254
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
c74605254
.
thfilter
(
chkc
)
end
...
...
c76794549.lua
View file @
f5f3c42e
...
@@ -121,7 +121,7 @@ function c76794549.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -121,7 +121,7 @@ function c76794549.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c76794549
.
cfilter
(
c
)
function
c76794549
.
cfilter
(
c
)
return
(
c
:
IsSetCard
(
0x10f2
)
or
c
:
IsSetCard
(
0x2073
)
or
c
:
IsSetCard
(
0x2017
)
or
c
:
IsSetCard
(
0x1046
)
)
return
c
:
IsSetCard
(
0x10f2
,
0x2073
,
0x2017
,
0x1046
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
(
not
c
:
IsLocation
(
LOCATION_MZONE
)
or
c
:
IsFaceup
())
and
(
not
c
:
IsLocation
(
LOCATION_MZONE
)
or
c
:
IsFaceup
())
end
end
...
...
c77522571.lua
View file @
f5f3c42e
...
@@ -36,7 +36,7 @@ function c77522571.initial_effect(c)
...
@@ -36,7 +36,7 @@ function c77522571.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c77522571
.
costfilter1
(
c
,
e
,
tp
)
function
c77522571
.
costfilter1
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
(
c
:
IsSetCard
(
0xa9
)
or
c
:
IsSetCard
(
0xad
)
or
c
:
IsSetCard
(
0xc3
)
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0xa9
,
0xad
,
0xc3
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c77522571
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetLevel
(),
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
c77522571
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetLevel
(),
c
:
GetCode
())
end
end
...
@@ -66,7 +66,7 @@ function c77522571.spop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +66,7 @@ function c77522571.spop1(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c77522571
.
spfilter2
(
c
,
e
,
tp
)
function
c77522571
.
spfilter2
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0xa9
)
or
c
:
IsSetCard
(
0xad
)
or
c
:
IsSetCard
(
0xc3
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xa9
,
0xad
,
0xc3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c77522571
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c77522571
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c7799906.lua
View file @
f5f3c42e
...
@@ -73,7 +73,7 @@ function c7799906.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,7 +73,7 @@ function c7799906.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c7799906
.
exfilter
(
c
)
function
c7799906
.
exfilter
(
c
)
return
c
:
IsFacedown
()
or
not
(
c
:
IsSetCard
(
0x9f
)
or
(
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x98
))
or
c
:
IsSetCard
(
0x99
))
return
c
:
IsFacedown
()
or
not
(
c
:
IsSetCard
(
0x9f
,
0x99
)
or
(
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsSetCard
(
0x98
)
))
end
end
function
c7799906
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7799906
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c78348934.lua
View file @
f5f3c42e
...
@@ -33,7 +33,7 @@ function c78348934.filter2(c,rc)
...
@@ -33,7 +33,7 @@ function c78348934.filter2(c,rc)
return
c
:
GetRace
()
==
rc
and
c
:
IsAbleToRemove
()
return
c
:
GetRace
()
==
rc
and
c
:
IsAbleToRemove
()
end
end
function
c78348934
.
filter3
(
c
)
function
c78348934
.
filter3
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0xd6
)
or
c
:
IsSetCard
(
0xd7
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xd6
,
0xd7
)
end
end
function
c78348934
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c78348934
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c78348934
.
filter1
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c78348934
.
filter1
(
chkc
)
end
...
...
c79531196.lua
View file @
f5f3c42e
...
@@ -21,7 +21,7 @@ function c79531196.initial_effect(c)
...
@@ -21,7 +21,7 @@ function c79531196.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c79531196
.
filter
(
c
)
function
c79531196
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x1047
)
or
c
:
IsSetCard
(
0x9b
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x1047
,
0x9b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
end
end
function
c79531196
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c79531196
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c79531196
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c79531196
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
nil
)
end
...
...
c79777187.lua
View file @
f5f3c42e
...
@@ -25,7 +25,7 @@ function c79777187.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c79777187.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c79777187
.
target
(
e
,
c
)
function
c79777187
.
target
(
e
,
c
)
return
c
:
IsSetCard
(
0xc6
)
or
c
:
IsSetCard
(
0x9f
)
return
c
:
IsSetCard
(
0xc6
,
0x9f
)
end
end
function
c79777187
.
indct
(
e
,
re
,
r
,
rp
)
function
c79777187
.
indct
(
e
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
then
if
bit
.
band
(
r
,
REASON_BATTLE
+
REASON_EFFECT
)
~=
0
then
...
...
c80889750.lua
View file @
f5f3c42e
...
@@ -34,7 +34,7 @@ function c80889750.mfilter1(c)
...
@@ -34,7 +34,7 @@ function c80889750.mfilter1(c)
return
c
:
IsFusionSetCard
(
0xad
)
and
c
:
IsFusionType
(
TYPE_FUSION
)
return
c
:
IsFusionSetCard
(
0xad
)
and
c
:
IsFusionType
(
TYPE_FUSION
)
end
end
function
c80889750
.
mfilter2
(
c
)
function
c80889750
.
mfilter2
(
c
)
return
c
:
IsFusionSetCard
(
0xa9
)
or
c
:
IsFusionSetCard
(
0xc3
)
return
c
:
IsFusionSetCard
(
0xa9
,
0xc3
)
end
end
function
c80889750
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c80889750
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_FUSION
)
...
...
c8165596.lua
View file @
f5f3c42e
...
@@ -69,7 +69,7 @@ function c8165596.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +69,7 @@ function c8165596.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
end
end
function
c8165596
.
filter
(
c
)
function
c8165596
.
filter
(
c
)
return
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
return
c
:
IsSetCard
(
0x55
,
0x7b
)
end
end
function
c8165596
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8165596
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c8165596
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c8165596
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c82162616.lua
View file @
f5f3c42e
...
@@ -14,7 +14,7 @@ function c82162616.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c82162616.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c82162616
.
cfilter
(
c
)
function
c82162616
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x55
,
0x7b
)
end
end
function
c82162616
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82162616
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c82162616
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c82162616
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
@@ -27,7 +27,7 @@ function c82162616.filter1(c,e,tp)
...
@@ -27,7 +27,7 @@ function c82162616.filter1(c,e,tp)
and
aux
.
MustMaterialCheck
(
c
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
and
aux
.
MustMaterialCheck
(
c
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
end
end
function
c82162616
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
)
function
c82162616
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
)
return
c
:
IsRank
(
rk
)
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
return
c
:
IsRank
(
rk
)
and
c
:
IsSetCard
(
0x55
,
0x7b
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c82162616
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c82162616
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c82224646.lua
View file @
f5f3c42e
...
@@ -42,7 +42,7 @@ function c82224646.initial_effect(c)
...
@@ -42,7 +42,7 @@ function c82224646.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c82224646
.
tnfilter
(
c
)
function
c82224646
.
tnfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
)
and
c
:
IsLevelAbove
(
0
)
and
(
not
c
:
IsType
(
TYPE_TUNER
)
or
c
:
IsLevelAbove
(
2
))
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
,
0x99
)
and
c
:
IsLevelAbove
(
0
)
and
(
not
c
:
IsType
(
TYPE_TUNER
)
or
c
:
IsLevelAbove
(
2
))
end
end
function
c82224646
.
tntg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c82224646
.
tntg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c82224646
.
tnfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c82224646
.
tnfilter
(
chkc
)
end
...
@@ -73,7 +73,7 @@ function c82224646.rmcon(e)
...
@@ -73,7 +73,7 @@ function c82224646.rmcon(e)
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
IsReason
(
REASON_MATERIAL
)
and
c
:
IsReason
(
REASON_SYNCHRO
)
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
IsReason
(
REASON_MATERIAL
)
and
c
:
IsReason
(
REASON_SYNCHRO
)
end
end
function
c82224646
.
spfilter
(
c
,
e
,
tp
)
function
c82224646
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
3
)
and
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevelBelow
(
3
)
and
c
:
IsSetCard
(
0x9f
,
0x99
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c82224646
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c82224646
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c82224646
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c82224646
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
c82428674.lua
View file @
f5f3c42e
...
@@ -59,7 +59,7 @@ function c82428674.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,7 +59,7 @@ function c82428674.thcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
end
function
c82428674
.
thfilter
(
c
)
function
c82428674
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
(
c
:
IsSetCard
(
0x94
)
or
c
:
IsSetCard
(
0x93
)
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSetCard
(
0x94
,
0x93
)
and
c
:
IsAbleToHand
()
end
end
function
c82428674
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82428674
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c82428674
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c82428674
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c82738277.lua
View file @
f5f3c42e
...
@@ -33,7 +33,7 @@ function c82738277.initial_effect(c)
...
@@ -33,7 +33,7 @@ function c82738277.initial_effect(c)
end
end
function
c82738277
.
efilter
(
e
,
te
)
function
c82738277
.
efilter
(
e
,
te
)
local
c
=
te
:
GetHandler
()
local
c
=
te
:
GetHandler
()
return
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
end
end
function
c82738277
.
filter
(
c
)
function
c82738277
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x108a
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x108a
)
and
c
:
IsAbleToHand
()
...
...
c83032858.lua
View file @
f5f3c42e
...
@@ -49,7 +49,7 @@ function c83032858.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,7 +49,7 @@ function c83032858.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
end
end
function
c83032858
.
spfilter
(
c
,
e
,
tp
)
function
c83032858
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
83032858
)
and
(
c
:
IsSetCard
(
0x400d
)
or
c
:
IsSetCard
(
0x113
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
83032858
)
and
c
:
IsSetCard
(
0x400d
,
0x113
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
function
c83032858
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c83032858
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c83032858
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c83032858
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
c83519853.lua
View file @
f5f3c42e
...
@@ -68,7 +68,7 @@ function c83519853.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,7 +68,7 @@ function c83519853.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetFlagEffect
(
83519853
)
~=
0
return
e
:
GetHandler
():
GetFlagEffect
(
83519853
)
~=
0
end
end
function
c83519853
.
thfilter
(
c
)
function
c83519853
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0x107a
)
or
c
:
IsSetCard
(
0x207a
)
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x107a
,
0x207a
)
and
c
:
IsAbleToHand
()
end
end
function
c83519853
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c83519853
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c83519853
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c83519853
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c84388461.lua
View file @
f5f3c42e
...
@@ -21,7 +21,7 @@ function c84388461.initial_effect(c)
...
@@ -21,7 +21,7 @@ function c84388461.initial_effect(c)
e3
:
SetCost
(
c84388461
.
cost
)
e3
:
SetCost
(
c84388461
.
cost
)
end
end
function
c84388461
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c84388461
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0xb4
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0xb4
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c84388461
.
filter
(
c
)
function
c84388461
.
filter
(
c
)
...
...
c86827882.lua
View file @
f5f3c42e
...
@@ -16,7 +16,7 @@ function c86827882.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,7 +16,7 @@ function c86827882.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
end
function
c86827882
.
filter
(
c
)
function
c86827882
.
filter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x42
)
or
c
:
IsSetCard
(
0x4b
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x42
,
0x4b
)
end
end
function
c86827882
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c86827882
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c86827882
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c86827882
.
filter
(
chkc
)
end
...
...
c87246309.lua
View file @
f5f3c42e
...
@@ -28,7 +28,7 @@ function c87246309.initial_effect(c)
...
@@ -28,7 +28,7 @@ function c87246309.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c87246309
.
thfilter
(
c
)
function
c87246309
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0xa9
)
or
c
:
IsSetCard
(
0xc3
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xa9
,
0xc3
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c87246309
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c87246309
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c87246309
.
thfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c87246309
.
thfilter
(
chkc
)
end
...
...
c87475570.lua
View file @
f5f3c42e
...
@@ -31,7 +31,7 @@ function c87475570.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -31,7 +31,7 @@ function c87475570.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c87475570
.
filter
(
c
)
function
c87475570
.
filter
(
c
)
return
((
(
c
:
IsSetCard
(
0x1034
)
or
c
:
IsSetCard
(
0x2034
)
)
and
c
:
IsType
(
TYPE_MONSTER
))
return
((
c
:
IsSetCard
(
0x1034
,
0x2034
)
and
c
:
IsType
(
TYPE_MONSTER
))
or
(
c
:
IsSetCard
(
0x34
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)))
and
c
:
IsAbleToHand
()
or
(
c
:
IsSetCard
(
0x34
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)))
and
c
:
IsAbleToHand
()
end
end
function
c87475570
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c87475570
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c87765315.lua
View file @
f5f3c42e
...
@@ -17,7 +17,7 @@ function c87765315.filter2(c)
...
@@ -17,7 +17,7 @@ function c87765315.filter2(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc7
)
and
not
c
:
IsType
(
TYPE_PENDULUM
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc7
)
and
not
c
:
IsType
(
TYPE_PENDULUM
)
end
end
function
c87765315
.
filter3
(
c
,
e
,
tp
)
function
c87765315
.
filter3
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0xda
)
or
c
:
IsSetCard
(
0xc7
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsSetCard
(
0xda
,
0xc7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
function
c87765315
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c87765315
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c87765315
.
filter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c87765315
.
filter1
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
...
...
c88760522.lua
View file @
f5f3c42e
...
@@ -11,7 +11,7 @@ function c88760522.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c88760522.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c88760522
.
filter
(
c
)
function
c88760522
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsSetCard
(
0x304e
)
or
c
:
IsSetCard
(
0x604e
)
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x304e
,
0x604e
)
and
c
:
IsAbleToHand
()
end
end
function
c88760522
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c88760522
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c88760522
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c88760522
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c89113320.lua
View file @
f5f3c42e
...
@@ -22,7 +22,7 @@ function c89113320.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c89113320.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c89113320
.
filter
(
c
)
function
c89113320
.
filter
(
c
)
return
(
c
:
IsSetCard
(
0x9f
)
or
c
:
IsSetCard
(
0x99
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x9f
,
0x99
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c89113320
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c89113320
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c89113320
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c89113320
.
filter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
...
...
c89132148.lua
View file @
f5f3c42e
...
@@ -24,7 +24,7 @@ function c89132148.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c89132148.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c89132148
.
filter
(
c
)
function
c89132148
.
filter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x55
,
0x7b
)
end
end
function
c89132148
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c89132148
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -77,7 +77,7 @@ function c89132148.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -77,7 +77,7 @@ function c89132148.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c89132148
.
thfilter
(
c
)
function
c89132148
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
89132148
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
89132148
)
and
c
:
IsAbleToHand
()
end
end
function
c89132148
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c89132148
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c89132148
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c89132148
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c91812341.lua
View file @
f5f3c42e
...
@@ -30,10 +30,10 @@ function c91812341.initial_effect(c)
...
@@ -30,10 +30,10 @@ function c91812341.initial_effect(c)
end
end
function
c91812341
.
efilter
(
e
,
te
)
function
c91812341
.
efilter
(
e
,
te
)
local
c
=
te
:
GetHandler
()
local
c
=
te
:
GetHandler
()
return
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
end
end
function
c91812341
.
filter
(
c
)
function
c91812341
.
filter
(
c
)
return
c
:
GetType
()
==
TYPE_TRAP
and
(
c
:
IsSetCard
(
0x4c
)
or
c
:
IsSetCard
(
0x89
)
)
and
c
:
IsAbleToHand
()
return
c
:
GetType
()
==
TYPE_TRAP
and
c
:
IsSetCard
(
0x4c
,
0x89
)
and
c
:
IsAbleToHand
()
end
end
function
c91812341
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c91812341
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c91812341
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c91812341
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c92572371.lua
View file @
f5f3c42e
...
@@ -13,7 +13,7 @@ function c92572371.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c92572371.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c92572371
.
cfilter
(
c
)
function
c92572371
.
cfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
(
c
:
IsSetCard
(
0x79
)
or
c
:
IsSetCard
(
0x7c
)
)
and
c
:
IsAbleToGraveAsCost
()
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
c
:
IsSetCard
(
0x79
,
0x7c
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c92572371
.
cfilter1
(
c
,
g
,
tp
)
function
c92572371
.
cfilter1
(
c
,
g
,
tp
)
return
g
:
IsExists
(
c92572371
.
cfilter2
,
1
,
c
,
c
,
tp
)
return
g
:
IsExists
(
c92572371
.
cfilter2
,
1
,
c
,
c
,
tp
)
...
...
c94220427.lua
View file @
f5f3c42e
...
@@ -31,7 +31,7 @@ function c94220427.filter1(c,e,tp)
...
@@ -31,7 +31,7 @@ function c94220427.filter1(c,e,tp)
end
end
function
c94220427
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
code
)
function
c94220427
.
filter2
(
c
,
e
,
tp
,
mc
,
rk
,
code
)
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
if
c
:
GetOriginalCode
()
==
6165656
and
code
~=
48995978
then
return
false
end
return
c
:
IsRank
(
rk
)
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
)
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
return
c
:
IsRank
(
rk
)
and
c
:
IsSetCard
(
0x1048
,
0x1073
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c94220427
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c94220427
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c94415058.lua
View file @
f5f3c42e
...
@@ -57,7 +57,7 @@ function c94415058.aclimit(e,re,tp)
...
@@ -57,7 +57,7 @@ function c94415058.aclimit(e,re,tp)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c94415058
.
scfilter
(
c
)
function
c94415058
.
scfilter
(
c
)
return
c
:
IsSetCard
(
0x98
)
or
c
:
IsSetCard
(
0x99
)
return
c
:
IsSetCard
(
0x98
,
0x99
)
end
end
function
c94415058
.
sccon
(
e
)
function
c94415058
.
sccon
(
e
)
return
not
Duel
.
IsExistingMatchingCard
(
c94415058
.
scfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
return
not
Duel
.
IsExistingMatchingCard
(
c94415058
.
scfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
,
1
,
e
:
GetHandler
())
...
...
c95401059.lua
View file @
f5f3c42e
...
@@ -28,7 +28,7 @@ function c95401059.initial_effect(c)
...
@@ -28,7 +28,7 @@ function c95401059.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c95401059
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c95401059
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0x9d
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0x9d
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c95401059
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c95401059
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c96142517.lua
View file @
f5f3c42e
...
@@ -44,14 +44,14 @@ function c96142517.spfilter(c,e,tp,rk)
...
@@ -44,14 +44,14 @@ function c96142517.spfilter(c,e,tp,rk)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
g1
:
GetCount
()
>
0
and
g2
:
GetCount
()
>
0
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
g1
:
GetCount
()
>
0
and
g2
:
GetCount
()
>
0
and
(
g1
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
48995978
)
or
g2
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
48995978
))
and
(
g1
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
48995978
)
or
g2
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
48995978
))
else
else
return
c
:
IsRank
(
rk
)
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRank
(
rk
)
and
c
:
IsSetCard
(
0x1048
,
0x1073
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
end
end
function
c96142517
.
spfilter2
(
c
,
e
,
tp
,
rk
,
g
)
function
c96142517
.
spfilter2
(
c
,
e
,
tp
,
rk
,
g
)
if
c
:
GetOriginalCode
()
==
6165656
then
if
c
:
GetOriginalCode
()
==
6165656
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
g
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
48995978
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
g
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
48995978
)
else
else
return
c
:
IsRank
(
rk
)
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRank
(
rk
)
and
c
:
IsSetCard
(
0x1048
,
0x1073
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
end
end
function
c96142517
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c96142517
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c96223501.lua
View file @
f5f3c42e
...
@@ -30,14 +30,14 @@ function c96223501.initial_effect(c)
...
@@ -30,14 +30,14 @@ function c96223501.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c96223501
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c96223501
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
c
:
IsSetCard
(
0x9c
)
or
c
:
IsSetCard
(
0xc4
)
then
return
false
end
if
c
:
IsSetCard
(
0x9c
,
0xc4
)
then
return
false
end
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
end
function
c96223501
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c96223501
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
end
end
function
c96223501
.
filter1
(
c
)
function
c96223501
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x9c
)
or
c
:
IsSetCard
(
0xc4
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9c
,
0xc4
)
end
end
function
c96223501
.
filter2
(
c
)
function
c96223501
.
filter2
(
c
)
return
c
:
IsFaceup
()
return
c
:
IsFaceup
()
...
...
c96733134.lua
View file @
f5f3c42e
...
@@ -123,7 +123,7 @@ function c96733134.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -123,7 +123,7 @@ function c96733134.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
c
,
REASON_COST
)
Duel
.
Release
(
c
,
REASON_COST
)
end
end
function
c96733134
.
spfilter
(
c
,
e
,
tp
)
function
c96733134
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x10f8
)
or
c
:
IsSetCard
(
0x20f8
)
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10f8
,
0x20f8
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsCode
(
96733134
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsCode
(
96733134
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
end
...
...
c97617181.lua
View file @
f5f3c42e
...
@@ -35,7 +35,7 @@ function c97617181.initial_effect(c)
...
@@ -35,7 +35,7 @@ function c97617181.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c97617181
.
spfilter
(
c
,
e
,
tp
)
function
c97617181
.
spfilter
(
c
,
e
,
tp
)
return
(
c
:
IsSetCard
(
0x55
)
or
c
:
IsSetCard
(
0x7b
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x55
,
0x7b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c97617181
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c97617181
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c97617181
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c97617181
.
spfilter
(
chkc
,
e
,
tp
)
end
...
...
c9765723.lua
View file @
f5f3c42e
...
@@ -49,7 +49,7 @@ function c9765723.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,7 +49,7 @@ function c9765723.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
end
function
c9765723
.
cfilter
(
c
)
function
c9765723
.
cfilter
(
c
)
return
(
c
:
IsSetCard
(
0xaf
)
or
c
:
IsSetCard
(
0xae
)
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsSetCard
(
0xaf
,
0xae
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c9765723
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9765723
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c9765723
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c9765723
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
...
...
c99397762.lua
View file @
f5f3c42e
...
@@ -10,7 +10,7 @@ function c99397762.initial_effect(c)
...
@@ -10,7 +10,7 @@ function c99397762.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c99397762
.
filter
(
c
)
function
c99397762
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
(
c
:
IsSetCard
(
0x107b
)
or
c
:
IsSetCard
(
0xe5
)
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x107b
,
0xe5
)
end
end
function
c99397762
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c99397762
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c99397762
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c99397762
.
filter
(
chkc
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment