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
MyCard
pre-release-database-cdb
Commits
5e19fbe5
Commit
5e19fbe5
authored
Jan 26, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 仇すれば通図
Can select count
parent
41eaadbe
Pipeline
#25111
passed with stages
in 57 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
script/c101204067.lua
script/c101204067.lua
+12
-7
No files found.
script/c101204067.lua
View file @
5e19fbe5
...
@@ -34,7 +34,7 @@ end
...
@@ -34,7 +34,7 @@ end
function
s
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
if
chk
==
0
then
if
chk
==
0
then
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
ct
then
return
false
end
if
ct
==
0
or
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
return
false
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
ct
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
ct
)
local
result
=
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
local
result
=
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
return
result
return
result
...
@@ -44,9 +44,14 @@ function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,9 +44,14 @@ function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
s
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
local
dt
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
ct
=
math.min
(
ct
,
dt
)
local
t
=
{}
for
i
=
1
,
ct
do
t
[
i
]
=
i
end
local
ac
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
t
))
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
Duel
.
ConfirmDecktop
(
p
,
ct
)
Duel
.
ConfirmDecktop
(
p
,
ac
)
local
g
=
Duel
.
GetDecktopGroup
(
p
,
ct
)
local
g
=
Duel
.
GetDecktopGroup
(
p
,
ac
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
Select
(
p
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
p
,
1
,
1
,
nil
)
...
@@ -73,12 +78,12 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,12 +78,12 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
else
else
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
sg
,
nil
,
SEQ_DECKBOTTOM
,
REASON_EFFECT
)
ct
=
ct
-
1
ac
=
ac
-
1
end
end
end
end
if
ct
>
0
then
if
ac
>
0
then
Duel
.
SortDecktop
(
tp
,
tp
,
ct
)
Duel
.
SortDecktop
(
tp
,
tp
,
ac
)
for
i
=
1
,
ct
do
for
i
=
1
,
ac
do
local
mg
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
mg
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
end
...
...
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