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
liucerf
pre-release-database-cdb
Commits
4eed67b4
Commit
4eed67b4
authored
Jan 01, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 械刀婪魔皇断
parent
1ba93e86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
4 deletions
+37
-4
script/c101208066.lua
script/c101208066.lua
+37
-4
No files found.
script/c101208066.lua
View file @
4eed67b4
...
@@ -32,16 +32,17 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -32,16 +32,17 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
ct
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
ct
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
s
.
g
check
(
g
,
ct
)
function
s
.
g
etct
(
g
)
return
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
+
math.floor
(
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
/
6
)
==
ct
return
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
+
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
/
6
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
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
)
if
tg
:
CheckSubGroup
(
s
.
gcheck
,
1
,
127
,
g
:
GetCount
())
then
local
ct
=
tg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
+
tg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_EXTRA
)
if
ct
>=
g
:
GetCount
()
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
tg
:
SelectSubGroup
(
tp
,
s
.
gcheck
,
false
,
1
,
15
,
g
:
GetCount
())
local
sg
=
s
.
selgroup
(
tg
,
tp
,
g
:
GetCount
())
if
sg
:
GetCount
()
>
0
and
Duel
.
Remove
(
sg
,
POS_FACEDOWN
,
REASON_EFFECT
)
then
if
sg
:
GetCount
()
>
0
and
Duel
.
Remove
(
sg
,
POS_FACEDOWN
,
REASON_EFFECT
)
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
...
@@ -49,3 +50,35 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,3 +50,35 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
s
.
selgroup
(
g
,
tp
,
ct
)
local
rg
=
Group
.
CreateGroup
()
while
true
do
local
cct
=
s
.
getct
(
rg
)
local
finish
=
cct
==
ct
local
sg
=
Group
.
CreateGroup
()
if
not
finish
then
local
hct
=
rg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
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
sg
=
sg
+
g
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
end
sg
=
sg
-
rg
end
local
tc
=
sg
:
SelectUnselect
(
rg
,
tp
,
finish
,
not
finish
,
1
,
g
:
GetCount
())
if
tc
==
nil
then
if
finish
then
break
else
rg
:
Clear
()
end
else
if
rg
:
IsContains
(
tc
)
then
rg
:
RemoveCard
(
tc
)
else
rg
:
AddCard
(
tc
)
end
end
end
return
rg
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