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
6b93fdfc
Commit
6b93fdfc
authored
Jun 12, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 原石の皇脈
parent
84acbc0b
Pipeline
#27734
passed with stages
in 59 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
script/c101206058.lua
script/c101206058.lua
+17
-11
No files found.
script/c101206058.lua
View file @
6b93fdfc
...
@@ -59,23 +59,29 @@ function s.smtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -59,23 +59,29 @@ function s.smtg(e,tp,eg,ep,ev,re,r,rp,chk)
and
Duel
.
IsExistingMatchingCard
(
s
.
smfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
s
.
smfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
smfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
smfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
for
tc
in
aux
.
Next
(
g
)
do
local
codes
=
{}
if
sg
:
FilterCount
(
Card
.
IsCode
,
nil
,
tc
:
GetCode
())
==
0
then
for
c
in
aux
.
Next
(
g
)
do
sg
:
AddCard
(
tc
)
local
code
=
c
:
GetCode
()
if
not
sg
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
code
)
then
sg
:
AddCard
(
c
)
table.insert
(
codes
,
code
)
end
end
end
end
local
flag
=
1
table.sort
(
codes
)
local
nt
=
{}
local
afilter
=
{
codes
[
1
],
OPCODE_ISCODE
}
for
tc
in
aux
.
Next
(
sg
)
do
if
#
codes
>
1
then
table.insert
(
nt
,
tc
:
GetCode
())
--or ... or c:IsCode(codes[i])
table.insert
(
nt
,
OPCODE_ISCODE
)
for
i
=
2
,
#
codes
do
if
flag
>
1
then
table.insert
(
nt
,
OPCODE_OR
)
end
table.insert
(
afilter
,
codes
[
i
])
flag
=
flag
+
1
table.insert
(
afilter
,
OPCODE_ISCODE
)
table.insert
(
afilter
,
OPCODE_OR
)
end
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CODE
)
local
code
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
nt
))
local
code
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
afilter
))
getmetatable
(
e
:
GetHandler
()).
announce_filter
=
{
TYPE_MONSTER
,
OPCODE_ISTYPE
,
TYPE_NORMAL
,
OPCODE_ISTYPE
,
5405694
,
OPCODE_ISCODE
,
OPCODE_OR
,
OPCODE_AND
}
getmetatable
(
e
:
GetHandler
()).
announce_filter
=
{
TYPE_MONSTER
,
OPCODE_ISTYPE
,
TYPE_NORMAL
,
OPCODE_ISTYPE
,
5405694
,
OPCODE_ISCODE
,
OPCODE_OR
,
OPCODE_AND
}
Duel
.
SetTargetParam
(
code
)
Duel
.
SetTargetParam
(
code
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
)
end
end
function
s
.
smop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
smop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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