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
zengshangxing
pre-release-database-cdb
Commits
fbd1560d
Commit
fbd1560d
authored
Jan 14, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 連慄砲固定式
parent
e2f46b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
script/c101204080.lua
script/c101204080.lua
+5
-5
No files found.
script/c101204080.lua
View file @
fbd1560d
...
@@ -22,12 +22,12 @@ function s.lv_or_rk(c)
...
@@ -22,12 +22,12 @@ function s.lv_or_rk(c)
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
nil
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
nil
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
TYPE_FUSION
+
TYPE_XYZ
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
TYPE_FUSION
+
TYPE_XYZ
)
:
Filter
(
Card
.
IsAbleToRemove
,
nil
,
POS_FACEUP
)
if
chk
==
0
then
return
g
and
g
:
CheckSubGroup
(
s
.
rcheck
,
3
,
3
,
ct
)
end
if
chk
==
0
then
return
g
and
g
:
CheckSubGroup
(
s
.
rcheck
,
3
,
3
,
ct
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
3
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
3
,
tp
,
LOCATION_EXTRA
)
end
end
function
s
.
lrfilter
(
c
,
tp
)
function
s
.
lrfilter
(
c
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsType
,
Card
.
IsFaceupEx
),
tp
,
LOCATION_REMOVED
,
0
,
nil
,
TYPE_FUSION
+
TYPE_XYZ
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsType
,
Card
.
IsFaceupEx
),
tp
,
LOCATION_REMOVED
,
0
,
nil
,
TYPE_FUSION
+
TYPE_XYZ
)
:
Filter
(
Card
.
IsAbleToExtra
,
nil
)
local
lr
=
0
local
lr
=
0
if
c
:
IsType
(
TYPE_XYZ
)
then
lr
=
c
:
GetRank
()
else
lr
=
c
:
GetLevel
()
end
if
c
:
IsType
(
TYPE_XYZ
)
then
lr
=
c
:
GetRank
()
else
lr
=
c
:
GetLevel
()
end
return
c
:
IsFaceup
()
and
g
:
CheckSubGroup
(
s
.
lrcheck
,
2
,
2
,
lr
)
return
c
:
IsFaceup
()
and
g
:
CheckSubGroup
(
s
.
lrcheck
,
2
,
2
,
lr
)
...
@@ -37,15 +37,15 @@ function s.lrcheck(g,ct)
...
@@ -37,15 +37,15 @@ function s.lrcheck(g,ct)
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
ct
=
Duel
.
GetMatchingGroupCount
(
nil
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
nil
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
nil
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
TYPE_FUSION
+
TYPE_XYZ
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
TYPE_FUSION
+
TYPE_XYZ
)
:
Filter
(
Card
.
IsAbleToRemove
,
nil
,
POS_FACEUP
)
if
not
g
:
CheckSubGroup
(
s
.
rcheck
,
3
,
3
,
ct
)
then
return
false
end
if
not
g
:
CheckSubGroup
(
s
.
rcheck
,
3
,
3
,
ct
)
then
return
false
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
rcheck
,
false
,
3
,
3
,
ct
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
s
.
rcheck
,
false
,
3
,
3
,
ct
)
if
not
sg
or
not
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
==
3
then
return
false
end
if
not
sg
or
not
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
==
3
then
return
false
end
if
Duel
.
IsExistingMatchingCard
(
s
.
lrfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
if
Duel
.
IsExistingMatchingCard
(
s
.
lrfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
lrfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
):
GetFirst
()
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
lrfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
):
GetFirst
()
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsType
,
Card
.
IsFaceupEx
),
tp
,
LOCATION_REMOVED
,
0
,
nil
,
TYPE_FUSION
+
TYPE_XYZ
)
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsType
,
Card
.
IsFaceupEx
),
tp
,
LOCATION_REMOVED
,
0
,
nil
,
TYPE_FUSION
+
TYPE_XYZ
)
:
Filter
(
Card
.
IsAbleToExtra
,
nil
)
local
lr
=
0
local
lr
=
0
if
tc
:
IsType
(
TYPE_XYZ
)
then
lr
=
tc
:
GetRank
()
else
lr
=
tc
:
GetLevel
()
end
if
tc
:
IsType
(
TYPE_XYZ
)
then
lr
=
tc
:
GetRank
()
else
lr
=
tc
:
GetLevel
()
end
local
rg
=
tg
:
SelectSubGroup
(
tp
,
s
.
lrcheck
,
false
,
2
,
2
,
lr
)
local
rg
=
tg
:
SelectSubGroup
(
tp
,
s
.
lrcheck
,
false
,
2
,
2
,
lr
)
...
...
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