Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
b8db1a8c
Commit
b8db1a8c
authored
Sep 02, 2024
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setname fix
parent
59d22903
Pipeline
#29519
passed with stages
in 40 minutes and 13 seconds
Changes
28
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
38 additions
and
38 deletions
+38
-38
expansions/script/c60040001.lua
expansions/script/c60040001.lua
+2
-2
expansions/script/c60040002.lua
expansions/script/c60040002.lua
+2
-2
expansions/script/c60040003.lua
expansions/script/c60040003.lua
+2
-2
expansions/script/c60040004.lua
expansions/script/c60040004.lua
+2
-2
expansions/script/c60040005.lua
expansions/script/c60040005.lua
+1
-1
expansions/script/c60040010.lua
expansions/script/c60040010.lua
+1
-1
expansions/script/c60040017.lua
expansions/script/c60040017.lua
+2
-2
expansions/script/c60040019.lua
expansions/script/c60040019.lua
+1
-1
expansions/script/c60040022.lua
expansions/script/c60040022.lua
+2
-2
expansions/script/c60040026.lua
expansions/script/c60040026.lua
+1
-1
expansions/script/c60040029.lua
expansions/script/c60040029.lua
+1
-1
expansions/script/c60040035.lua
expansions/script/c60040035.lua
+1
-1
expansions/script/c60040037.lua
expansions/script/c60040037.lua
+1
-1
expansions/script/c60040038.lua
expansions/script/c60040038.lua
+1
-1
expansions/script/c60040039.lua
expansions/script/c60040039.lua
+2
-2
expansions/script/c60040040.lua
expansions/script/c60040040.lua
+1
-1
expansions/script/c60040042.lua
expansions/script/c60040042.lua
+1
-1
expansions/script/c60040049.lua
expansions/script/c60040049.lua
+1
-1
expansions/script/c60040052.lua
expansions/script/c60040052.lua
+1
-1
expansions/script/c60040055.lua
expansions/script/c60040055.lua
+1
-1
expansions/script/c60040056.lua
expansions/script/c60040056.lua
+1
-1
expansions/script/c60040057.lua
expansions/script/c60040057.lua
+1
-1
expansions/script/c60040061.lua
expansions/script/c60040061.lua
+1
-1
expansions/script/c60040066.lua
expansions/script/c60040066.lua
+3
-3
expansions/script/c60040067.lua
expansions/script/c60040067.lua
+1
-1
expansions/script/c60040069.lua
expansions/script/c60040069.lua
+2
-2
expansions/script/c60040074.lua
expansions/script/c60040074.lua
+1
-1
expansions/script/c60040079.lua
expansions/script/c60040079.lua
+1
-1
No files found.
expansions/script/c60040001.lua
View file @
b8db1a8c
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rc
:
IsSetCard
(
0x6
42
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
return
rc
:
IsSetCard
(
0x6
629
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -69,7 +69,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +69,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsReason
(
REASON_COST
)
or
e
:
GetHandler
():
IsReason
(
REASON_SPSUMMON
)
return
e
:
GetHandler
():
IsReason
(
REASON_COST
)
or
e
:
GetHandler
():
IsReason
(
REASON_SPSUMMON
)
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x6
42
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x6
629
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040002.lua
View file @
b8db1a8c
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rc
:
IsSetCard
(
0x6
42
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
return
rc
:
IsSetCard
(
0x6
629
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -55,7 +55,7 @@ function cm.chainlm(e,rp,tp)
...
@@ -55,7 +55,7 @@ function cm.chainlm(e,rp,tp)
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x6
42
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x6
629
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
cm
.
dtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
dtg
(
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
...
...
expansions/script/c60040003.lua
View file @
b8db1a8c
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rc
:
IsSetCard
(
0x6
42
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
return
rc
:
IsSetCard
(
0x6
629
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -56,7 +56,7 @@ end
...
@@ -56,7 +56,7 @@ end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x6
42
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x6
629
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
dtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
dtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040004.lua
View file @
b8db1a8c
...
@@ -25,7 +25,7 @@ function cm.initial_effect(c)
...
@@ -25,7 +25,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rc
:
IsSetCard
(
0x6
42
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
return
rc
:
IsSetCard
(
0x6
629
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -43,7 +43,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsReason
(
REASON_COST
)
or
e
:
GetHandler
():
IsReason
(
REASON_SPSUMMON
)
return
e
:
GetHandler
():
IsReason
(
REASON_COST
)
or
e
:
GetHandler
():
IsReason
(
REASON_SPSUMMON
)
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x6
42
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x6
629
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
2
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
2
,
nil
)
end
...
...
expansions/script/c60040005.lua
View file @
b8db1a8c
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
...
@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rc
:
IsSetCard
(
0x6
42
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
return
rc
:
IsSetCard
(
0x6
629
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c60040010.lua
View file @
b8db1a8c
...
@@ -67,7 +67,7 @@ function cm.chainlm(e,rp,tp)
...
@@ -67,7 +67,7 @@ function cm.chainlm(e,rp,tp)
end
end
function
cm
.
thfilter
(
c
,
e
)
function
cm
.
thfilter
(
c
,
e
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x6
42
)
and
c
:
IsAbleToHand
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x6
629
)
and
c
:
IsAbleToHand
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
cm
.
thfilter
(
chkc
,
e
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
cm
.
thfilter
(
chkc
,
e
)
end
...
...
expansions/script/c60040017.lua
View file @
b8db1a8c
...
@@ -24,7 +24,7 @@ function cm.initial_effect(c)
...
@@ -24,7 +24,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rc
:
IsSetCard
(
0x6
42
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
return
rc
:
IsSetCard
(
0x6
629
)
and
rc
:
IsControler
(
tp
)
and
not
rc
:
IsCode
(
m
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -38,7 +38,7 @@ function cm.chainlm(e,rp,tp)
...
@@ -38,7 +38,7 @@ function cm.chainlm(e,rp,tp)
return
tp
==
rp
return
tp
==
rp
end
end
function
cm
.
costfilter
(
c
)
function
cm
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x6
42
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsSetCard
(
0x6
629
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040019.lua
View file @
b8db1a8c
...
@@ -23,7 +23,7 @@ function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,7 +23,7 @@ function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x6
42
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x6
629
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
5
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_HAND
,
0
,
5
,
nil
)
end
...
...
expansions/script/c60040022.lua
View file @
b8db1a8c
...
@@ -37,13 +37,13 @@ function cm.initial_effect(c)
...
@@ -37,13 +37,13 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
lcheck
(
g
,
lc
)
function
cm
.
lcheck
(
g
,
lc
)
return
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x
643
)
return
g
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x
9629
)
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
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
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
643
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9629
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040026.lua
View file @
b8db1a8c
...
@@ -54,7 +54,7 @@ end
...
@@ -54,7 +54,7 @@ end
function
cm
.
sfilter
(
c
,
tp
)
function
cm
.
sfilter
(
c
,
tp
)
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsSetCard
(
0x
643
)
and
c
:
IsSetCard
(
0x
9629
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c60040029.lua
View file @
b8db1a8c
...
@@ -3,7 +3,7 @@ local cm,m,o=GetID()
...
@@ -3,7 +3,7 @@ local cm,m,o=GetID()
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
--link summon
--link summon
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0x
643
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0x
9629
),
2
,
2
)
--untargetable
--untargetable
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c60040035.lua
View file @
b8db1a8c
...
@@ -35,7 +35,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,7 +35,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
643
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9629
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040037.lua
View file @
b8db1a8c
...
@@ -32,7 +32,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
sfilter
(
c
,
tp
)
function
cm
.
sfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x
643
)
and
c
:
IsControler
(
tp
)
return
c
:
IsSetCard
(
0x
9629
)
and
c
:
IsControler
(
tp
)
end
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
sfilter
,
1
,
nil
,
tp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
return
eg
:
IsExists
(
cm
.
sfilter
,
1
,
nil
,
tp
)
and
not
eg
:
IsContains
(
e
:
GetHandler
())
...
...
expansions/script/c60040038.lua
View file @
b8db1a8c
...
@@ -81,7 +81,7 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -81,7 +81,7 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
643
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9629
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040039.lua
View file @
b8db1a8c
...
@@ -34,7 +34,7 @@ function cm.initial_effect(c)
...
@@ -34,7 +34,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
effspfilter
(
c
,
e
,
tp
)
function
cm
.
effspfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
643
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
9629
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
cm
.
efftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
efftg
(
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
...
@@ -73,7 +73,7 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,7 +73,7 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
643
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9629
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040040.lua
View file @
b8db1a8c
...
@@ -139,7 +139,7 @@ function cm.activate2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -139,7 +139,7 @@ function cm.activate2(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
thfilter
(
c
)
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
643
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9629
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040042.lua
View file @
b8db1a8c
...
@@ -72,7 +72,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,7 +72,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
643
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9629
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040049.lua
View file @
b8db1a8c
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
643
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9629
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040052.lua
View file @
b8db1a8c
...
@@ -27,7 +27,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,7 +27,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
644
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x
a629
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsFaceup
()
end
end
function
cm
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
expansions/script/c60040055.lua
View file @
b8db1a8c
...
@@ -34,7 +34,7 @@ function cm.filter(c)
...
@@ -34,7 +34,7 @@ function cm.filter(c)
return
c
:
IsCode
(
60040052
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
60040052
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
filter2
(
c
)
function
cm
.
filter2
(
c
)
return
c
:
IsSetCard
(
0x
645
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
c629
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040056.lua
View file @
b8db1a8c
...
@@ -34,7 +34,7 @@ function cm.filter(c)
...
@@ -34,7 +34,7 @@ function cm.filter(c)
return
c
:
IsCode
(
60040052
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
60040052
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
filter2
(
c
)
function
cm
.
filter2
(
c
)
return
c
:
IsSetCard
(
0x
644
)
and
c
:
IsLevelBelow
(
5
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
a629
)
and
c
:
IsLevelBelow
(
5
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040057.lua
View file @
b8db1a8c
...
@@ -34,7 +34,7 @@ function cm.filter(c)
...
@@ -34,7 +34,7 @@ function cm.filter(c)
return
c
:
IsCode
(
60040052
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
60040052
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
filter2
(
c
,
e
,
tp
)
function
cm
.
filter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
645
)
and
c
:
IsLevelBelow
(
5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
c629
)
and
c
:
IsLevelBelow
(
5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040061.lua
View file @
b8db1a8c
...
@@ -52,7 +52,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +52,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
--end
--end
end
end
function
cm
.
drfilter
(
c
,
e
)
function
cm
.
drfilter
(
c
,
e
)
return
c
:
IsSetCard
(
0x
644
)
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsSetCard
(
0x
a629
)
and
c
:
IsAbleToDeck
()
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
cm
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
...
...
expansions/script/c60040066.lua
View file @
b8db1a8c
...
@@ -52,11 +52,11 @@ end
...
@@ -52,11 +52,11 @@ end
function
cm
.
spcon
(
e
,
c
)
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSetCard
,
tp
,
LOCATION_HAND
,
0
,
nil
,
0x
645
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSetCard
,
tp
,
LOCATION_HAND
,
0
,
nil
,
0x
c629
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
3
return
g
:
GetClassCount
(
Card
.
GetCode
)
>=
3
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSetCard
,
tp
,
LOCATION_HAND
,
0
,
nil
,
0x
645
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSetCard
,
tp
,
LOCATION_HAND
,
0
,
nil
,
0x
c629
)
local
cg
=
Group
.
CreateGroup
()
local
cg
=
Group
.
CreateGroup
()
for
i
=
1
,
3
do
for
i
=
1
,
3
do
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
@@ -73,7 +73,7 @@ function cm.thfilter1(c)
...
@@ -73,7 +73,7 @@ function cm.thfilter1(c)
return
c
:
IsCode
(
60040052
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
60040052
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thfilter2
(
c
)
function
cm
.
thfilter2
(
c
)
return
c
:
IsSetCard
(
0x
645
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
c629
)
and
c
:
IsAbleToHand
()
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c60040067.lua
View file @
b8db1a8c
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
cpfilter
(
c
)
function
cm
.
cpfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsSetCard
(
0x
645
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsSetCard
(
0x
c629
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c60040069.lua
View file @
b8db1a8c
...
@@ -19,12 +19,12 @@ function cm.initial_effect(c)
...
@@ -19,12 +19,12 @@ function cm.initial_effect(c)
--atk up
--atk up
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x
644
))
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x
a629
))
e3
:
SetValue
(
1600
)
e3
:
SetValue
(
1600
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
desfilter
(
c
)
function
cm
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
644
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
a629
)
end
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c60040074.lua
View file @
b8db1a8c
...
@@ -30,7 +30,7 @@ function cm.initial_effect(c)
...
@@ -30,7 +30,7 @@ function cm.initial_effect(c)
end
end
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
644
)
and
c
:
IsType
(
TYPE_MONSTER
)
-- and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return
c
:
IsSetCard
(
0x
a629
)
and
c
:
IsType
(
TYPE_MONSTER
)
-- and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Debug
.
Message
(
"1"
)
Debug
.
Message
(
"1"
)
...
...
expansions/script/c60040079.lua
View file @
b8db1a8c
...
@@ -33,7 +33,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +33,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
cm
.
ntlfil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
cm
.
ntlfil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
end
function
cm
.
ntlfil
(
c
)
function
cm
.
ntlfil
(
c
)
return
c
:
IsSetCard
(
0x
644
)
and
c
:
IsFaceup
()
return
c
:
IsSetCard
(
0x
a629
)
and
c
:
IsFaceup
()
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
ntlfil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
ntlfil
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
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