Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
Reinen
ygopro-scripts
Commits
4c7d5cd6
Commit
4c7d5cd6
authored
May 12, 2020
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert
parent
eb6714bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
24 deletions
+9
-24
c23020408.lua
c23020408.lua
+9
-24
No files found.
c23020408.lua
View file @
4c7d5cd6
...
@@ -30,35 +30,20 @@ function c23020408.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -30,35 +30,20 @@ function c23020408.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
end
function
c23020408
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23020408
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
aux
.
NecroValleyFilter
(
c23020408
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
c23020408
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
op
=
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
23020408
,
3
),
aux
.
Stringid
(
23020408
,
4
))
elseif
b1
then
op
=
0
else
op
=
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
23020408
,
2
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
23020408
,
2
))
if
op
==
0
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c23020408
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c23020408
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
ShuffleDeck
(
tp
)
Duel
.
HintSelection
(
g
)
if
tc
:
IsLocation
(
LOCATION_DECK
)
then
Duel
.
MoveSequence
(
tc
,
0
)
else
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
end
end
else
if
tc
:
IsLocation
(
LOCATION_DECK
)
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c23020408
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
ConfirmDecktop
(
tp
,
1
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
ShuffleDeck
(
tp
)
Duel
.
MoveSequence
(
tc
,
0
)
end
end
end
end
if
tc
and
tc
:
IsLocation
(
LOCATION_DECK
)
then
Duel
.
ConfirmDecktop
(
tp
,
1
)
end
end
end
function
c23020408
.
cfilter
(
c
)
function
c23020408
.
cfilter
(
c
)
return
(
c
:
IsCode
(
46986414
,
38033121
)
or
(
c
:
IsSetCard
(
0x139
)
and
c
:
IsType
(
TYPE_MONSTER
)))
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
return
(
c
:
IsCode
(
46986414
,
38033121
)
or
(
c
:
IsSetCard
(
0x139
)
and
c
:
IsType
(
TYPE_MONSTER
)))
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_GRAVE
))
...
...
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