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
dd9dd351
Commit
dd9dd351
authored
Jan 27, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eme
parent
f4a57855
Pipeline
#9014
passed with stages
in 38 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
expansions/script/c4210035.lua
expansions/script/c4210035.lua
+4
-4
expansions/script/c4210036.lua
expansions/script/c4210036.lua
+7
-10
No files found.
expansions/script/c4210035.lua
View file @
dd9dd351
...
...
@@ -18,7 +18,7 @@ function c4210035.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
4210035
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
QUICK
_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
TRIGGER
_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c4210035
.
condition
)
...
...
@@ -62,7 +62,7 @@ function c4210035.spcon(e,c)
if
c
==
nil
then
return
true
end
local
mg1
=
Duel
.
GetMatchingGroup
(
c4210035
.
relfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
e
:
GetHandler
())
local
mg2
=
Duel
.
GetMatchingGroup
(
c4210035
.
repfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
Duel
.
IsExistingMatchingCard
(
c4210035
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
mg2
,
ft
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
4210028
)
and
(
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
or
(
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
4210024
)))
...
...
@@ -103,7 +103,7 @@ function c4210035.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
mat2
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetLevel
,
6
,
0
,
99
,
tc
)
mat
:
Merge
(
mat2
)
end
end
local
rm
=
mat
:
Filter
(
Card
.
IsLocation
,
tp
,
LOCATION_REMOVED
)
Duel
.
SendtoDeck
(
rm
,
nil
,
0
,
REASON_COST
)
Duel
.
Release
(
mat
,
REASON_COST
+
REASON_RELEASE
)
...
...
@@ -150,7 +150,7 @@ function c4210035.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
cd
=
Duel
.
SelectMatchingCard
(
tp
,
c4210035
.
cdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SendtoHand
(
cd
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
cd
)
Duel
.
ConfirmCards
(
1
-
tp
,
cd
)
end
end
end
...
...
expansions/script/c4210036.lua
View file @
dd9dd351
...
...
@@ -18,7 +18,7 @@ function c4210036.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
4210036
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
QUICK
_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
TRIGGER
_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c4210036
.
condition
)
...
...
@@ -62,7 +62,7 @@ function c4210036.spcon(e,c)
if
c
==
nil
then
return
true
end
local
mg1
=
Duel
.
GetMatchingGroup
(
c4210036
.
relfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
e
:
GetHandler
())
local
mg2
=
Duel
.
GetMatchingGroup
(
c4210036
.
repfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
Duel
.
IsExistingMatchingCard
(
c4210036
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
mg2
,
ft
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
4210028
)
and
(
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
or
(
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCode
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
4210024
)))
...
...
@@ -103,7 +103,7 @@ function c4210036.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
mat2
=
mg
:
SelectWithSumEqual
(
tp
,
Card
.
GetLevel
,
6
,
0
,
99
,
tc
)
mat
:
Merge
(
mat2
)
end
end
local
rm
=
mat
:
Filter
(
Card
.
IsLocation
,
tp
,
LOCATION_REMOVED
)
Duel
.
SendtoDeck
(
rm
,
nil
,
0
,
REASON_COST
)
Duel
.
Release
(
mat
,
REASON_COST
+
REASON_RELEASE
)
...
...
@@ -118,9 +118,6 @@ end
function
c4210036
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_RITUAL
)
end
function
c4210036
.
tgfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xa2f
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c4210036
.
cdfilter
(
c
)
return
c
:
IsSetCard
(
0xa2f
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
...
...
@@ -132,9 +129,9 @@ function c4210036.cdrmfilter(c)
end
function
c4210036
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c4210036
.
tg
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
SPSUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
and
Duel
.
IsExistingMatchingCard
(
c4210036
.
cd
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATOHAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c4210036
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
@@ -149,7 +146,7 @@ function c4210036.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RaiseEvent
(
showcard
,
0x1420042a
,
e
,
REASON_COST
,
tp
,
0
,
0
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
cd
=
Duel
.
SelectMatchingCard
(
tp
,
c4210036
.
cdrmfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
cd
=
Duel
.
SelectMatchingCard
(
tp
,
c4210036
.
cdrmfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SendtoHand
(
cd
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
cd
)
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