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
8141520c
Commit
8141520c
authored
Sep 02, 2025
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ac9a2e1d
Pipeline
#40403
failed with stages
in 3 minutes and 41 seconds
Changes
11
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
75 additions
and
77 deletions
+75
-77
expansions/script/c12400132.lua
expansions/script/c12400132.lua
+3
-4
expansions/script/c1300900.lua
expansions/script/c1300900.lua
+4
-4
expansions/script/c16400300.lua
expansions/script/c16400300.lua
+1
-1
expansions/script/c16400495.lua
expansions/script/c16400495.lua
+4
-3
expansions/script/c16400780.lua
expansions/script/c16400780.lua
+49
-53
expansions/script/c18031413.lua
expansions/script/c18031413.lua
+9
-9
expansions/script/c33500090.lua
expansions/script/c33500090.lua
+1
-0
expansions/script/c33500092.lua
expansions/script/c33500092.lua
+1
-0
expansions/script/c5012614.lua
expansions/script/c5012614.lua
+1
-1
expansions/script/c5012629.lua
expansions/script/c5012629.lua
+1
-1
expansions/script/c5012637.lua
expansions/script/c5012637.lua
+1
-1
No files found.
expansions/script/c12400132.lua
View file @
8141520c
...
@@ -183,7 +183,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -183,7 +183,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
for
i
=
1
,
ss
do
for
i
=
1
,
ss
do
if
Duel
.
Recover
(
tp
,
400
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
Recover
(
tp
,
400
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
if
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
tg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
tc
=
tg
:
RandomSelect
(
tp
,
1
)
local
tc
=
tg
:
RandomSelect
(
tp
,
1
)
if
tc
then
if
tc
then
local
preatk
=
tc
:
GetAttack
()
local
preatk
=
tc
:
GetAttack
()
...
@@ -202,10 +202,9 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -202,10 +202,9 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
if
(
preatk
~=
0
and
tc
:
IsAttack
(
0
))
or
(
predef
~=
0
and
tc
:
IsDefense
(
0
))
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
if
(
preatk
~=
0
and
tc
:
IsAttack
(
0
))
or
(
predef
~=
0
and
tc
:
IsDefense
(
0
))
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
else
Duel
.
Damage
(
1
-
tp
,
200
,
REASON_EFFECT
)
end
end
else
Duel
.
Damage
(
1
-
tp
,
200
,
REASON_EFFECT
)
end
end
end
end
end
end
...
...
expansions/script/c1300900.lua
View file @
8141520c
...
@@ -20,7 +20,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -20,7 +20,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
0xff
,
0
,
nil
)
for
tc
in
aux
.
Next
(
g
)
do
for
tc
in
aux
.
Next
(
g
)
do
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -83,7 +83,7 @@ function s.rsop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,7 +83,7 @@ function s.rsop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Group
.
__add
(
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
),
Duel
.
GetOverlayGroup
(
tp
,
1
,
0
))
local
sg
=
Group
.
__add
(
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
0xff
,
0
,
nil
),
Duel
.
GetOverlayGroup
(
tp
,
1
,
0
))
local
g
=
sg
:
Filter
(
function
(
c
)
return
c
:
GetFlagEffect
(
id
)
==
0
end
,
nil
)
local
g
=
sg
:
Filter
(
function
(
c
)
return
c
:
GetFlagEffect
(
id
)
==
0
end
,
nil
)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
local
cp
=
{}
local
cp
=
{}
...
@@ -110,7 +110,7 @@ function s.op1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -110,7 +110,7 @@ function s.op1(e,tp,eg,ep,ev,re,r,rp)
Card
.
RegisterEffect
=
f
Card
.
RegisterEffect
=
f
end
end
function
s
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Group
.
__add
(
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
),
Duel
.
GetOverlayGroup
(
tp
,
1
,
0
))
local
sg
=
Group
.
__add
(
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
0xff
,
0
,
nil
),
Duel
.
GetOverlayGroup
(
tp
,
1
,
0
))
local
g
=
sg
:
Filter
(
function
(
c
)
return
c
:
GetFlagEffect
(
id
+
o
)
==
0
end
,
nil
)
local
g
=
sg
:
Filter
(
function
(
c
)
return
c
:
GetFlagEffect
(
id
+
o
)
==
0
end
,
nil
)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
local
cp
=
{}
local
cp
=
{}
...
@@ -137,7 +137,7 @@ function s.op2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -137,7 +137,7 @@ function s.op2(e,tp,eg,ep,ev,re,r,rp)
Card
.
RegisterEffect
=
f
Card
.
RegisterEffect
=
f
end
end
function
s
.
op3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
op3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Group
.
__add
(
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
),
Duel
.
GetOverlayGroup
(
tp
,
1
,
0
))
local
sg
=
Group
.
__add
(
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
0xff
,
0
,
nil
),
Duel
.
GetOverlayGroup
(
tp
,
1
,
0
))
local
g
=
sg
:
Filter
(
function
(
c
)
return
c
:
GetFlagEffect
(
id
+
o
*
2
)
==
0
end
,
nil
)
local
g
=
sg
:
Filter
(
function
(
c
)
return
c
:
GetFlagEffect
(
id
+
o
*
2
)
==
0
end
,
nil
)
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
local
cp
=
{}
local
cp
=
{}
...
...
expansions/script/c16400300.lua
View file @
8141520c
...
@@ -28,7 +28,7 @@ function c16400300.initial_effect(c)
...
@@ -28,7 +28,7 @@ function c16400300.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c16400300
.
thfilter
(
c
)
function
c16400300
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0xc
e9
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xc
ce1
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToHand
()
end
end
function
c16400300
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16400300
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c16400300
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c16400300
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
expansions/script/c16400495.lua
View file @
8141520c
...
@@ -22,14 +22,15 @@ function s.initial_effect(c)
...
@@ -22,14 +22,15 @@ function s.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
id
+
1
)
e2
:
SetCountLimit
(
1
,
id
+
o
)
e2
:
SetCondition
(
s
.
rmcon
)
e2
:
SetCondition
(
s
.
rmcon
)
e2
:
SetTarget
(
s
.
rmtg
)
e2
:
SetTarget
(
s
.
rmtg
)
e2
:
SetOperation
(
s
.
rmop
)
e2
:
SetOperation
(
s
.
rmop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
s
.
cfilter
(
c
)
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xce9
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xce9
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
end
...
@@ -45,7 +46,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +46,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
s
.
spfilter1
(
c
,
e
,
tp
)
function
s
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0xce9
)
and
e
:
GetHandler
():
IsAbleToRemove
()
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0xce9
)
and
e
:
GetHandler
():
IsAbleToRemove
()
end
end
function
s
.
rmfilter
(
c
,
tp
,
e
)
function
s
.
rmfilter
(
c
,
tp
,
e
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
1
-
tp
)
and
c
:
IsAbleToRemove
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsControler
(
1
-
tp
)
and
c
:
IsAbleToRemove
()
and
c
:
IsCanBeEffectTarget
(
e
)
...
...
expansions/script/c16400780.lua
View file @
8141520c
--光之战士
--光之国战线
local
m
=
16400780
local
s
,
id
,
o
=
GetID
()
local
cm
=
_G
[
"c"
..
m
]
function
s
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
1
,
m
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
--gain atk
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
cm
.
sptg
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
function
(
e
,
c
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_DINOSAUR
))
return
not
c
:
IsSetCard
(
0xce9
)
e2
:
SetValue
(
500
)
end
)
c
:
RegisterEffect
(
e2
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_LEAVE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCondition
(
cm
.
thcon
)
e2
:
SetTarget
(
cm
.
thtg
)
e2
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--decrease tribute
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_SUMMON_PROC
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e3
:
SetCondition
(
s
.
ntcon
)
e3
:
SetTarget
(
s
.
nttg
)
c
:
RegisterEffect
(
e3
)
--search
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e4
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCountLimit
(
1
,
id
)
e4
:
SetCost
(
s
.
thcost
)
e4
:
SetTarget
(
s
.
thtg
)
e4
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e4
)
end
end
function
cm
.
filter
(
c
,
e
,
tp
)
function
s
.
ntcon
(
e
,
c
,
minc
)
return
c
:
IsSetCard
(
0xce9
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
nttg
(
e
,
c
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
return
c
:
IsLevelAbove
(
5
)
and
c
:
IsSetCard
(
0xce9
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
cfilter
(
c
)
if
Duel
.
GetMZoneCount
(
tp
)
<=
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
return
c
:
IsSetCard
(
0xce9
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
and
c
:
IsFaceupEx
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
return
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
cm
.
filter1
(
c
)
function
s
.
filter
(
c
)
return
c
:
IsSetCard
(
0xce9
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xce9
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
#
g
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
\ No newline at end of file
expansions/script/c18031413.lua
View file @
8141520c
...
@@ -24,16 +24,16 @@ end
...
@@ -24,16 +24,16 @@ end
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
0
local
ct
=
0
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
s
.
thfilter
1
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
s
.
thfilter
2
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
if
g
:
GetClassCount
(
Card
.
GetCode
)
>
2
then
ct
=
ct
+
1
end
if
g
:
GetClassCount
(
Card
.
GetCode
)
>
1
then
ct
=
ct
+
1
end
if
g2
:
GetClassCount
(
Card
.
GetCode
)
>
2
then
ct
=
ct
+
1
end
if
g2
:
GetClassCount
(
Card
.
GetCode
)
>
1
then
ct
=
ct
+
1
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
ct
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
ct
,
REASON_COST
+
REASON_DISCARD
)
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
e
:
SetLabel
(
og
:
GetCount
())
e
:
SetLabel
(
og
:
GetCount
())
end
end
function
s
.
thfilter1
(
c
)
function
s
.
thfilter1
(
c
)
return
c
:
IsSetCard
(
0x36ec
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
Is
FaceupEx
()
and
c
:
Is
SetCard
(
0x36ec
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
end
function
s
.
thfilter2
(
c
)
function
s
.
thfilter2
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x36ec
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x36ec
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
@@ -41,15 +41,15 @@ end
...
@@ -41,15 +41,15 @@ end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
s
.
thfilter2
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
s
.
thfilter2
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
if
chk
==
0
then
return
g
:
GetClassCount
(
Card
.
GetCode
)
>
2
if
chk
==
0
then
return
g
:
GetClassCount
(
Card
.
GetCode
)
>
1
or
g2
:
GetClassCount
(
Card
.
GetCode
)
>
2
end
or
g2
:
GetClassCount
(
Card
.
GetCode
)
>
1
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
2
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
thfilter2
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
thfilter2
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
local
b1
=
g
:
GetClassCount
(
Card
.
GetCode
)
>
2
local
b1
=
g
:
GetClassCount
(
Card
.
GetCode
)
>
1
local
b2
=
g2
:
GetClassCount
(
Card
.
GetCode
)
>
2
local
b2
=
g2
:
GetClassCount
(
Card
.
GetCode
)
>
1
local
et
=
0
local
et
=
0
if
b1
then
et
=
et
+
1
end
if
b1
then
et
=
et
+
1
end
if
b2
then
et
=
et
+
1
end
if
b2
then
et
=
et
+
1
end
...
...
expansions/script/c33500090.lua
View file @
8141520c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
local
m
=
33500090
local
m
=
33500090
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--search
--search
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e0
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
expansions/script/c33500092.lua
View file @
8141520c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
local
m
=
33500092
local
m
=
33500092
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--tograve
--tograve
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
...
...
expansions/script/c5012614.lua
View file @
8141520c
...
@@ -37,7 +37,7 @@ function s.initial_effect(c)
...
@@ -37,7 +37,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
s
.
sfliter
(
c
)
function
s
.
sfliter
(
c
)
return
c
.
MoJin
==
true
return
c
.
MoJin
==
true
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
s
.
damcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
damcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c5012629.lua
View file @
8141520c
...
@@ -27,7 +27,7 @@ function s.initial_effect(c)
...
@@ -27,7 +27,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
s
.
sfliter
(
c
)
function
s
.
sfliter
(
c
)
return
c
.
MoJin
return
c
.
MoJin
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
s
.
afilter
(
c
)
function
s
.
afilter
(
c
)
...
...
expansions/script/c5012637.lua
View file @
8141520c
...
@@ -37,7 +37,7 @@ function s.initial_effect(c)
...
@@ -37,7 +37,7 @@ function s.initial_effect(c)
end
end
end
end
function
s
.
sfliter
(
c
)
function
s
.
sfliter
(
c
)
return
c
.
MoJin
==
true
return
c
.
MoJin
==
true
and
c
:
IsType
(
TYPE_MONSTER
)
end
end
function
s
.
cfilter
(
c
)
--2025.8.23 雪
function
s
.
cfilter
(
c
)
--2025.8.23 雪
return
Duel
.
GetFlagEffect
(
tp
,
id
)
>
0
and
c
:
IsAbleToRemoveAsCost
()
return
Duel
.
GetFlagEffect
(
tp
,
id
)
>
0
and
c
:
IsAbleToRemoveAsCost
()
...
...
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