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
aaadbd9e
Commit
aaadbd9e
authored
Jan 01, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 械刀婪魔皇断
parent
4eed67b4
Pipeline
#32264
passed with stages
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
script/c101208066.lua
script/c101208066.lua
+3
-3
No files found.
script/c101208066.lua
View file @
aaadbd9e
...
@@ -39,7 +39,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +39,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
local
tg
=
Duel
.
GetMatchingGroup
(
s
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
nil
,
tp
)
local
tg
=
Duel
.
GetMatchingGroup
(
s
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_EXTRA
,
0
,
nil
,
tp
)
local
ct
=
tg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
+
tg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
local
ct
=
s
.
getct
(
tg
)
if
ct
>=
g
:
GetCount
()
then
if
ct
>=
g
:
GetCount
()
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
s
.
selgroup
(
tg
,
tp
,
g
:
GetCount
())
local
sg
=
s
.
selgroup
(
tg
,
tp
,
g
:
GetCount
())
...
@@ -57,15 +57,15 @@ function s.selgroup(g,tp,ct)
...
@@ -57,15 +57,15 @@ function s.selgroup(g,tp,ct)
local
finish
=
cct
==
ct
local
finish
=
cct
==
ct
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
if
not
finish
then
if
not
finish
then
sg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
local
hct
=
rg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
local
hct
=
rg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
local
ectn
=
math.ceil
(
rg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
/
6
)
local
ectn
=
math.ceil
(
rg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
/
6
)
sg
=
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
if
hct
+
ectn
<
ct
then
if
hct
+
ectn
<
ct
then
sg
=
sg
+
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
sg
=
sg
+
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
end
end
sg
=
sg
-
rg
sg
=
sg
-
rg
end
end
local
tc
=
sg
:
SelectUnselect
(
rg
,
tp
,
finish
,
not
finish
,
1
,
g
:
GetCount
()
)
local
tc
=
sg
:
SelectUnselect
(
rg
,
tp
,
finish
,
not
finish
,
cct
,
ct
)
if
tc
==
nil
then
if
tc
==
nil
then
if
finish
then
if
finish
then
break
break
...
...
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