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
47a1e3c9
Commit
47a1e3c9
authored
Feb 27, 2025
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5a6483d2
Pipeline
#33387
passed with stages
in 53 minutes and 2 seconds
Changes
11
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
37 additions
and
28 deletions
+37
-28
expansions/script/c12400117.lua
expansions/script/c12400117.lua
+7
-9
expansions/script/c18700740.lua
expansions/script/c18700740.lua
+1
-1
expansions/script/c52700744.lua
expansions/script/c52700744.lua
+1
-1
expansions/script/c52700745.lua
expansions/script/c52700745.lua
+1
-0
expansions/script/c52700746.lua
expansions/script/c52700746.lua
+1
-0
expansions/script/c52700747.lua
expansions/script/c52700747.lua
+2
-2
expansions/script/c52700748.lua
expansions/script/c52700748.lua
+2
-2
expansions/script/c62624525.lua
expansions/script/c62624525.lua
+13
-9
expansions/script/c75646630.lua
expansions/script/c75646630.lua
+6
-3
expansions/script/c81907115.lua
expansions/script/c81907115.lua
+1
-1
expansions/script/c81907123.lua
expansions/script/c81907123.lua
+2
-0
No files found.
expansions/script/c12400117.lua
View file @
47a1e3c9
...
...
@@ -3,7 +3,7 @@ local s,id,o=GetID()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
12400119
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
7
,
2
,
s
.
ovfilter
,
aux
.
Stringid
(
id
,
0
),
2
,
s
.
xyzop
)
aux
.
AddXyzProcedure
(
c
,
nil
,
7
,
3
,
s
.
ovfilter
,
aux
.
Stringid
(
id
,
0
),
3
,
s
.
xyzop
)
c
:
EnableReviveLimit
()
--ov
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -69,15 +69,12 @@ function s.xyzop(e,tp,chk)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
s
.
ovfilter2
(
c
,
e
)
return
c
:
IsCanOverlay
()
and
not
(
e
and
c
:
IsImmuneToEffect
(
e
))
end
function
s
.
ovfilter3
(
c
)
return
c
:
IsCanOverlay
()
and
c
:
Is
SetCard
(
0x62a2
,
0xaf1b
)
and
c
:
IsFaceupEx
(
)
return
c
:
IsCanOverlay
()
and
c
:
Is
FaceupEx
()
and
(
c
:
IsSetCard
(
0xaf1b
)
or
aux
.
IsCodeListed
(
c
,
12400119
)
)
end
function
s
.
ovtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
s
.
ovfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
end
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanOverlay
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
()
)
end
end
function
s
.
ovop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -95,12 +92,13 @@ function s.ovop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e2
)
end
local
g1
=
Duel
.
GetMatchingGroup
(
s
.
ovfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanOverlay
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
if
#
g1
>
0
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
sg1
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg1
=
g1
:
Select
(
tp
,
1
,
1
,
c
)
local
g2
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
s
.
ovfilter3
),
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
nil
)
if
Duel
.
Overlay
(
c
,
sg1
)
and
#
g2
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
Overlay
(
c
,
sg1
)
if
#
g2
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
sg2
=
g2
:
Select
(
tp
,
1
,
2
,
nil
)
Duel
.
Overlay
(
c
,
sg2
)
...
...
expansions/script/c18700740.lua
View file @
47a1e3c9
...
...
@@ -136,7 +136,7 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
1
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
if
Duel
.
IsExistingMatchingCard
(
cm
.
tfilter3
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
10
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
then
ct
=
2
end
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tfilter2
,
tp
,
LOCATION_
GRAVE
+
LOCATION_
REMOVED
,
0
,
1
,
ct
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
ct
,
nil
,
e
,
tp
)
if
sg
:
GetCount
()
>
0
then
for
tc
in
aux
.
Next
(
sg
)
do
tc
:
AddMonsterAttribute
(
TYPE_NORMAL
,
ATTRIBUTE_WATER
,
RACE_SPELLCASTER
,
3
,
1000
,
1000
)
...
...
expansions/script/c52700744.lua
View file @
47a1e3c9
...
...
@@ -91,7 +91,7 @@ function s.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
,
true
):
Filter
(
s
.
costfilter
,
nil
)
if
chk
==
0
then
return
rg
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
s
.
costfilter
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
s
.
costfilter
,
1
,
1
,
REASON_COST
,
TRUE
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
:
GetOwner
()
~=
tp
then
...
...
expansions/script/c52700745.lua
View file @
47a1e3c9
--忍·龙 风来
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
52700740
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c52700746.lua
View file @
47a1e3c9
--忍·龙 石英
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
52700740
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c52700747.lua
View file @
47a1e3c9
...
...
@@ -40,7 +40,7 @@ function s.spfilter(c,e,tp)
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
a
=
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_DECK
,
7
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
id
,
e
:
GetHandlerPlayer
(),
ACTIVITY_CHAIN
)
==
0
and
(
a
or
b
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
1
-
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
...
...
@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetCustomActivityCount
(
id
,
e
:
GetHandlerPlayer
(),
ACTIVITY_CHAIN
)
>
0
then
return
end
local
c
=
e
:
GetHandler
()
local
a
=
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
0
,
LOCATION_DECK
,
7
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
b
=
Duel
.
IsExistingMatchingCard
(
s
.
spfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
not
(
a
or
b
)
then
return
end
local
off
=
1
local
ops
=
{}
...
...
expansions/script/c52700748.lua
View file @
47a1e3c9
...
...
@@ -94,7 +94,7 @@ function s.xspfilter(c)
return
c
:
IsSetCard
(
0x3529
)
and
c
:
IsAbleToGrave
()
end
function
s
.
thfilter
(
c
)
return
aux
.
IsCodeListed
(
c
,
id
)
and
c
:
IsSetCard
(
0x3529
)
and
c
:
IsAbleToHand
()
return
aux
.
IsCodeListed
(
c
,
52700740
)
and
c
:
IsSetCard
(
0x3529
)
and
c
:
IsAbleToHand
()
end
function
s
.
acfilter
(
c
,
tp
)
return
c
:
IsCode
(
52700743
)
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
tp
)
...
...
@@ -107,7 +107,7 @@ function s.cpfilter(c)
local
s2
=
c
:
IsCode
(
52700740
)
and
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
s3
=
c
:
IsCode
(
52700742
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
acfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
return
s1
or
s2
or
s3
or
s4
return
s1
or
s2
or
s3
end
function
s
.
cptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
cpfilter
(
chkc
)
end
...
...
expansions/script/c62624525.lua
View file @
47a1e3c9
...
...
@@ -96,30 +96,34 @@ end
function
c62624525
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsType
(
TYPE_CONTINUOUS
)
and
e
:
GetHandler
():
IsType
(
TYPE_SPELL
)
end
function
c62624525
.
costfilter
(
c
)
function
c62624525
.
costfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x6d0
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReleasable
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c62624525
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
)
end
function
c62624525
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
and
Duel
.
IsExistingMatchingCard
(
c62624525
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c62624525
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c62624525
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c62624525
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
g
:
AddCard
(
e
:
GetHandler
())
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c62624525
.
spfilter
(
c
,
e
,
tp
)
function
c62624525
.
spfilter
(
c
,
e
,
tp
,
ec
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
false
,
false
)
and
c
:
IsCode
(
62624630
)
and
c
:
IsCode
(
62624630
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
ec
,
c
)
>
0
end
function
c62624525
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_SYNCHRO
,
tp
,
false
,
false
)
and
c
:
IsCode
(
62624630
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
function
c62624525
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c62624525
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c62624525
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCountFromEx
(
tp
)
<=
0
then
return
end
if
not
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c62624525
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c62624525
.
spfilter
1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
#
g
>
0
then
Duel
.
SpecialSummon
(
g
,
SUMMON_TYPE_SYNCHRO
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
...
...
expansions/script/c75646630.lua
View file @
47a1e3c9
...
...
@@ -35,17 +35,20 @@ end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x2c5
)
and
c
:
IsAbleToGrave
()
and
c
:
IsFaceupEx
()
end
function
cm
.
tgfilter1
(
c
)
return
aux
.
IsCodeListed
(
c
,
75646600
)
and
c
:
IsAbleToGrave
()
and
c
:
IsFaceupEx
()
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
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
tgfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
tgfilter
1
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
75646600
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
and
#
sg
>
0
then
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_REMOVED
,
0
,
0
,
1
,
nil
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
75646600
)
>
0
and
#
sg
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
1
,
tp
,
LOCATION_REMOVED
,
0
,
0
,
1
,
nil
)
if
tg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
tg
,
REASON_EFFECT
+
REASON_RETURN
)
end
...
...
expansions/script/c81907115.lua
View file @
47a1e3c9
...
...
@@ -30,7 +30,7 @@ function cm.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_
EFFECT
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_
BATTLE
)
e4
:
SetValue
(
1
)
e4
:
SetCondition
(
cm
.
lkcon
)
c
:
RegisterEffect
(
e4
)
...
...
expansions/script/c81907123.lua
View file @
47a1e3c9
...
...
@@ -112,6 +112,7 @@ function cm.tkop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_LINK
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tc
:
SetMaterial
(
rg
)
end
tc
:
CompleteProcedure
()
end
elseif
a
and
not
b
then
local
chkf
=
tp
...
...
@@ -161,6 +162,7 @@ function cm.tkop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_LINK
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
tc
:
SetMaterial
(
rg
)
end
tc
:
CompleteProcedure
()
else
return
false
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment