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
dda4da9b
Commit
dda4da9b
authored
Jul 07, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5d2d5f0d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
110 additions
and
203 deletions
+110
-203
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/pics/12048022.jpg
expansions/pics/12048022.jpg
+0
-0
expansions/pics/12048023.jpg
expansions/pics/12048023.jpg
+0
-0
expansions/script/c12048022.lua
expansions/script/c12048022.lua
+0
-61
expansions/script/c12048023.lua
expansions/script/c12048023.lua
+0
-33
expansions/script/c33401309.lua
expansions/script/c33401309.lua
+1
-1
expansions/script/c60152301.lua
expansions/script/c60152301.lua
+109
-108
No files found.
expansions/222DIY.cdb
View file @
dda4da9b
No preview for this file type
expansions/pics/12048022.jpg
deleted
100644 → 0
View file @
5d2d5f0d
281 KB
expansions/pics/12048023.jpg
deleted
100644 → 0
View file @
5d2d5f0d
252 KB
expansions/script/c12048022.lua
deleted
100644 → 0
View file @
5d2d5f0d
Duel
.
LoadScript
(
"c12048000.lua"
)
--永远的证明 玛莉梅娜
local
m
=
12048022
local
cm
=
_G
[
"c"
..
m
]
cm
.
srre_front_side
=
12048021
cm
.
srre_back_side
=
12048022
function
cm
.
initial_effect
(
c
)
--immune
local
e1
=
srre
.
immuneffect
(
c
,
1
)
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_HANDES
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_DRAW
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
--back
local
e3
=
srre
.
backeffect
(
c
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
r
==
REASON_RULE
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tt
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeck
(
1
-
tp
,
tt
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
1
-
tp
,
tt
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tt
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
Duel
.
DiscardDeck
(
1
-
tp
,
tt
,
REASON_EFFECT
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_DRAW
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
1
)
e2
:
SetTargetRange
(
0
,
1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
3
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_PREDRAW
)
e3
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
cm
.
recon
)
e3
:
SetOperation
(
cm
.
reop
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
function
cm
.
recon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
end
function
cm
.
reop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_GRAVE
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
Duel
.
ShuffleDeck
(
1
-
tp
)
end
end
\ No newline at end of file
expansions/script/c12048023.lua
deleted
100644 → 0
View file @
5d2d5f0d
Duel
.
LoadScript
(
"c12048000.lua"
)
--享乐的不死者 亚希娅
local
m
=
12048023
local
cm
=
_G
[
"c"
..
m
]
cm
.
srre_front_side
=
12048020
cm
.
srre_back_side
=
12048023
function
cm
.
initial_effect
(
c
)
--immune
local
e1
=
srre
.
immuneffect
(
c
,
1
)
--qe
local
e2
=
srre
.
negateeffect
(
c
,
m
,{
m
,
0
},
CATEGORY_NEGATE
,
LOCATION_MZONE
,
nil
,
cm
.
necon
,
cm
.
cost
,
cm
.
netg
,
cm
.
neop
)
--back
local
e3
=
srre
.
backeffect
(
c
)
end
function
cm
.
necon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
cm
.
costfilter
(
c
)
return
c
:
IsAbleToDeckAsCost
()
and
srre
.
check_set_HakaShiro
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
5
,
nil
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
5
,
5
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
1
,
REASON_COST
)
end
function
cm
.
netg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
function
cm
.
neop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
end
expansions/script/c33401309.lua
View file @
dda4da9b
...
...
@@ -45,7 +45,7 @@ function c33401309.thop2(e,tp,eg,ep,ev,re,r,rp)
end
function
c33401309
.
cptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExisting
Target
(
c33401309
.
matfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExisting
MatchingCard
(
c33401309
.
matfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
end
end
function
c33401309
.
cpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c60152301.lua
View file @
dda4da9b
...
...
@@ -2,134 +2,135 @@
local
m
=
60152301
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
--spsummon
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetDescription
(
aux
.
Stringid
(
60152301
,
0
))
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCondition
(
c60152301
.
e0con
)
e0
:
SetOperation
(
c60152301
.
e0op
)
c
:
RegisterEffect
(
e0
)
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
60152301
,
1
))
e1
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
60152301
)
e1
:
SetTarget
(
c60152301
.
e1tg
)
e1
:
SetOperation
(
c60152301
.
e1op
)
c
:
RegisterEffect
(
e1
)
local
e11
=
e1
:
Clone
()
e11
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e11
)
--XYZ
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
60152301
,
5
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
6012301
)
e2
:
SetCondition
(
c60152301
.
e2con
)
e2
:
SetTarget
(
c60152301
.
e2tg
)
e2
:
SetOperation
(
c60152301
.
e2op
)
c
:
RegisterEffect
(
e2
)
--spsummon
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetDescription
(
aux
.
Stringid
(
60152301
,
0
))
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetRange
(
LOCATION_HAND
)
e0
:
SetCondition
(
c60152301
.
e0con
)
e0
:
SetOperation
(
c60152301
.
e0op
)
c
:
RegisterEffect
(
e0
)
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
60152301
,
1
))
e1
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
60152301
)
e1
:
SetTarget
(
c60152301
.
e1tg
)
e1
:
SetOperation
(
c60152301
.
e1op
)
c
:
RegisterEffect
(
e1
)
local
e11
=
e1
:
Clone
()
e11
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e11
)
--XYZ
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
60152301
,
5
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCountLimit
(
1
,
6012301
)
e2
:
SetCondition
(
c60152301
.
e2con
)
e2
:
SetTarget
(
c60152301
.
e2tg
)
e2
:
SetOperation
(
c60152301
.
e2op
)
c
:
RegisterEffect
(
e2
)
end
function
c60152301
.
e0con
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
1
,
1
,
REASON_COST
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
1
,
1
,
REASON_COST
)
end
function
c60152301
.
e0op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
1
,
REASON_COST
)
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
1
,
REASON_COST
)
end
function
c60152301
.
e1tgfilter
(
c
,
tp
)
local
code
=
c
:
GetCode
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xcb26
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingTarget
(
c60152301
.
e1tgfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
code
)
local
code
=
c
:
GetCode
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xcb26
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingTarget
(
c60152301
.
e1tgfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
1
,
nil
,
code
)
end
function
c60152301
.
e1tgfilter2
(
c
,
code
)
return
c
:
IsSetCard
(
0xcb26
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
code
)
and
(
c
:
IsAbleToGrave
()
or
c
:
IsAbleToHand
())
return
c
:
IsSetCard
(
0xcb26
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
code
)
and
(
c
:
IsAbleToGrave
()
or
c
:
IsAbleToHand
())
end
function
c60152301
.
e1tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60152301
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c60152301
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c60152301
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c60152301
.
e1tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c60152301
.
e1op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc0
=
Duel
.
GetFirstTarget
()
local
code
=
tc0
:
GetCode
()
local
g
=
Duel
.
GetMatchingGroup
(
c60152301
.
e1tgfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
nil
,
code
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
3
))
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc2
=
sg
:
GetFirst
()
if
tc2
:
IsAbleToGrave
()
and
tc2
:
IsAbleToHand
()
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60152301
,
2
))
then
Duel
.
SendtoHand
(
tc2
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc2
)
else
Duel
.
SendtoGrave
(
tc2
,
REASON_EFFECT
)
end
elseif
not
tc2
:
IsAbleToGrave
()
and
tc2
:
IsAbleToHand
()
then
Duel
.
SendtoHand
(
tc2
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc2
)
elseif
tc2
:
IsAbleToGrave
()
and
not
tc2
:
IsAbleToHand
()
then
Duel
.
SendtoGrave
(
tc2
,
REASON_EFFECT
)
end
if
tc0
:
IsType
(
TYPE_XYZ
)
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
not
e
:
GetHandler
():
IsImmuneToEffect
(
e
)
and
tc0
:
IsLocation
(
LOCATION_MZONE
)
and
tc0
:
IsFaceup
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60152301
,
4
))
then
Duel
.
Overlay
(
tc0
,
Group
.
FromCards
(
e
:
GetHandler
()))
end
end
local
tc0
=
Duel
.
GetFirstTarget
()
local
code
=
tc0
:
GetCode
()
local
g
=
Duel
.
GetMatchingGroup
(
c60152301
.
e1tgfilter2
,
tp
,
LOCATION_DECK
+
LOCATION_EXTRA
,
0
,
nil
,
code
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
3
))
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc2
=
sg
:
GetFirst
()
if
tc2
:
IsAbleToGrave
()
and
tc2
:
IsAbleToHand
()
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60152301
,
2
))
then
Duel
.
SendtoHand
(
tc2
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc2
)
else
Duel
.
SendtoGrave
(
tc2
,
REASON_EFFECT
)
end
elseif
not
tc2
:
IsAbleToGrave
()
and
tc2
:
IsAbleToHand
()
then
Duel
.
SendtoHand
(
tc2
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc2
)
elseif
tc2
:
IsAbleToGrave
()
and
not
tc2
:
IsAbleToHand
()
then
Duel
.
SendtoGrave
(
tc2
,
REASON_EFFECT
)
end
if
tc0
:
IsType
(
TYPE_XYZ
)
and
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
not
e
:
GetHandler
():
IsImmuneToEffect
(
e
)
and
tc0
:
IsLocation
(
LOCATION_MZONE
)
and
tc0
:
IsFaceup
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60152301
,
4
))
then
Duel
.
Overlay
(
tc0
,
Group
.
FromCards
(
e
:
GetHandler
()))
end
end
end
function
c60152301
.
e2con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
not
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
c60152301
.
e2tgfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xcb26
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xcb26
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c60152301
.
e2tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetOverlayCount
(
tp
,
1
,
1
)
-
1
if
chk
==
0
then
return
ct
>
0
or
(
Duel
.
IsExistingMatchingCard
(
c60152301
.
e2opfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
)
and
Duel
.
IsExistingMatchingCard
(
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
))
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
local
ct
=
Duel
.
GetOverlayCount
(
tp
,
1
,
1
)
-
1
if
chk
==
0
then
return
ct
>
0
or
(
Duel
.
IsExistingMatchingCard
(
c60152301
.
e2opfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
)
and
Duel
.
IsExistingMatchingCard
(
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
))
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c60152301
.
e2opfilter
(
c
,
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
and
not
c
:
IsCode
(
60152301
)
return
not
c
:
IsImmuneToEffect
(
e
)
and
not
c
:
IsCode
(
60152301
)
end
function
c60152301
.
e2op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetOverlayCount
(
tp
,
1
,
1
)
local
g0
=
Duel
.
GetMatchingGroup
(
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
g0
:
GetCount
()
>
0
and
ct
>
0
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60152301
,
8
))
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
3
,
REASON_EFFECT
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
6
))
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c60152301
.
e2opfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
,
e
)
Duel
.
HintSelection
(
g1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
7
))
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g2
)
local
tc2
=
g2
:
GetFirst
()
Duel
.
Overlay
(
tc2
,
g1
)
end
elseif
not
g0
:
GetCount
()
>
0
and
ct
>
0
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
3
,
REASON_EFFECT
)
elseif
g0
:
GetCount
()
>
0
and
not
ct
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
6
))
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c60152301
.
e2opfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
,
e
)
Duel
.
HintSelection
(
g1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
7
))
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g2
)
local
tc2
=
g2
:
GetFirst
()
Duel
.
Overlay
(
tc2
,
g1
)
end
local
ct
=
Duel
.
GetOverlayCount
(
tp
,
1
,
1
)
local
g0
=
Duel
.
GetMatchingGroup
(
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g00
=
Duel
.
GetMatchingGroup
(
c60152301
.
e2opfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
)
if
(
g0
:
GetCount
()
>
0
and
g00
:
GetCount
()
>
0
)
and
ct
>
0
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60152301
,
8
))
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
3
,
REASON_EFFECT
)
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
6
))
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c60152301
.
e2opfilter
),
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
2
,
nil
,
e
)
Duel
.
HintSelection
(
g1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
7
))
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g2
)
local
tc2
=
g2
:
GetFirst
()
Duel
.
Overlay
(
tc2
,
g1
)
end
elseif
g0
:
GetCount
()
==
0
and
ct
>
0
then
Duel
.
RemoveOverlayCard
(
tp
,
1
,
1
,
1
,
3
,
REASON_EFFECT
)
elseif
g0
:
GetCount
()
>
0
and
not
ct
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
6
))
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c60152301
.
e2opfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
2
,
nil
,
e
)
Duel
.
HintSelection
(
g1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
60152301
,
7
))
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c60152301
.
e2tgfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g2
)
local
tc2
=
g2
:
GetFirst
()
Duel
.
Overlay
(
tc2
,
g1
)
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