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
acfffa5d
Commit
acfffa5d
authored
Jan 01, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 械刀婪魔皇断
parent
774f5551
Pipeline
#32259
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
9 additions
and
7 deletions
+9
-7
script/c101208066.lua
script/c101208066.lua
+9
-7
No files found.
script/c101208066.lua
View file @
acfffa5d
...
@@ -25,8 +25,8 @@ function s.tgfilter(c)
...
@@ -25,8 +25,8 @@ function s.tgfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
return
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToHand
(
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
s
.
tgfilter
(
chkc
)
end
local
ct
=
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
(),
tp
)
+
math.floor
(
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
/
6
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
s
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
e
:
GetHandler
(),
tp
)
+
math.floor
(
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
tp
)
/
6
)
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingTarget
(
s
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingTarget
(
s
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
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
())
...
@@ -39,11 +39,13 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,11 +39,13 @@ 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
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
if
tg
:
CheckSubGroup
(
s
.
gcheck
,
1
,
127
,
g
:
GetCount
())
then
local
sg
=
tg
:
SelectSubGroup
(
tp
,
s
.
gcheck
,
false
,
1
,
127
,
g
:
GetCount
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
if
sg
:
GetCount
()
>
0
and
Duel
.
Remove
(
sg
,
POS_FACEDOWN
,
REASON_EFFECT
)
then
local
sg
=
tg
:
SelectSubGroup
(
tp
,
s
.
gcheck
,
false
,
1
,
127
,
g
:
GetCount
())
Duel
.
BreakEffect
()
if
sg
:
GetCount
()
>
0
and
Duel
.
Remove
(
sg
,
POS_FACEDOWN
,
REASON_EFFECT
)
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
end
end
end
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