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
021c0769
Commit
021c0769
authored
Oct 17, 2025
by
Amiya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
0e246561
Pipeline
#41084
failed with stages
in 1 minute and 2 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
2 deletions
+115
-2
script-fix.cdb
script-fix.cdb
+0
-0
script/c101303004.lua
script/c101303004.lua
+2
-2
script/c975299.lua
script/c975299.lua
+113
-0
test-update.cdb
test-update.cdb
+0
-0
No files found.
script-fix.cdb
View file @
021c0769
No preview for this file type
script/c101303004.lua
View file @
021c0769
--磁石の戦士マグネット・テルスリオン
--磁石の戦士マグネット・テルスリオン
local
s
,
id
,
o
=
GetID
()
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
function
s
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
aux
.
AddCodeList
()
c
:
EnableReviveLimit
(
c
,
101303005
,
101303006
)
--cannot special summon
--cannot special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
...
@@ -56,7 +57,6 @@ end
...
@@ -56,7 +57,6 @@ end
function
s
.
spcon
(
e
,
c
)
function
s
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
if
Duel
.
GetMZoneCount
(
tp
)
<=
0
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
s
.
spcostfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
spcostfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
c
)
return
g
:
CheckSubGroup
(
s
.
gcheck
,
2
,
2
,
tp
)
return
g
:
CheckSubGroup
(
s
.
gcheck
,
2
,
2
,
tp
)
end
end
...
...
script/c975299.lua
0 → 100644
View file @
021c0769
--巨大要塞ゼロス
function
c975299
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
66947414
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetOperation
(
c975299
.
activate
)
c
:
RegisterEffect
(
e1
)
--atk/def up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x15
))
e2
:
SetValue
(
500
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e3
)
--indes
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e4
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x15
))
e4
:
SetValue
(
aux
.
indoval
)
c
:
RegisterEffect
(
e4
)
--cannot be target
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e5
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x15
))
e5
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
975299
,
1
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_IGNITION
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetCountLimit
(
1
)
e6
:
SetTarget
(
c975299
.
sptg
)
e6
:
SetOperation
(
c975299
.
spop
)
c
:
RegisterEffect
(
e6
)
--counter
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetDescription
(
aux
.
Stringid
(
975299
,
2
))
e7
:
SetCategory
(
CATEGORY_COUNTER
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e7
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e7
:
SetRange
(
LOCATION_FZONE
)
e7
:
SetCondition
(
c975299
.
ctcon
)
e7
:
SetTarget
(
c975299
.
cttg
)
e7
:
SetOperation
(
c975299
.
ctop
)
c
:
RegisterEffect
(
e7
)
local
e8
=
e7
:
Clone
()
e8
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e8
)
end
function
c975299
.
thfilter
(
c
)
return
c
:
IsCode
(
66947414
)
and
c
:
IsAbleToHand
()
end
function
c975299
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c975299
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
975299
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
function
c975299
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x15
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c975299
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c975299
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c975299
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c975299
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c975299
.
ctfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x15
)
and
c
:
IsControler
(
tp
)
end
function
c975299
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c975299
.
ctfilter
,
1
,
nil
,
tp
)
end
function
c975299
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
ec
=
eg
:
FilterCount
(
c975299
.
ctfilter
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
ec
,
0
,
0x1f
)
end
function
c975299
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
c975299
.
ctfilter
,
nil
,
tp
)
local
tc
=
g
:
GetFirst
()
while
tc
do
tc
:
AddCounter
(
0x1f
,
1
)
tc
=
g
:
GetNext
()
end
end
test-update.cdb
View file @
021c0769
No preview for this file type
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