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
4e7db7f7
Commit
4e7db7f7
authored
Jul 23, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
byd
parent
bf8aa846
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
32 deletions
+31
-32
expansions/script/c12825615.lua
expansions/script/c12825615.lua
+28
-29
expansions/script/c12844103.lua
expansions/script/c12844103.lua
+3
-3
No files found.
expansions/script/c12825615.lua
View file @
4e7db7f7
--铳影-异朵
local
m
=
12825615
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
m
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetOperation
(
cm
.
activate
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCondition
(
s
.
condition
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -18,36 +17,36 @@ function cm.initial_effect(c)
e3
:
SetCode
(
EVENT_LEAVE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCountLimit
(
1
,
m
+
1000
)
e3
:
SetCondition
(
cm
.
thcon2
)
e3
:
SetTarget
(
cm
.
thtg2
)
e3
:
SetOperation
(
cm
.
thop2
)
e3
:
SetCountLimit
(
1
,
id
+
1000
)
e3
:
SetCondition
(
s
.
thcon2
)
e3
:
SetTarget
(
s
.
thtg2
)
e3
:
SetOperation
(
s
.
thop2
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetCode
())
function
s
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
,
c
:
GetCode
())
and
aux
.
MustMaterialCheck
(
c
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
and
c
:
IsSetCard
(
0x4a76
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
filter2
(
c
,
e
,
tp
,
m
c
,
code
)
function
s
.
filter2
(
c
,
e
,
tp
,
id
c
,
code
)
return
mc
:
IsCanBeXyzMaterial
(
c
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsSetCard
(
0x4a76
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
m
c
,
c
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsSetCard
(
0x4a76
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
id
c
,
c
)
>
0
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g1
:
GetFirst
()
if
tc
then
Duel
.
HintSelection
(
g1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
GetCode
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
,
tc
:
GetCode
())
local
sc
=
g
:
GetFirst
()
if
sc
then
local
mg
=
tc
:
GetOverlayGroup
()
if
mg
:
GetCount
()
~=
0
then
Duel
.
Overlay
(
sc
,
m
g
)
Duel
.
Overlay
(
sc
,
id
g
)
end
sc
:
SetMaterial
(
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
tc
))
...
...
@@ -56,28 +55,28 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
cm
.
thcfilter
(
c
,
tp
)
function
s
.
thcfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x4a76
)
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsType
(
TYPE_XYZ
)
end
function
cm
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g2
=
eg
:
Filter
(
cm
.
thcfilter
,
nil
)
function
s
.
thcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g2
=
eg
:
Filter
(
s
.
thcfilter
,
nil
,
tp
)
g2
:
KeepAlive
()
e
:
SetLabelObject
(
g2
)
return
eg
:
IsExists
(
cm
.
thcfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
s
.
thcfilter
,
1
,
nil
,
tp
)
end
function
cm
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
cm
.
thcfilter
,
1
,
nil
,
tp
)
end
function
s
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
s
.
thcfilter
,
1
,
nil
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
function
cm
.
spfilter
(
c
,
e
,
tp
,
code
)
function
s
.
spfilter
(
c
,
e
,
tp
,
code
)
return
aux
.
IsCodeListed
(
c
,
code
)
and
c
:
IsAbleToHand
()
and
c
:
IsSetCard
(
0x4a76
)
and
c
:
IsType
(
TYPE_SPELL
)
end
function
cm
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
thop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
local
ts
=
g
:
GetFirst
()
if
not
g
then
return
end
local
scc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
cm
.
spfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
ts
:
GetCode
())
local
scc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
spfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
ts
:
GetCode
())
if
scc
then
Duel
.
SendtoHand
(
scc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
scc
)
...
...
expansions/script/c12844103.lua
View file @
4e7db7f7
...
...
@@ -23,7 +23,7 @@ function s.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EVENT_
ADJUST
)
e2
:
SetCode
(
EVENT_
MOVE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetOperation
(
s
.
adjustop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -76,10 +76,10 @@ end
function
s
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetMatchingGroup
(
s
.
rmfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
#
sg
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
sc
=
sg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
sg
:
RemoveCard
(
sc
)
Duel
.
SendtoGrave
(
sg
,
REASON_RULE
)
Duel
.
Readjust
()
--
Duel.Readjust()
end
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