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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
12d57463
Commit
12d57463
authored
May 19, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mercury233
parent
725b43f6
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
81 additions
and
78 deletions
+81
-78
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c22000230.lua
expansions/script/c22000230.lua
+3
-3
expansions/script/c22000240.lua
expansions/script/c22000240.lua
+1
-1
expansions/script/c22000250.lua
expansions/script/c22000250.lua
+1
-1
expansions/script/c22000270.lua
expansions/script/c22000270.lua
+1
-1
expansions/script/c22000280.lua
expansions/script/c22000280.lua
+1
-1
expansions/script/c22000290.lua
expansions/script/c22000290.lua
+1
-1
expansions/script/c88800001.lua
expansions/script/c88800001.lua
+3
-3
expansions/script/c88800002.lua
expansions/script/c88800002.lua
+3
-3
expansions/script/c88800003.lua
expansions/script/c88800003.lua
+3
-3
expansions/script/c88800004.lua
expansions/script/c88800004.lua
+3
-3
expansions/script/c88800005.lua
expansions/script/c88800005.lua
+2
-2
expansions/script/c88800006.lua
expansions/script/c88800006.lua
+3
-3
expansions/script/c88800007.lua
expansions/script/c88800007.lua
+3
-3
expansions/script/c88800008.lua
expansions/script/c88800008.lua
+2
-2
expansions/script/c88800009.lua
expansions/script/c88800009.lua
+2
-2
expansions/script/c88880000.lua
expansions/script/c88880000.lua
+3
-3
expansions/script/c88880001.lua
expansions/script/c88880001.lua
+3
-3
expansions/script/c88880002.lua
expansions/script/c88880002.lua
+2
-2
expansions/script/c88880003.lua
expansions/script/c88880003.lua
+3
-3
expansions/script/c88880004.lua
expansions/script/c88880004.lua
+3
-3
expansions/script/c88880005.lua
expansions/script/c88880005.lua
+1
-1
expansions/script/c88880006.lua
expansions/script/c88880006.lua
+4
-4
expansions/script/c88880007.lua
expansions/script/c88880007.lua
+3
-3
expansions/script/c88880009.lua
expansions/script/c88880009.lua
+1
-1
expansions/script/c88880111.lua
expansions/script/c88880111.lua
+1
-1
expansions/script/c88880120.lua
expansions/script/c88880120.lua
+2
-2
expansions/script/c88880121.lua
expansions/script/c88880121.lua
+2
-2
expansions/script/c88880210.lua
expansions/script/c88880210.lua
+2
-2
expansions/script/c88880212.lua
expansions/script/c88880212.lua
+1
-1
expansions/script/c88880213.lua
expansions/script/c88880213.lua
+4
-4
expansions/script/c88880223.lua
expansions/script/c88880223.lua
+2
-2
expansions/script/c88880227.lua
expansions/script/c88880227.lua
+3
-3
expansions/script/c88880230.lua
expansions/script/c88880230.lua
+1
-1
expansions/strings.conf
expansions/strings.conf
+8
-5
No files found.
expansions/222DIY.cdb
View file @
12d57463
No preview for this file type
expansions/script/c22000230.lua
View file @
12d57463
...
...
@@ -24,7 +24,7 @@ function c22000230.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c22000230
.
filter
(
c
,
e
,
tp
,
m1
,
m2
,
ft
)
if
not
c
:
IsSetCard
(
0x
f
ff
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
if
not
c
:
IsSetCard
(
0x
9
ff
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
local
mg
=
m1
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
c
,
c
)
mg
:
Merge
(
m2
)
...
...
@@ -41,7 +41,7 @@ function c22000230.mfilterf(c,tp,mg,rc)
else
return
false
end
end
function
c22000230
.
mfilter
(
c
)
return
c
:
GetLevel
()
>
0
and
c
:
IsSetCard
(
0x
f
ff
)
and
c
:
IsAbleToRemove
()
return
c
:
GetLevel
()
>
0
and
c
:
IsSetCard
(
0x
9
ff
)
and
c
:
IsAbleToRemove
()
end
function
c22000230
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
...
...
@@ -88,7 +88,7 @@ function c22000230.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c22000230
.
filter0
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
f
ff
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
9
ff
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c22000230
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c22000230
.
filter0
(
chkc
,
e
,
tp
)
end
...
...
expansions/script/c22000240.lua
View file @
12d57463
...
...
@@ -32,7 +32,7 @@ function c22000240.indcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
function
c22000240
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
f
ff
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9
ff
)
end
function
c22000240
.
indtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c22000240
.
filter
(
chkc
)
end
...
...
expansions/script/c22000250.lua
View file @
12d57463
...
...
@@ -32,7 +32,7 @@ function c22000250.indcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
function
c22000250
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
f
ff
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9
ff
)
end
function
c22000250
.
indtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c22000250
.
filter
(
chkc
)
end
...
...
expansions/script/c22000270.lua
View file @
12d57463
...
...
@@ -36,7 +36,7 @@ function c22000270.adcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
function
c22000270
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
f
ff
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9
ff
)
end
function
c22000270
.
adtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c22000270
.
filter
(
chkc
)
end
...
...
expansions/script/c22000280.lua
View file @
12d57463
...
...
@@ -30,7 +30,7 @@ function c22000280.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c22000280
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c22000280
.
filter
(
c
,
e
,
tp
,
m
,
ft
)
if
not
c
:
IsSetCard
(
0x
f
ff
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
if
not
c
:
IsSetCard
(
0x
9
ff
)
or
bit
.
band
(
c
:
GetType
(),
0x81
)
~=
0x81
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_RITUAL
,
tp
,
false
,
true
)
then
return
false
end
local
mg
=
m
:
Filter
(
Card
.
IsCanBeRitualMaterial
,
c
,
c
)
if
ft
>
0
then
...
...
expansions/script/c22000290.lua
View file @
12d57463
...
...
@@ -23,7 +23,7 @@ function c22000290.initial_effect(c)
end
function
c22000290
.
rlevel
(
e
,
c
)
local
lv
=
e
:
GetHandler
():
GetLevel
()
if
c
:
IsSetCard
(
0x
f
ff
)
then
if
c
:
IsSetCard
(
0x
9
ff
)
then
local
clv
=
c
:
GetLevel
()
return
lv
*
65536
+
clv
else
return
lv
end
...
...
expansions/script/c88800001.lua
View file @
12d57463
...
...
@@ -104,16 +104,16 @@ function card.filter(c)
return
c
:
IsType
(
TYPE_MONSTER
)
end
function
card
.
tfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
function
card
.
dfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
function
card
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsReleasable
()
end
function
card
.
checkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
function
card
.
fafilter
(
c
)
return
c
:
IsFaceup
()
...
...
expansions/script/c88800002.lua
View file @
12d57463
...
...
@@ -104,14 +104,14 @@ function card.filter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
card
.
tfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
function
card
.
dfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
function
card
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsReleasable
()
end
function
card
.
checkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
\ No newline at end of file
expansions/script/c88800003.lua
View file @
12d57463
...
...
@@ -103,14 +103,14 @@ function card.filter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
card
.
tfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
function
card
.
dfilter
(
c
)
return
c
:
IsSetCard
(
0x
721
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9ec
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsAbleToHand
()
end
function
card
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsReleasable
()
end
function
card
.
checkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
\ No newline at end of file
expansions/script/c88800004.lua
View file @
12d57463
...
...
@@ -16,7 +16,7 @@ function card.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x
721
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x
9ec
))
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetValue
(
300
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -40,7 +40,7 @@ function card.initial_effect(c)
end
function
card
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x
721
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x
9ec
)
and
c
:
IsAbleToHand
()
end
function
card
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
@@ -53,7 +53,7 @@ function card.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
card
.
thfilter1
(
c
,
tp
)
return
c
:
IsSetCard
(
0x
721
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
+
LOCATION_HAND
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsSetCard
(
0x
9ec
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
+
LOCATION_HAND
)
and
c
:
GetPreviousControler
()
==
tp
end
function
card
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
card
.
thfilter1
,
1
,
nil
,
tp
)
...
...
expansions/script/c88800005.lua
View file @
12d57463
...
...
@@ -37,7 +37,7 @@ function card.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
card
.
tdfilter
(
c
)
return
c
:
IsSetCard
(
0x
721
)
and
c
:
IsAbleToDeck
()
return
c
:
IsSetCard
(
0x
9ec
)
and
c
:
IsAbleToDeck
()
end
function
card
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
card
.
tdfilter
(
chkc
)
end
...
...
@@ -63,7 +63,7 @@ function card.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
card
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
721
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9ec
)
and
c
:
IsAbleToHand
()
end
function
card
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
hg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
...
...
expansions/script/c88800006.lua
View file @
12d57463
...
...
@@ -36,7 +36,7 @@ end
--Indestructable Set Target -- Normal Summoned and Is Dragonlord
function
card
.
indtg
(
e
,
c
)
return
c
:
IsSummonType
(
SUMMON_TYPE_NORMAL
)
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsSummonType
(
SUMMON_TYPE_NORMAL
)
and
c
:
IsSetCard
(
0x
9ec
)
end
--Indestructable Set Operation -- Prevent 1 destruction
function
card
.
indct
(
e
,
re
,
r
,
rp
)
...
...
@@ -69,9 +69,9 @@ end
--Filters
--Draw effect discard cost - Can it be sent and is it Dragonlord -- LEGACY
function
card
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x
721
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsSetCard
(
0x
9ec
)
and
c
:
IsAbleToGraveAsCost
()
end
--Sp effect, Is it a Dragonlord Monster that can be Special Summoned
function
card
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
721
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x
9ec
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
\ No newline at end of file
expansions/script/c88800007.lua
View file @
12d57463
...
...
@@ -103,14 +103,14 @@ function card.filter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
card
.
tfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
function
card
.
dfilter
(
c
)
return
c
:
IsSetCard
(
0x
721
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9ec
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsAbleToHand
()
end
function
card
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsRace
(
RACE_DRAGON
)
and
not
c
:
IsCode
(
id
)
and
c
:
IsReleasable
()
end
function
card
.
checkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
end
\ No newline at end of file
expansions/script/c88800008.lua
View file @
12d57463
...
...
@@ -48,7 +48,7 @@ end
--Filters
--Is it a face-up Dragonlord Monster?
function
card
.
isdragonlordfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
721
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsControler
(
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9ec
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsControler
(
tp
)
end
--Not really sure to be honest
function
card
.
efilter
(
e
,
re
)
...
...
@@ -56,5 +56,5 @@ function card.efilter(e,re)
end
--Is it a Dracolord Card?
function
card
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x
721
)
and
not
c
:
IsCode
(
id
)
return
c
:
IsSetCard
(
0x
9ec
)
and
not
c
:
IsCode
(
id
)
end
\ No newline at end of file
expansions/script/c88800009.lua
View file @
12d57463
...
...
@@ -88,10 +88,10 @@ end
----------------------------------------------------
--Is its a Dracolord Monster...and...something else im not sure of, you can probably delete it? w/e basically saying, is a "Dragonlord" monster you control and something about a sequence, no clue here.
function
card
.
hspfilter
(
c
,
ft
,
tp
)
return
c
:
IsSetCard
(
0x
721
)
return
c
:
IsSetCard
(
0x
9ec
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
end
-- Checking to see who controlled the sent "Dragonlord" Monster, where it was sent from and whether or not it was a "Dragonlord" Monster at all.
function
card
.
spcfilter
(
c
,
tp
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsSetCard
(
0x
721
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
GetPreviousControler
()
==
tp
and
c
:
IsSetCard
(
0x
9ec
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
expansions/script/c88880000.lua
View file @
12d57463
...
...
@@ -37,7 +37,7 @@ function cm.initial_effect(c)
end
-- SpecialSummon from hand
function
cm
.
cfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
@@ -55,7 +55,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
matfilter
(
chkc
)
end
...
...
@@ -72,7 +72,7 @@ function cm.matop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c88880001.lua
View file @
12d57463
...
...
@@ -37,7 +37,7 @@ function cm.initial_effect(c)
end
-- SpecialSummon from hand
function
cm
.
cfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
@@ -55,7 +55,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
matfilter
(
chkc
)
end
...
...
@@ -77,7 +77,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
cm
.
filter
(
chkc
,
e
,
tp
)
end
...
...
expansions/script/c88880002.lua
View file @
12d57463
...
...
@@ -36,7 +36,7 @@ function cm.initial_effect(c)
end
-- SpecialSummon from hand
function
cm
.
cfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
@@ -54,7 +54,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
matfilter
(
chkc
)
end
...
...
expansions/script/c88880003.lua
View file @
12d57463
...
...
@@ -39,7 +39,7 @@ function cm.initial_effect(c)
end
-- SpecialSummon from hand
function
cm
.
cfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
@@ -57,7 +57,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
matfilter
(
chkc
)
end
...
...
@@ -79,7 +79,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
end
function
cm
.
filter1
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsAbleToDeck
()
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsAbleToDeck
()
end
function
cm
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
filter1
(
chkc
)
end
...
...
expansions/script/c88880004.lua
View file @
12d57463
...
...
@@ -39,7 +39,7 @@ function cm.initial_effect(c)
end
-- SpecialSummon from hand
function
cm
.
cfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
@@ -57,7 +57,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
matfilter
(
chkc
)
end
...
...
@@ -101,5 +101,5 @@ function cm.filter1(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
filter2
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
not
c
:
IsCode
(
m
)
return
c
:
IsSetCard
(
0x
9e
d
)
and
not
c
:
IsCode
(
m
)
end
\ No newline at end of file
expansions/script/c88880005.lua
View file @
12d57463
...
...
@@ -26,7 +26,7 @@ function cm.initial_effect(c)
end
function
cm
.
cfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
expansions/script/c88880006.lua
View file @
12d57463
...
...
@@ -17,13 +17,13 @@ function c88880006.initial_effect(c)
end
function
c88880006
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
not
c
:
IsCode
(
88880006
)
return
c
:
IsSetCard
(
0x
9e
d
)
and
not
c
:
IsCode
(
88880006
)
end
function
c88880006
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsSetCard
(
0x
9e
d
)
end
function
c88880006
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
ff
d
)
and
not
c
:
IsCode
(
88880006
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9e
d
)
and
not
c
:
IsCode
(
88880006
)
end
function
c88880006
.
xyzop
(
e
,
tp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c88880006
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
...
...
@@ -39,7 +39,7 @@ function c88880006.tgcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
end
function
c88880006
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsAbleToHand
()
end
function
c88880006
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c88880006
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
expansions/script/c88880007.lua
View file @
12d57463
...
...
@@ -37,7 +37,7 @@ function cm.initial_effect(c)
end
-- SpecialSummon from hand
function
cm
.
cfilter
(
c
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsFacedown
()
or
not
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
@@ -55,7 +55,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
mattg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
matfilter
(
chkc
)
end
...
...
@@ -77,7 +77,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
end
function
cm
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsSetCard
(
0x
ff
d
)
and
not
c
:
IsCode
(
88880007
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsSetCard
(
0x
9e
d
)
and
not
c
:
IsCode
(
88880007
)
end
function
cm
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_DECK
)
and
cm
.
filter
(
chkc
,
e
,
tp
)
end
...
...
expansions/script/c88880009.lua
View file @
12d57463
...
...
@@ -30,7 +30,7 @@ function c88880009.atkval(e,c)
end
--filters
function
c88880009
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsSetCard
(
0x
9e
d
)
end
function
c88880009
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
...
...
expansions/script/c88880111.lua
View file @
12d57463
...
...
@@ -43,7 +43,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
filter
(
c
,
sp
)
return
c
:
GetSummonPlayer
()
==
sp
...
...
expansions/script/c88880120.lua
View file @
12d57463
...
...
@@ -42,10 +42,10 @@ function cm.matop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Overlay
(
tc
,
g
)
end
function
cm
.
filter3
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
cm
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c88880121.lua
View file @
12d57463
...
...
@@ -34,7 +34,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
cm
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -66,7 +66,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
())
...
...
expansions/script/c88880210.lua
View file @
12d57463
...
...
@@ -17,7 +17,7 @@ function cm.initial_effect(c)
end
function
c88880210
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsSetCard
(
0x
9e
d
)
end
function
c88880210
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
...
...
@@ -35,7 +35,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
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
...
...
expansions/script/c88880212.lua
View file @
12d57463
...
...
@@ -42,7 +42,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
atkval
(
e
,
c
)
return
c
:
GetOverlayCount
()
*
500
...
...
expansions/script/c88880213.lua
View file @
12d57463
...
...
@@ -3,7 +3,7 @@ local m=88880213
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--Link summon
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0x
ff
d
),
2
,
2
)
aux
.
AddLinkProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLinkSetCard
,
0x
9e
d
),
2
,
2
)
c
:
EnableReviveLimit
()
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -51,7 +51,7 @@ function cm.linkop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoGrave
(
g1
,
REASON_MATERIAL
+
REASON_LINK
)
end
function
cm
.
thcfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
cm
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thcfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
@@ -60,7 +60,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
cm
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
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
...
...
@@ -81,7 +81,7 @@ function cm.bthcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
cm
.
filter2
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsAbleToHand
()
end
function
cm
.
bthtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
...
...
expansions/script/c88880223.lua
View file @
12d57463
...
...
@@ -24,7 +24,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c88880223
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c88880223
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
@@ -37,7 +37,7 @@ function c88880223.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c88880223
.
thfilter2
(
c
,
tp
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
end
function
c88880223
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c88880223
.
thfilter2
,
1
,
nil
,
tp
)
...
...
expansions/script/c88880227.lua
View file @
12d57463
...
...
@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x
ff
d
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x
9e
d
))
e2
:
SetValue
(
200
)
c
:
RegisterEffect
(
e2
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -38,7 +38,7 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
thfilter1
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
not
c
:
IsType
(
TYPE_MONSTER
+
TYPE_FIELD
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x
9e
d
)
and
not
c
:
IsType
(
TYPE_MONSTER
+
TYPE_FIELD
)
and
c
:
IsAbleToHand
()
end
function
cm
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -56,7 +56,7 @@ function cm.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
filter3
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x
9e
d
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
cm
.
filter
(
chkc
)
end
...
...
expansions/script/c88880230.lua
View file @
12d57463
...
...
@@ -40,7 +40,7 @@ function cm.gycon(e)
return
Duel
.
IsExistingMatchingCard
(
cm
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
cm
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x
ff
d
)
return
c
:
IsSetCard
(
0x
9e
d
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
end
...
...
expansions/strings.conf
View file @
12d57463
#222DIY
#备注
#禁用0xff0-0xfff区间以保证Pro2上能正常运作
#芙兰 657556329 7
#is_named_with_cyberaqua 电子水蓝
#is_named_with_PETS P.E.T.S.
...
...
@@ -322,8 +325,8 @@
!
setname
0
x5495
玲珑术
!
setname
0
x494
灵子殖装
#烩焗 2510495719 220 0x
f
ff
!
setname
0
x
fff
从者 △
#烩焗 2510495719 220 0x
9f0-0x9
ff
!
setname
0
x
9ff
从者
#兔锅 1874883039 222 0x???-0x???
#named_with_Valhalla 瓦尔哈拉
...
...
@@ -717,9 +720,9 @@
#葉月 ?????????? 876 0x???-0x???
#Slient Knight 888 0x
ff0-0xff
f
!
setname
0
x
ff
c
龙将
!
setname
0
x
ff
d
迅刃机
#Slient Knight 888 0x
9e0-0x9e
f
!
setname
0
x
9e
c
龙将
!
setname
0
x
9e
d
迅刃机
#小鸟 ?????????? 889 0x960-0x96f
!
setname
0
x960
折幸
...
...
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