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
1fc58554
Commit
1fc58554
authored
May 16, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround for Engraver
parent
4920766f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
script/c101301054.lua
script/c101301054.lua
+13
-3
No files found.
script/c101301054.lua
View file @
1fc58554
...
...
@@ -125,8 +125,11 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ac
=
Duel
.
AnnounceCard
(
tp
,
table.unpack
(
afilter
))
s
.
AddToAnnounced
(
tp
,
ac
)
Duel
.
SetTargetParam
(
ac
)
Auxiliary
.
DefineGetterTemp
(
getmetatable
(
e
:
GetHandler
()),
"announce_filter"
,
s
.
announce_filter_func
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
if
#
codes
>
1
then
-- it should be at least two possible choices to make it changeable
Auxiliary
.
DefineGetterTemp
(
getmetatable
(
e
:
GetHandler
()),
"announce_filter"
,
s
.
announce_filter_func
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_ANNOUNCE
,
nil
,
0
,
tp
,
0
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
s
.
thlimit
(
e
,
c
,
tp
,
re
)
...
...
@@ -213,10 +216,17 @@ function Auxiliary.DefineGetterTemp(mt, field, f)
end
)
end
-- workaround for Engraver
local
ARTMEGIA_COUNT
=
4
function
s
.
announce_filter_func
(
c
)
local
tp
=
c
:
GetControler
()
local
exg
=
Duel
.
GetMatchingGroup
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsSetCard
),
tp
,
LOCATION_MZONE
,
0
,
nil
,
0x2cd
)
local
ncodes
=
s
.
CreateCodeList
(
exg
,
s
.
announced
[
tp
],
nil
,
nil
)
local
ncodes
=
s
.
CreateCodeList
(
exg
,
nil
,
nil
,
nil
)
if
#
ncodes
>=
ARTMEGIA_COUNT
then
-- this case Engraver would freeze, so we make it at least don't freeze
ncodes
=
{}
end
local
af
=
{
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
+
TYPE_LINK
,
OPCODE_ISTYPE
,
OPCODE_NOT
,
0x2cd
,
OPCODE_ISSETCARD
,
OPCODE_AND
,
...
...
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