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
0cbb9e2a
Commit
0cbb9e2a
authored
Nov 16, 2022
by
songtongtong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update lua
parent
e8b5a991
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
200 additions
and
190 deletions
+200
-190
expansions/script/c33503210.lua
expansions/script/c33503210.lua
+111
-104
expansions/script/c66914013.lua
expansions/script/c66914013.lua
+89
-86
No files found.
expansions/script/c33503210.lua
View file @
0cbb9e2a
--大户爱 黎明之光
--大户爱 黎明之光
local
m
=
33503210
local
m
=
33503210
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
local
code
=
33503200
local
code
=
33503200
Duel
.
LoadScript
(
"c33503200.lua"
)
Duel
.
LoadScript
(
"c33503200.lua"
)
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
33503200
)
aux
.
AddCodeList
(
c
,
33503200
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetOperation
(
cm
.
activate
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--synchro level
--synchro level
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetCode
(
EFFECT_SYNCHRO_LEVEL
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_SYNCHRO_LEVEL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTarget
(
cm
.
imtg
)
e2
:
SetValue
(
cm
.
slevel
)
e2
:
SetValue
(
cm
.
slevel
)
local
e5
=
Effect
.
CreateEffect
(
c
)
c
:
RegisterEffect
(
e2
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
--spsummon
e5
:
SetRange
(
LOCATION_SZONE
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e5
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetTarget
(
cm
.
imtg
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e5
:
SetLabelObject
(
e2
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e5
)
e4
:
SetRange
(
LOCATION_FZONE
)
--spsummon
e4
:
SetCountLimit
(
1
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCost
(
cm
.
spcost
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e4
:
SetTarget
(
cm
.
sptg
)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetOperation
(
cm
.
spop
)
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
c
:
RegisterEffect
(
e4
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
end
e4
:
SetRange
(
LOCATION_FZONE
)
function
cm
.
filter
(
c
,
e
,
tp
,
ft
)
e4
:
SetCountLimit
(
1
)
return
c
:
IsCode
(
code
)
e4
:
SetCost
(
cm
.
spcost
)
and
(
c
:
IsAbleToHand
()
or
(
ft
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
e4
:
SetTarget
(
cm
.
sptg
)
end
e4
:
SetOperation
(
cm
.
spop
)
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c
:
RegisterEffect
(
e4
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
ft
)
function
cm
.
filter
(
c
,
e
,
tp
,
ft
)
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
return
c
:
IsCode
(
code
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
and
(
c
:
IsAbleToHand
()
or
(
ft
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)))
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
end
local
opt
=
0
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
tc
:
IsAbleToHand
()
then
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
opt
=
1
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
ft
)
elseif
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
ft
<=
0
then
if
#
g
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
opt
=
0
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
else
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
opt
=
Duel
.
SelectOption
(
tp
,
1190
,
1152
)
local
opt
=
0
end
if
not
tc
:
IsAbleToHand
()
then
if
opt
==
0
then
opt
=
1
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
elseif
not
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
ft
<=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
opt
=
0
else
else
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
opt
=
Duel
.
SelectOption
(
tp
,
1190
,
1152
)
end
end
end
if
opt
==
0
then
end
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
function
cm
.
imtg
(
e
,
c
)
else
return
c
:
IsCode
(
m
-
10
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
cm
.
slevel
(
e
,
c
,
rc
)
end
return
c
:
GetLevel
()
+
2
*
65536
end
end
function
cm
.
imtg
(
e
,
c
)
function
cm
.
cfilter
(
c
,
ft
,
tp
)
return
c
:
IsCode
(
m
-
10
)
return
c
:
IsCode
(
code
)
end
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
function
cm
.
slevel
(
e
,
c
,
rc
)
end
local
lv
=
aux
.
GetCappedLevel
(
e
:
GetHandler
())
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
(
2
<<
16
)
+
lv
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
cm
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
cm
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
function
cm
.
cfilter
(
c
,
ft
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
return
c
:
IsCode
(
code
)
end
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
function
cm
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
CheckReleaseGroup
(
tp
,
cm
.
cfilter
,
1
,
nil
,
ft
,
tp
)
end
function
cm
.
spfilter
(
c
,
e
,
tp
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
cm
.
cfilter
,
1
,
1
,
nil
,
ft
,
tp
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
end
if
g
:
GetCount
()
>
0
then
function
cm
.
spfilter
(
c
,
e
,
tp
)
if
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
local
hg
=
Duel
.
GetMatchingGroup
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
nil
)
end
if
hg
:
GetCount
()
>
0
then
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
hg
:
Select
(
tp
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SynchroSummon
(
tp
,
sg
:
GetFirst
(),
nil
)
if
g
:
GetCount
()
>
0
then
end
if
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
end
local
hg
=
Duel
.
GetMatchingGroup
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
nil
)
end
if
hg
:
GetCount
()
>
0
then
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
hg
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SynchroSummon
(
tp
,
sg
:
GetFirst
(),
nil
)
end
end
end
end
end
end
\ No newline at end of file
expansions/script/c66914013.lua
View file @
0cbb9e2a
--神心樱舞·厄科
--神心樱舞·厄科
function
c66914013
.
initial_effect
(
c
)
function
c66914013
.
initial_effect
(
c
)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
4
,
4
,
c66914013
.
ovfilter
,
aux
.
Stringid
(
66914013
,
0
),
4
,
c66914013
.
xyzop
)
aux
.
AddXyzProcedure
(
c
,
nil
,
4
,
4
,
c66914013
.
ovfilter
,
aux
.
Stringid
(
66914013
,
0
),
4
,
c66914013
.
xyzop
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--activate from hand
--activate from hand
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetCode
(
EFFECT_QP_ACT_IN_NTPHAND
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x373
))
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x373
))
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--Overlay&Tohand
--Overlay&Tohand
local
e12
=
Effect
.
CreateEffect
(
c
)
local
e12
=
Effect
.
CreateEffect
(
c
)
e12
:
SetCategory
(
CATEGORY_TOHAND
)
e12
:
SetCategory
(
CATEGORY_TOHAND
)
e12
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e12
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e12
:
SetCode
(
EVENT_FREE_CHAIN
)
e12
:
SetCode
(
EVENT_FREE_CHAIN
)
e12
:
SetRange
(
LOCATION_MZONE
)
e12
:
SetRange
(
LOCATION_MZONE
)
e12
:
SetCost
(
c66914013
.
disrmcost
)
e12
:
SetCost
(
c66914013
.
disrmcost
)
e12
:
SetTarget
(
c66914013
.
disrmtg
)
e12
:
SetTarget
(
c66914013
.
disrmtg
)
e12
:
SetOperation
(
c66914013
.
disrmop
)
e12
:
SetOperation
(
c66914013
.
disrmop
)
c
:
RegisterEffect
(
e12
)
c
:
RegisterEffect
(
e12
)
--
--
Duel
.
AddCustomActivityCounter
(
66914013
,
ACTIVITY_CHAIN
,
c66914013
.
chainfilter
)
Duel
.
AddCustomActivityCounter
(
66914013
,
ACTIVITY_CHAIN
,
c66914013
.
chainfilter
)
end
end
function
c66914013
.
chainfilter
(
re
,
tp
,
cid
)
function
c66914013
.
chainfilter
(
re
,
tp
,
cid
)
return
not
(
Duel
.
GetCurrentChain
()
>
4
)
return
not
(
Duel
.
GetCurrentChain
()
>
4
)
end
end
function
c66914013
.
ovfilter
(
c
)
function
c66914013
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
66914000
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
66914000
)
end
end
function
c66914013
.
xyzop
(
e
,
tp
,
chk
)
function
c66914013
.
xyzop
(
e
,
tp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
66914010
)
==
0
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
66914010
)
==
0
and
(
Duel
.
GetCustomActivityCount
(
66914013
,
tp
,
ACTIVITY_CHAIN
)
>
0
and
(
Duel
.
GetCustomActivityCount
(
66914013
,
tp
,
ACTIVITY_CHAIN
)
>
0
or
Duel
.
GetCustomActivityCount
(
66914013
,
1
-
tp
,
ACTIVITY_CHAIN
)
>
0
)
end
or
Duel
.
GetCustomActivityCount
(
66914013
,
1
-
tp
,
ACTIVITY_CHAIN
)
>
0
)
end
Duel
.
RegisterFlagEffect
(
tp
,
66914010
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
66914010
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
end
function
c66914013
.
disrmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66914013
.
disrmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
66914009
)
==
0
end
if
chk
==
0
then
return
c
:
GetFlagEffect
(
66914009
)
==
0
end
c
:
RegisterFlagEffect
(
66914009
,
RESET_CHAIN
,
0
,
1
)
c
:
RegisterFlagEffect
(
66914009
,
RESET_CHAIN
,
0
,
1
)
end
end
function
c66914013
.
disrmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66914013
.
disrmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
local
b1
=
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c66914013
.
ofilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetFlagEffect
(
tp
,
6691408
)
==
0
local
b1
=
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c66914013
.
ofilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetFlagEffect
(
tp
,
6691408
)
==
0
local
b2
=
g
:
IsExists
(
Card
.
IsAbleToHand
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
6691405
)
==
0
local
b2
=
g
:
IsExists
(
Card
.
IsAbleToHand
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
6691405
)
==
0
if
chk
==
0
then
return
b1
or
b2
end
if
chk
==
0
then
return
b1
or
b2
end
end
end
function
c66914013
.
ofilter
(
c
,
e
)
function
c66914013
.
ofilter
(
c
,
e
)
return
c
:
IsCanOverlay
()
and
(
not
e
or
not
c
:
IsImmuneToEffect
(
e
))
and
c
:
IsSetCard
(
0x373
)
return
c
:
IsCanOverlay
()
and
(
not
e
or
not
c
:
IsImmuneToEffect
(
e
))
and
c
:
IsSetCard
(
0x373
)
end
end
function
c66914013
.
disrmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66914013
.
disrmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
local
g
=
e
:
GetHandler
():
GetOverlayGroup
()
local
b1
=
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c66914013
.
ofilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetFlagEffect
(
tp
,
6691408
)
==
0
local
b1
=
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c66914013
.
ofilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetFlagEffect
(
tp
,
6691408
)
==
0
local
b2
=
g
:
IsExists
(
Card
.
IsAbleToHand
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
6691405
)
==
0
local
b2
=
g
:
IsExists
(
Card
.
IsAbleToHand
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
6691405
)
==
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
66914013
,
1
),
aux
.
Stringid
(
66914013
,
2
))
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
66914013
,
1
),
aux
.
Stringid
(
66914013
,
2
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
66914013
,
1
))
elseif
b1
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
66914013
,
1
))
elseif
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
66914013
,
2
))
+
1
elseif
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
66914013
,
2
))
+
1
else
return
end
else
return
end
if
op
==
0
then
if
op
==
0
then
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c66914013
.
ofilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c66914013
.
ofilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
(),
e
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
Overlay
(
c
,
tc
)
if
tc
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
end
tc
:
CancelToGrave
()
Duel
.
ShuffleDeck
(
tp
)
end
end
Duel
.
Overlay
(
c
,
tc
)
Duel
.
RegisterFlagEffect
(
tp
,
6691408
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
else
Duel
.
ShuffleDeck
(
tp
)
if
c
:
IsRelateToEffect
(
e
)
then
end
local
g
=
c
:
GetOverlayGroup
()
Duel
.
RegisterFlagEffect
(
tp
,
6691408
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
else
local
tg
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToHand
,
1
,
1
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
then
if
tg
:
GetCount
()
>
0
then
local
g
=
c
:
GetOverlayGroup
()
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
end
local
tg
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToHand
,
1
,
1
,
nil
)
end
if
tg
:
GetCount
()
>
0
then
Duel
.
RegisterFlagEffect
(
tp
,
6691405
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
end
end
end
Duel
.
RegisterFlagEffect
(
tp
,
6691405
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
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