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
Soulgamer
ygopro-222DIY-cards
Commits
20e43635
Commit
20e43635
authored
Jun 03, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nmbd
parent
2c49ca14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
40 deletions
+40
-40
expansions/script/c4212317.lua
expansions/script/c4212317.lua
+40
-40
No files found.
expansions/script/c4212317.lua
View file @
20e43635
--菲莉丝的工作室
function
c4212317
.
initial_effect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
4212317
)
--Activate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetOperation
(
c4212317
.
activate
)
c
:
RegisterEffect
(
e2
)
--Activate(effect)
local
e3
=
Effect
.
CreateEffect
(
c
)
c
:
SetUniqueOnField
(
1
,
0
,
4212317
)
--Activate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetOperation
(
c4212317
.
activate
)
c
:
RegisterEffect
(
e2
)
--Activate(effect)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
4212317
,
2
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCondition
(
c4212317
.
con
)
e3
:
SetTarget
(
c4212317
.
tg
)
...
...
@@ -21,44 +21,44 @@ function c4212317.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c4212317
.
mfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
end
function
c4212317
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0xa25
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0xa25
)
and
c
:
IsAbleToHand
()
end
function
c4212317
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsExistingMatchingCard
(
c4212317
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
e
:
GetHandler
())
then
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
507
)
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4212317
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
e
:
GetHandler
(),
e
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
~=
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
GetMatchingGroupCount
(
c4212317
.
mfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
>=
3
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
(),
TYPE_MONSTER
)
then
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
aux
.
Stringid
(
4212317
,
1
))
then
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
e
:
GetHandler
(),
TYPE_MONSTER
)
if
tc
:
GetCount
()
>
0
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
end
if
Duel
.
IsExistingMatchingCard
(
c4212317
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
e
:
GetHandler
())
then
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
507
)
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4212317
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
e
:
GetHandler
(),
e
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
~=
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
if
Duel
.
GetMatchingGroupCount
(
c4212317
.
mfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
>=
3
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
(),
TYPE_MONSTER
)
then
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
aux
.
Stringid
(
4212317
,
1
))
then
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
e
:
GetHandler
(),
TYPE_MONSTER
)
if
tc
:
GetCount
()
>
0
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
end
end
function
c4212317
.
cdfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xa25
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xa25
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c4212317
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_DECK
)
end
function
c4212317
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c421230
7
.
cdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c421231
7
.
cdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c4212317
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4212317
.
cdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4212317
.
cdfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
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