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
Ai
ygopro-222DIY-cards
Commits
6c00111f
Commit
6c00111f
authored
Jun 19, 2019
by
gg123gg
Committed by
GitHub
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
parent
74486888
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
164 additions
and
163 deletions
+164
-163
expansions/script/c12011017.lua
expansions/script/c12011017.lua
+164
-163
No files found.
expansions/script/c12011017.lua
View file @
6c00111f
--黑姬的养成所
--黑姬的养成所
function
c12011017
.
initial_effect
(
c
)
function
c12011017
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c12011017
.
target
)
e1
:
SetTarget
(
c12011017
.
target
)
e1
:
SetOperation
(
c12011017
.
activate
)
e1
:
SetOperation
(
c12011017
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--fusion summon
--fusion summon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
12011017
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
12011017
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetCost
(
aux
.
bfgcost
)
e3
:
SetCost
(
aux
.
bfgcost
)
e3
:
SetTarget
(
c12011017
.
sptg
)
e3
:
SetTarget
(
c12011017
.
sptg
)
e3
:
SetOperation
(
c12011017
.
spop
)
e3
:
SetOperation
(
c12011017
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c12011017
.
filter1
(
c
,
e
)
function
c12011017
.
filter1
(
c
,
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
and
c
:
IsSetCard
(
0x3fbe
)
return
not
c
:
IsImmuneToEffect
(
e
)
and
c
:
IsSetCard
(
0x3fbe
)
end
end
function
c12011017
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
function
c12011017
.
filter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
end
function
c12011017
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c12011017
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
chkf
=
tp
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
)
local
res
=
Duel
.
IsExistingMatchingCard
(
c12011017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
res
=
Duel
.
IsExistingMatchingCard
(
c12011017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
if
not
res
then
if
not
res
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
if
ce
~=
nil
then
local
fgroup
=
ce
:
GetTarget
()
local
fgroup
=
ce
:
GetTarget
()
local
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
local
mf
=
ce
:
GetValue
()
res
=
Duel
.
IsExistingMatchingCard
(
c12011017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
res
=
Duel
.
IsExistingMatchingCard
(
c12011017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
end
end
end
end
return
res
return
res
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c12011017
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12011017
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
chkf
=
tp
local
chkf
=
tp
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c12011017
.
filter1
,
nil
,
e
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c12011017
.
filter1
,
nil
,
e
)
local
sg1
=
Duel
.
GetMatchingGroup
(
c12011017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
sg1
=
Duel
.
GetMatchingGroup
(
c12011017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg2
=
nil
local
mg2
=
nil
local
sg2
=
nil
local
sg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
ce
~=
nil
then
if
ce
~=
nil
then
local
fgroup
=
ce
:
GetTarget
()
local
fgroup
=
ce
:
GetTarget
()
mg2
=
fgroup
(
ce
,
e
,
tp
)
mg2
=
fgroup
(
ce
,
e
,
tp
)
local
mf
=
ce
:
GetValue
()
local
mf
=
ce
:
GetValue
()
sg2
=
Duel
.
GetMatchingGroup
(
c12011017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
sg2
=
Duel
.
GetMatchingGroup
(
c12011017
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
end
end
if
sg1
:
GetCount
()
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
)
then
if
sg1
:
GetCount
()
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
)
then
local
sg
=
sg1
:
Clone
()
local
sg
=
sg1
:
Clone
()
if
sg2
then
sg
:
Merge
(
sg2
)
end
if
sg2
then
sg
:
Merge
(
sg2
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
tc
:
SetMaterial
(
mat1
)
e
:
SetLabel
(
mat1
:
GetCount
())
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
tc
:
SetMaterial
(
mat1
)
Duel
.
BreakEffect
()
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
BreakEffect
()
else
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
else
local
fop
=
ce
:
GetOperation
()
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
local
fop
=
ce
:
GetOperation
()
end
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
tc
:
CompleteProcedure
()
end
Duel
.
BreakEffect
()
tc
:
CompleteProcedure
()
local
cs
=
mat1
:
GetCount
()
Duel
.
BreakEffect
()
local
sg
=
Duel
.
GetMatchingGroup
(
c12011017
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
cs
=
e
:
GetLabel
()
if
(
not
tc
:
IsType
(
TYPE_EFFECT
)
)
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12011017
,
3
))
then
local
sg
=
Duel
.
GetMatchingGroup
(
c12011017
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
if
(
not
tc
:
IsType
(
TYPE_EFFECT
)
)
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12011017
,
3
))
then
sg
=
sg
:
Select
(
tp
,
cs
,
cs
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
BreakEffect
()
sg
=
sg
:
Select
(
tp
,
cs
,
cs
,
nil
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ShuffleDeck
(
tp
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
Duel
.
ShuffleDeck
(
tp
)
end
end
end
end
function
c12011017
.
thfilter
(
c
)
end
return
c
:
IsSetCard
(
0x3fbe
)
and
c
:
IsAbleToHand
()
function
c12011017
.
thfilter
(
c
)
end
return
c
:
IsSetCard
(
0x3fbe
)
and
c
:
IsAbleToHand
()
function
c12011017
.
spfilter1
(
c
,
e
)
end
return
c
:
IsSetCard
(
0x3fbe
)
and
not
c
:
IsImmuneToEffect
(
e
)
function
c12011017
.
spfilter1
(
c
,
e
)
end
return
c
:
IsSetCard
(
0x3fbe
)
and
not
c
:
IsImmuneToEffect
(
e
)
function
c12011017
.
spfilter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
end
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
function
c12011017
.
spfilter2
(
c
,
e
,
tp
,
m
,
f
,
chkf
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
return
c
:
IsType
(
TYPE_FUSION
)
and
(
not
f
or
f
(
c
))
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
function
c12011017
.
spfilter3
(
c
)
end
return
c
:
IsCanBeFusionMaterial
()
and
c
:
IsSetCard
(
0x10f3
)
function
c12011017
.
spfilter3
(
c
)
end
return
c
:
IsCanBeFusionMaterial
()
and
c
:
IsSetCard
(
0x10f3
)
function
c12011017
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
function
c12011017
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
chkf
=
tp
if
chk
==
0
then
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
Card
.
IsSetCard
,
nil
,
0x3fbe
)
local
chkf
=
tp
local
res
=
Duel
.
IsExistingMatchingCard
(
c12011017
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
Card
.
IsSetCard
,
nil
,
0x3fbe
)
if
not
res
then
local
res
=
Duel
.
IsExistingMatchingCard
(
c12011017
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
if
not
res
then
if
ce
~=
nil
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
local
fgroup
=
ce
:
GetTarget
()
if
ce
~=
nil
then
local
mg2
=
fgroup
(
ce
,
e
,
tp
):
Filter
(
c12011017
.
spfilter3
,
nil
)
local
fgroup
=
ce
:
GetTarget
()
local
mf
=
ce
:
GetValue
()
local
mg2
=
fgroup
(
ce
,
e
,
tp
):
Filter
(
c12011017
.
spfilter3
,
nil
)
res
=
Duel
.
IsExistingMatchingCard
(
c12011017
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
local
mf
=
ce
:
GetValue
()
end
res
=
Duel
.
IsExistingMatchingCard
(
c12011017
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
end
end
return
res
end
end
return
res
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
function
c12011017
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
local
chkf
=
tp
function
c12011017
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c12011017
.
spfilter1
,
nil
,
e
)
local
chkf
=
tp
local
sg1
=
Duel
.
GetMatchingGroup
(
c12011017
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
mg1
=
Duel
.
GetFusionMaterial
(
tp
):
Filter
(
c12011017
.
spfilter1
,
nil
,
e
)
local
mg2
=
nil
local
sg1
=
Duel
.
GetMatchingGroup
(
c12011017
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg1
,
nil
,
chkf
)
local
sg2
=
nil
local
mg2
=
nil
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
local
sg2
=
nil
if
ce
~=
nil
then
local
ce
=
Duel
.
GetChainMaterial
(
tp
)
local
fgroup
=
ce
:
GetTarget
()
if
ce
~=
nil
then
mg2
=
fgroup
(
ce
,
e
,
tp
):
Filter
(
c12011017
.
spfilter3
,
nil
)
local
fgroup
=
ce
:
GetTarget
()
local
mf
=
ce
:
GetValue
()
mg2
=
fgroup
(
ce
,
e
,
tp
):
Filter
(
c12011017
.
spfilter3
,
nil
)
sg2
=
Duel
.
GetMatchingGroup
(
c12011017
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
local
mf
=
ce
:
GetValue
()
end
sg2
=
Duel
.
GetMatchingGroup
(
c12011017
.
spfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
,
mg2
,
mf
,
chkf
)
if
sg1
:
GetCount
()
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
)
then
end
local
sg
=
sg1
:
Clone
()
if
sg1
:
GetCount
()
>
0
or
(
sg2
~=
nil
and
sg2
:
GetCount
()
>
0
)
then
if
sg2
then
sg
:
Merge
(
sg2
)
end
local
sg
=
sg1
:
Clone
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
if
sg2
then
sg
:
Merge
(
sg2
)
end
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
tg
:
GetFirst
()
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
tc
=
tg
:
GetFirst
()
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
tc
:
SetMaterial
(
mat1
)
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
tc
:
SetMaterial
(
mat1
)
Duel
.
BreakEffect
()
Duel
.
SendtoGrave
(
mat1
,
REASON_EFFECT
+
REASON_MATERIAL
+
REASON_FUSION
)
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
BreakEffect
()
else
Duel
.
SpecialSummon
(
tc
,
SUMMON_TYPE_FUSION
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
else
local
fop
=
ce
:
GetOperation
()
local
mat2
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg2
,
nil
,
chkf
)
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
local
fop
=
ce
:
GetOperation
()
end
fop
(
ce
,
e
,
tp
,
tc
,
mat2
)
tc
:
CompleteProcedure
()
end
local
sg
=
Duel
.
GetMatchingGroup
(
c12011017
.
thfilter1
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
tc
:
CompleteProcedure
()
if
(
not
tc
:
IsType
(
TYPE_EFFECT
)
)
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12011017
,
4
))
then
local
sg
=
Duel
.
GetMatchingGroup
(
c12011017
.
thfilter1
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
if
(
not
tc
:
IsType
(
TYPE_EFFECT
)
)
and
sg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12011017
,
4
))
then
sg
=
sg
:
Select
(
tp
,
1
,
2
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
BreakEffect
()
sg
=
sg
:
Select
(
tp
,
1
,
2
,
nil
)
Duel
.
SendtoGrave
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
end
Duel
.
SendtoGrave
(
sg
,
nil
,
REASON_EFFECT
)
end
end
end
end
function
c12011017
.
thfilter1
(
c
)
end
return
c
:
IsSetCard
(
0x3fbe
)
and
c
:
IsAbleToGrave
()
and
c
:
IsFaceup
()
function
c12011017
.
thfilter1
(
c
)
return
c
:
IsSetCard
(
0x3fbe
)
and
c
:
IsAbleToGrave
()
and
c
:
IsFaceup
()
end
end
\ No newline at end of file
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