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
Ai
ygopro-222DIY-cards
Commits
7751e37c
Commit
7751e37c
authored
Dec 26, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
5a055adf
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
58 additions
and
65 deletions
+58
-65
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c23000300.lua
expansions/script/c23000300.lua
+2
-2
expansions/script/c23000301.lua
expansions/script/c23000301.lua
+2
-2
expansions/script/c23000302.lua
expansions/script/c23000302.lua
+3
-3
expansions/script/c23000303.lua
expansions/script/c23000303.lua
+3
-3
expansions/script/c23000304.lua
expansions/script/c23000304.lua
+3
-3
expansions/script/c23000305.lua
expansions/script/c23000305.lua
+3
-3
expansions/script/c23000306.lua
expansions/script/c23000306.lua
+3
-3
expansions/script/c23000307.lua
expansions/script/c23000307.lua
+2
-2
expansions/script/c23000308.lua
expansions/script/c23000308.lua
+3
-3
expansions/script/c23000309.lua
expansions/script/c23000309.lua
+5
-5
expansions/script/c23000310.lua
expansions/script/c23000310.lua
+2
-2
expansions/script/c23000311.lua
expansions/script/c23000311.lua
+1
-1
expansions/script/c23000312.lua
expansions/script/c23000312.lua
+4
-4
expansions/script/c23000313.lua
expansions/script/c23000313.lua
+1
-1
expansions/script/c23000314.lua
expansions/script/c23000314.lua
+4
-4
expansions/script/c23000315.lua
expansions/script/c23000315.lua
+1
-1
expansions/script/c23000316.lua
expansions/script/c23000316.lua
+2
-2
expansions/script/c23000317.lua
expansions/script/c23000317.lua
+5
-5
expansions/script/c23000318.lua
expansions/script/c23000318.lua
+3
-3
expansions/script/c23000319.lua
expansions/script/c23000319.lua
+2
-2
expansions/script/c23000350.lua
expansions/script/c23000350.lua
+2
-2
expansions/strings.conf
expansions/strings.conf
+2
-9
No files found.
expansions/222DIY.cdb
View file @
7751e37c
No preview for this file type
expansions/script/c23000300.lua
View file @
7751e37c
...
@@ -16,7 +16,7 @@ function c23000300.initial_effect(c)
...
@@ -16,7 +16,7 @@ function c23000300.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e2
:
SetValue
(
500
)
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--defense
--defense
...
@@ -25,7 +25,7 @@ function c23000300.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c23000300.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c23000300
.
filter
(
c
)
function
c23000300
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
5
b
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000300
.
spcon
(
e
,
c
)
function
c23000300
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
...
...
expansions/script/c23000301.lua
View file @
7751e37c
...
@@ -20,7 +20,7 @@ function c23000301.initial_effect(c)
...
@@ -20,7 +20,7 @@ function c23000301.initial_effect(c)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e3
:
SetValue
(
500
)
e3
:
SetValue
(
500
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--defense
--defense
...
@@ -29,7 +29,7 @@ function c23000301.initial_effect(c)
...
@@ -29,7 +29,7 @@ function c23000301.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c23000301
.
thfilter
(
c
)
function
c23000301
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c23000301
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23000301
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c23000301
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c23000301
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c23000302.lua
View file @
7751e37c
...
@@ -19,7 +19,7 @@ function c23000302.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c23000302.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e2
:
SetValue
(
500
)
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--defense
--defense
...
@@ -28,7 +28,7 @@ function c23000302.initial_effect(c)
...
@@ -28,7 +28,7 @@ function c23000302.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c23000302
.
spfilter
(
c
,
e
,
tp
)
function
c23000302
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
23000302
)
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
23000302
)
end
end
function
c23000302
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23000302
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
@@ -53,7 +53,7 @@ function c23000302.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +53,7 @@ function c23000302.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c23000302
.
splimit
(
e
,
c
)
function
c23000302
.
splimit
(
e
,
c
)
return
not
c
:
IsSetCard
(
0x3
5
b
)
return
not
c
:
IsSetCard
(
0x3
6
b
)
end
end
...
...
expansions/script/c23000303.lua
View file @
7751e37c
...
@@ -19,7 +19,7 @@ function c23000303.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c23000303.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e2
:
SetValue
(
500
)
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--defense
--defense
...
@@ -32,11 +32,11 @@ function c23000303.initial_effect(c)
...
@@ -32,11 +32,11 @@ function c23000303.initial_effect(c)
e4
:
SetCode
(
EFFECT_PIERCE
)
e4
:
SetCode
(
EFFECT_PIERCE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c23000303
.
spfilter2
(
c
,
e
,
tp
)
function
c23000303
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23000303
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23000303
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000303
.
spfilter2
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000303
.
spfilter2
(
chkc
,
e
,
tp
)
end
...
...
expansions/script/c23000304.lua
View file @
7751e37c
...
@@ -19,7 +19,7 @@ function c23000304.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c23000304.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e2
:
SetValue
(
500
)
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--defense
--defense
...
@@ -39,7 +39,7 @@ function c23000304.initial_effect(c)
...
@@ -39,7 +39,7 @@ function c23000304.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c23000304
.
spfilter2
(
c
,
e
,
tp
)
function
c23000304
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23000304
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23000304
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000304
.
spfilter2
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000304
.
spfilter2
(
chkc
,
e
,
tp
)
end
...
@@ -56,7 +56,7 @@ function c23000304.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function c23000304.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c23000304
.
cfilter
(
c
)
function
c23000304
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
5
b
)
and
not
c
:
IsCode
(
23000304
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
6
b
)
and
not
c
:
IsCode
(
23000304
)
end
end
function
c23000304
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23000304
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c23000304
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c23000304
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
e
:
GetHandler
())
...
...
expansions/script/c23000305.lua
View file @
7751e37c
...
@@ -9,7 +9,7 @@ function c23000305.initial_effect(c)
...
@@ -9,7 +9,7 @@ function c23000305.initial_effect(c)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e1
:
SetCountLimit
(
2
)
e1
:
SetCountLimit
(
2
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -19,7 +19,7 @@ function c23000305.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c23000305.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e2
:
SetValue
(
500
)
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--defense
--defense
...
@@ -56,7 +56,7 @@ function c23000305.initial_effect(c)
...
@@ -56,7 +56,7 @@ function c23000305.initial_effect(c)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
c23000305
.
spfilter2
(
c
,
e
,
tp
)
function
c23000305
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23000305
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23000305
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000305
.
spfilter2
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000305
.
spfilter2
(
chkc
,
e
,
tp
)
end
...
...
expansions/script/c23000306.lua
View file @
7751e37c
...
@@ -17,7 +17,7 @@ function c23000306.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c23000306.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e2
:
SetValue
(
500
)
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--defense
--defense
...
@@ -40,7 +40,7 @@ function c23000306.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -40,7 +40,7 @@ function c23000306.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c23000306
.
filter
(
c
)
function
c23000306
.
filter
(
c
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
function
c23000306
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23000306
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c23000306
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c23000306
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
@@ -55,7 +55,7 @@ function c23000306.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,7 +55,7 @@ function c23000306.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c23000306
.
slevel
(
e
,
c
)
function
c23000306
.
slevel
(
e
,
c
)
if
c
:
IsSetCard
(
0x3
5
b
)
then
if
c
:
IsSetCard
(
0x3
6
b
)
then
return
e
:
GetHandler
():
GetLevel
()
+
4
*
65536
return
e
:
GetHandler
():
GetLevel
()
+
4
*
65536
else
else
return
e
:
GetHandler
():
GetLevel
()
return
e
:
GetHandler
():
GetLevel
()
...
...
expansions/script/c23000307.lua
View file @
7751e37c
...
@@ -20,7 +20,7 @@ function c23000307.initial_effect(c)
...
@@ -20,7 +20,7 @@ function c23000307.initial_effect(c)
e4
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e4
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e4
:
SetValue
(
500
)
e4
:
SetValue
(
500
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--defense
--defense
...
@@ -54,7 +54,7 @@ function c23000307.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c23000307.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c23000307
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c23000307
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
return
not
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
end
...
...
expansions/script/c23000308.lua
View file @
7751e37c
...
@@ -19,7 +19,7 @@ function c23000308.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c23000308.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e2
:
SetValue
(
500
)
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--defense
--defense
...
@@ -40,7 +40,7 @@ function c23000308.initial_effect(c)
...
@@ -40,7 +40,7 @@ function c23000308.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c23000308
.
spfilter2
(
c
,
e
,
tp
)
function
c23000308
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23000308
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23000308
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000308
.
spfilter2
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000308
.
spfilter2
(
chkc
,
e
,
tp
)
end
...
@@ -57,7 +57,7 @@ function c23000308.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,7 +57,7 @@ function c23000308.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c23000308
.
cfilter
(
c
)
function
c23000308
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
c23000308
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23000308
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
aux
.
dscon
()
return
aux
.
dscon
()
...
...
expansions/script/c23000309.lua
View file @
7751e37c
--赛须眉·公孙玥
--赛须眉·公孙玥
function
c23000309
.
initial_effect
(
c
)
function
c23000309
.
initial_effect
(
c
)
aux
.
AddMaterialCodeList
(
c
,
23000303
)
aux
.
AddMaterialCodeList
(
c
,
23000303
)
--synchro summon
--synchro summon
...
@@ -12,7 +12,7 @@ function c23000309.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c23000309.initial_effect(c)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e1
:
SetValue
(
c23000309
.
indct
)
e1
:
SetValue
(
c23000309
.
indct
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atk
--atk
...
@@ -61,7 +61,7 @@ function c23000309.indct(e,re,r,rp)
...
@@ -61,7 +61,7 @@ function c23000309.indct(e,re,r,rp)
end
end
function
c23000309
.
actcon
(
e
)
function
c23000309
.
actcon
(
e
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
return
a
and
a
:
IsControler
(
e
:
GetHandlerPlayer
())
and
a
:
IsSetCard
(
0x3
5
b
)
return
a
and
a
:
IsControler
(
e
:
GetHandlerPlayer
())
and
a
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000309
.
aclimit
(
e
,
re
,
tp
)
function
c23000309
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
...
@@ -71,11 +71,11 @@ function c23000309.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -71,11 +71,11 @@ function c23000309.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c23000309
.
spfilter1
(
c
,
e
,
tp
)
function
c23000309
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
GetLevel
()
>
0
and
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
GetLevel
()
>
0
and
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingTarget
(
c23000309
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
c
:
GetLevel
(),
e
,
tp
)
and
Duel
.
IsExistingTarget
(
c23000309
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
c
:
GetLevel
(),
e
,
tp
)
end
end
function
c23000309
.
spfilter2
(
c
,
lv
,
e
,
tp
)
function
c23000309
.
spfilter2
(
c
,
lv
,
e
,
tp
)
return
c
:
IsLevel
(
lv
)
and
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevel
(
lv
)
and
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23000309
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23000309
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
...
...
expansions/script/c23000310.lua
View file @
7751e37c
--白马夜袭
--白马夜袭
function
c23000310
.
initial_effect
(
c
)
function
c23000310
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -31,7 +31,7 @@ function c23000310.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function c23000310.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c23000310
.
filter
(
c
)
function
c23000310
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
5
b
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000310
.
handcon
(
e
)
function
c23000310
.
handcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c23000310
.
filter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
2
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c23000310
.
filter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
2
,
nil
)
...
...
expansions/script/c23000311.lua
View file @
7751e37c
...
@@ -15,7 +15,7 @@ function c23000311.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,7 +15,7 @@ function c23000311.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
end
end
function
c23000311
.
filter
(
c
,
e
,
tp
)
function
c23000311
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23000311
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23000311
.
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
...
...
expansions/script/c23000312.lua
View file @
7751e37c
...
@@ -13,7 +13,7 @@ function c23000312.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c23000312.initial_effect(c)
Duel
.
AddCustomActivityCounter
(
23000312
,
ACTIVITY_SPSUMMON
,
c23000312
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
23000312
,
ACTIVITY_SPSUMMON
,
c23000312
.
counterfilter
)
end
end
function
c23000312
.
counterfilter
(
c
)
function
c23000312
.
counterfilter
(
c
)
return
c
:
IsSetCard
(
0x3
5
b
)
return
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000312
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23000312
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
23000312
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
23000312
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
...
@@ -28,13 +28,13 @@ function c23000312.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,13 +28,13 @@ function c23000312.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c23000312
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c23000312
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsSetCard
(
0x3
5
b
)
return
not
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000312
.
filter
(
c
)
function
c23000312
.
filter
(
c
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
c23000312
.
spfilter
(
c
,
e
,
tp
)
function
c23000312
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23000312
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23000312
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c23000312
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c23000312
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c23000313.lua
View file @
7751e37c
...
@@ -90,7 +90,7 @@ function c23000313.eqlimit(e,c)
...
@@ -90,7 +90,7 @@ function c23000313.eqlimit(e,c)
return
c
:
IsRace
(
RACE_WARRIOR
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
return
c
:
IsRace
(
RACE_WARRIOR
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
end
function
c23000313
.
slevel
(
e
,
c
)
function
c23000313
.
slevel
(
e
,
c
)
if
c
:
IsSetCard
(
0x3
5
b
)
then
if
c
:
IsSetCard
(
0x3
6
b
)
then
return
e
:
GetHandler
():
GetLevel
()
+
4
*
65536
return
e
:
GetHandler
():
GetLevel
()
+
4
*
65536
else
else
return
e
:
GetHandler
():
GetLevel
()
return
e
:
GetHandler
():
GetLevel
()
...
...
expansions/script/c23000314.lua
View file @
7751e37c
...
@@ -31,7 +31,7 @@ function c23000314.initial_effect(c)
...
@@ -31,7 +31,7 @@ function c23000314.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c23000314
.
cfilter
(
c
)
function
c23000314
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
5
b
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000314
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23000314
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c23000314
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c23000314
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
@@ -74,16 +74,16 @@ function c23000314.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,16 +74,16 @@ function c23000314.op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c23000314
.
splimit
(
e
,
c
)
function
c23000314
.
splimit
(
e
,
c
)
return
not
c
:
IsSetCard
(
0x3
5
b
)
return
not
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000314
.
atktg
(
e
,
c
)
function
c23000314
.
atktg
(
e
,
c
)
return
c
:
IsSetCard
(
0x3
5
b
)
return
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000314
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23000314
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
function
c23000314
.
tdfilter
(
c
)
function
c23000314
.
tdfilter
(
c
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsAbleToDeck
()
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsAbleToDeck
()
end
end
function
c23000314
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23000314
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000314
.
tdfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000314
.
tdfilter
(
chkc
)
end
...
...
expansions/script/c23000315.lua
View file @
7751e37c
...
@@ -35,7 +35,7 @@ function c23000315.condition2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,7 +35,7 @@ function c23000315.condition2(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c23000315
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
and
aux
.
dscon
(
e
)
and
aux
.
exccon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c23000315
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
and
aux
.
dscon
(
e
)
and
aux
.
exccon
(
e
)
end
end
function
c23000315
.
atkfilter
(
c
)
function
c23000315
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
5
b
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000315
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23000315
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c23000315
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c23000315
.
filter
(
chkc
)
end
...
...
expansions/script/c23000316.lua
View file @
7751e37c
...
@@ -23,7 +23,7 @@ function c23000316.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c23000316.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c23000316
.
desfilter
(
c
)
function
c23000316
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
5
b
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000316
.
desfilter2
(
c
,
g
)
function
c23000316
.
desfilter2
(
c
,
g
)
return
g
:
IsContains
(
c
)
return
g
:
IsContains
(
c
)
...
@@ -54,7 +54,7 @@ function c23000316.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c23000316.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c23000316
.
atkfilter
(
c
)
function
c23000316
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
5
b
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000316
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23000316
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c23000316
.
atkfilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c23000316
.
atkfilter
(
chkc
)
end
...
...
expansions/script/c23000317.lua
View file @
7751e37c
...
@@ -33,7 +33,7 @@ function c23000317.initial_effect(c)
...
@@ -33,7 +33,7 @@ function c23000317.initial_effect(c)
e4
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e4
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e4
:
SetValue
(
500
)
e4
:
SetValue
(
500
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--defense
--defense
...
@@ -45,7 +45,7 @@ function c23000317.synfilter1(c,syncard,tuner,f)
...
@@ -45,7 +45,7 @@ function c23000317.synfilter1(c,syncard,tuner,f)
return
c
:
IsFaceup
()
and
c
:
IsCanBeSynchroMaterial
(
syncard
,
tuner
)
and
(
f
==
nil
or
f
(
c
,
syncard
))
return
c
:
IsFaceup
()
and
c
:
IsCanBeSynchroMaterial
(
syncard
,
tuner
)
and
(
f
==
nil
or
f
(
c
,
syncard
))
end
end
function
c23000317
.
synfilter2
(
c
,
syncard
,
tuner
,
f
)
function
c23000317
.
synfilter2
(
c
,
syncard
,
tuner
,
f
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
,
tuner
)
and
(
f
==
nil
or
f
(
c
,
syncard
))
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
,
tuner
)
and
(
f
==
nil
or
f
(
c
,
syncard
))
end
end
function
c23000317
.
syncheck
(
c
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
)
function
c23000317
.
syncheck
(
c
,
g
,
mg
,
tp
,
lv
,
syncard
,
minc
,
maxc
)
g
:
AddCard
(
c
)
g
:
AddCard
(
c
)
...
@@ -69,7 +69,7 @@ function c23000317.syntg(e,syncard,f,min,max)
...
@@ -69,7 +69,7 @@ function c23000317.syntg(e,syncard,f,min,max)
if
lv
<=
c
:
GetLevel
()
then
return
false
end
if
lv
<=
c
:
GetLevel
()
then
return
false
end
local
g
=
Group
.
FromCards
(
c
)
local
g
=
Group
.
FromCards
(
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c23000317
.
synfilter1
,
syncard
:
GetControler
(),
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
local
mg
=
Duel
.
GetMatchingGroup
(
c23000317
.
synfilter1
,
syncard
:
GetControler
(),
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
if
syncard
:
IsSetCard
(
0x3
5
b
)
then
if
syncard
:
IsSetCard
(
0x3
6
b
)
then
local
exg
=
Duel
.
GetMatchingGroup
(
c23000317
.
synfilter2
,
syncard
:
GetControler
(),
LOCATION_HAND
,
0
,
c
,
syncard
,
c
,
f
)
local
exg
=
Duel
.
GetMatchingGroup
(
c23000317
.
synfilter2
,
syncard
:
GetControler
(),
LOCATION_HAND
,
0
,
c
,
syncard
,
c
,
f
)
mg
:
Merge
(
exg
)
mg
:
Merge
(
exg
)
end
end
...
@@ -82,7 +82,7 @@ function c23000317.synop(e,tp,eg,ep,ev,re,r,rp,syncard,f,min,max)
...
@@ -82,7 +82,7 @@ function c23000317.synop(e,tp,eg,ep,ev,re,r,rp,syncard,f,min,max)
local
lv
=
syncard
:
GetLevel
()
local
lv
=
syncard
:
GetLevel
()
local
g
=
Group
.
FromCards
(
c
)
local
g
=
Group
.
FromCards
(
c
)
local
mg
=
Duel
.
GetMatchingGroup
(
c23000317
.
synfilter1
,
syncard
:
GetControler
(),
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
local
mg
=
Duel
.
GetMatchingGroup
(
c23000317
.
synfilter1
,
syncard
:
GetControler
(),
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
if
syncard
:
IsSetCard
(
0x3
5
b
)
then
if
syncard
:
IsSetCard
(
0x3
6
b
)
then
local
exg
=
Duel
.
GetMatchingGroup
(
c23000317
.
synfilter2
,
syncard
:
GetControler
(),
LOCATION_HAND
,
0
,
c
,
syncard
,
c
,
f
)
local
exg
=
Duel
.
GetMatchingGroup
(
c23000317
.
synfilter2
,
syncard
:
GetControler
(),
LOCATION_HAND
,
0
,
c
,
syncard
,
c
,
f
)
mg
:
Merge
(
exg
)
mg
:
Merge
(
exg
)
end
end
...
@@ -101,7 +101,7 @@ function c23000317.synop(e,tp,eg,ep,ev,re,r,rp,syncard,f,min,max)
...
@@ -101,7 +101,7 @@ function c23000317.synop(e,tp,eg,ep,ev,re,r,rp,syncard,f,min,max)
Duel
.
SetSynchroMaterial
(
g
)
Duel
.
SetSynchroMaterial
(
g
)
end
end
function
c23000317
.
hsyntg
(
e
,
c
)
function
c23000317
.
hsyntg
(
e
,
c
)
return
c
:
IsSetCard
(
0x3
5
b
)
return
c
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000317
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23000317
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
...
...
expansions/script/c23000318.lua
View file @
7751e37c
...
@@ -30,7 +30,7 @@ function c23000318.initial_effect(c)
...
@@ -30,7 +30,7 @@ function c23000318.initial_effect(c)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e3
:
SetValue
(
500
)
e3
:
SetValue
(
500
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--defense
--defense
...
@@ -40,7 +40,7 @@ function c23000318.initial_effect(c)
...
@@ -40,7 +40,7 @@ function c23000318.initial_effect(c)
end
end
function
c23000318
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23000318
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttackTarget
()
local
at
=
Duel
.
GetAttackTarget
()
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
at
:
IsControler
(
tp
)
and
at
:
IsFaceup
()
and
at
:
IsSetCard
(
0x3
5
b
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
at
:
IsControler
(
tp
)
and
at
:
IsFaceup
()
and
at
:
IsSetCard
(
0x3
6
b
)
end
end
function
c23000318
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c23000318
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -57,7 +57,7 @@ function c23000318.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,7 +57,7 @@ function c23000318.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c23000318
.
cfilter
(
c
,
tp
)
function
c23000318
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
tp
)
end
end
function
c23000318
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23000318
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
~=
1
-
tp
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
rp
~=
1
-
tp
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
...
...
expansions/script/c23000319.lua
View file @
7751e37c
...
@@ -19,7 +19,7 @@ function c23000319.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c23000319.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e2
:
SetValue
(
500
)
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--defense
--defense
...
@@ -37,7 +37,7 @@ function c23000319.initial_effect(c)
...
@@ -37,7 +37,7 @@ function c23000319.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c23000319
.
spfilter2
(
c
,
e
,
tp
)
function
c23000319
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3
5
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x3
6
b
)
and
c
:
IsLevel
(
3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c23000319
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23000319
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000319
.
spfilter2
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c23000319
.
spfilter2
(
chkc
,
e
,
tp
)
end
...
...
expansions/script/c23000350.lua
View file @
7751e37c
local
m
=
23000350
local
m
=
23000350
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
--白马队率 子龙
--白马队率 子龙
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
...
@@ -20,7 +20,7 @@ function cm.initial_effect(c)
...
@@ -20,7 +20,7 @@ function cm.initial_effect(c)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
5
b
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x3
6
b
))
e2
:
SetValue
(
500
)
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--defense
--defense
...
...
expansions/strings.conf
View file @
7751e37c
...
@@ -179,7 +179,6 @@
...
@@ -179,7 +179,6 @@
!
setname
0
x6b5e
御龙士
!
setname
0
x6b5e
御龙士
#PurpleNightfall 114 0x970-0x97f
#PurpleNightfall 114 0x970-0x97f
#【2021年12月31日前禁止投稿】
!
setname
0
x6978
龙宫城
!
setname
0
x6978
龙宫城
!
setname
0
x97a
虚诞
!
setname
0
x97a
虚诞
!
setname
0
x97c
珂拉琪
!
setname
0
x97c
珂拉琪
...
@@ -391,7 +390,6 @@
...
@@ -391,7 +390,6 @@
!
counter
0
x12e7
碟子指示物
!
counter
0
x12e7
碟子指示物
#Candy 1195203843 148 0x800-0x80f
#Candy 1195203843 148 0x800-0x80f
#【2021年12月31日前禁止投稿】
!
setname
0
x4800
陆星
!
setname
0
x4800
陆星
!
setname
0
x480b
星际战舰
!
setname
0
x480b
星际战舰
!
counter
0
x48f
能量指示物
!
counter
0
x48f
能量指示物
...
@@ -588,7 +586,6 @@
...
@@ -588,7 +586,6 @@
!
setname
0
x9ff
从者
!
setname
0
x9ff
从者
#持剑者 380518667 221 0x8f0-0x8ff
#持剑者 380518667 221 0x8f0-0x8ff
#【2021年12月31日前禁止投稿】
!
setname
0
x8fa
源键
!
setname
0
x8fa
源键
#兔锅 1874883039 222
#兔锅 1874883039 222
...
@@ -601,10 +598,8 @@
...
@@ -601,10 +598,8 @@
!
setname
0
x261
传灵
!
setname
0
x261
传灵
!
setname
0
x262
占星少女
!
setname
0
x262
占星少女
#拳定天下 1805927248 230 0x350-0x35f
#拳定天下 1805927248 230 0x360-0x36f
#【2021年12月31日前禁止投稿】
!
setname
0
x36b
白马义从
!
setname
0
x351
奇妙冒险团
!
setname
0
x35b
白马义从
#天堂的路人 547998027 243
#天堂的路人 547998027 243
#AddCodeList(24300021) 迦拉克隆记述
#AddCodeList(24300021) 迦拉克隆记述
...
@@ -895,7 +890,6 @@
...
@@ -895,7 +890,6 @@
#Millux 498433112 500
#Millux 498433112 500
#积木 - 502 0xcb0-0xcbf
#积木 - 502 0xcb0-0xcbf
#【2021年12月31日前禁止投稿】
!
setname
0
xcb1
数码兽
!
setname
0
xcb1
数码兽
!
setname
0
xcb2
T
·
F
!
setname
0
xcb2
T
·
F
!
setname
0
xcb3
季神
!
setname
0
xcb3
季神
...
@@ -911,7 +905,6 @@
...
@@ -911,7 +905,6 @@
#DJ YOSHITAKA 2207455797 525
#DJ YOSHITAKA 2207455797 525
#AD钙 540551322 537 0x530-0x53f
#AD钙 540551322 537 0x530-0x53f
#【2021年12月31日前禁止投稿】
!
setname
0
x530
惧轮
!
setname
0
x530
惧轮
!
setname
0
x533
圆盘生物
!
setname
0
x533
圆盘生物
!
setname
0
x534
幻海袭
!
setname
0
x534
幻海袭
...
...
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