Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Crescent/毛虫
pre-release-database-cdb
Commits
b5f56d59
Commit
b5f56d59
authored
Jul 22, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ヴァルモニカ・エレディターレ
parent
3d60ed36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
20 deletions
+14
-20
script/c101206078.lua
script/c101206078.lua
+14
-20
No files found.
script/c101206078.lua
View file @
b5f56d59
...
...
@@ -49,31 +49,25 @@ function s.tdfilter(c)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0x1a3
)
and
c
:
IsAbleToDeck
()
end
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
0
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
for
tc
in
aux
.
Next
(
g
)
do
ct
=
ct
+
tc
:
GetCounter
(
0x6a
)
end
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
+
LOCATION_REMOVED
,
0
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
+
LOCATION_REMOVED
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
0
)
local
ct
=
g
:
GetSum
(
Card
.
GetCounter
,
0x6a
)
local
tg
=
Duel
.
GetMatchingGroup
(
s
.
tdfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
+
LOCATION_REMOVED
,
0
,
nil
)
if
chk
==
0
then
return
ct
>
0
and
tg
:
GetCount
()
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
tg
,
1
,
0
,
0
)
end
function
s
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
0
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
0
)
for
tc
in
aux
.
Next
(
g
)
do
ct
=
ct
+
tc
:
GetCounter
(
0x6a
)
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
0
)
local
ct
=
g
:
GetSum
(
Card
.
GetCounter
,
0x6a
)
if
ct
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
NecroValleyFilter
(
s
.
tdfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
+
LOCATION_REMOVED
,
0
,
1
,
ct
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
local
g
=
Duel
.
GetOperatedGroup
()
local
dr
=
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
local
dr
=
math.ceil
(
dr
/
3
)
if
dr
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
dr
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
tdfilter
),
tp
,
LOCATION_GRAVE
+
LOCATION_EXTRA
+
LOCATION_REMOVED
,
0
,
1
,
ct
,
nil
)
if
tg
:
GetCount
()
>
0
and
Duel
.
SendtoDeck
(
t
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
~=
0
then
local
o
g
=
Duel
.
GetOperatedGroup
()
local
dr
=
o
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
local
dr
c
=
math.floor
(
dr
/
3
)
if
dr
c
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
drc
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
dr
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
dr
c
,
REASON_EFFECT
)
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