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
Mr.Tan
pre-release-database-cdb
Commits
3ce8d2f7
You need to sign in or sign up before continuing.
Commit
3ce8d2f7
authored
Mar 04, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Divine Serpent Apophis
parent
664c30be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
MZTM.cdb
MZTM.cdb
+0
-0
script/c100237004.lua
script/c100237004.lua
+15
-16
No files found.
MZTM.cdb
View file @
3ce8d2f7
No preview for this file type
script/c100237004.lua
View file @
3ce8d2f7
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
s
.
sp
limit
)
e1
:
SetValue
(
aux
.
fus
limit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--spsummon
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -49,23 +49,23 @@ end
...
@@ -49,23 +49,23 @@ end
function
s
.
ffilter
(
c
)
function
s
.
ffilter
(
c
)
return
aux
.
IsCodeListed
(
c
,
29762407
)
return
aux
.
IsCodeListed
(
c
,
29762407
)
end
end
function
s
.
splimit
(
e
,
se
,
sp
,
st
)
function
s
.
hspfilter
(
c
,
tp
,
sc
)
return
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
return
c
:
IsFusionSetCard
(
0x2c9
)
and
c
:
IsControler
(
tp
)
and
c
:
IsReleasable
(
REASON_SPSUMMON
)
end
function
s
.
hspfilter
(
c
)
return
c
:
IsFusionSetCard
(
0x2c9
)
and
c
:
IsControler
(
tp
)
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
and
c
:
IsCanBeFusionMaterial
(
sc
,
SUMMON_TYPE_SPECIAL
)
end
end
function
s
.
hspchk
(
g
,
tp
,
sc
)
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
sc
)
>
0
end
function
s
.
hspcon
(
e
,
c
)
function
s
.
hspcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
hspfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
hspfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
,
e
:
GetHandler
()
)
return
rg
:
CheckSubGroup
(
aux
.
mzctcheck
,
2
,
2
,
tp
)
return
rg
:
CheckSubGroup
(
s
.
hspchk
,
2
,
2
,
tp
,
e
:
GetHandler
()
)
end
end
function
s
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
function
s
.
hsptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
hspfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
rg
=
Duel
.
GetMatchingGroup
(
s
.
hspfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
,
e
:
GetHandler
()
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
aux
.
mzctcheck
,
true
,
2
,
2
,
tp
)
local
sg
=
rg
:
SelectSubGroup
(
tp
,
s
.
hspchk
,
true
,
2
,
2
,
tp
,
e
:
GetHandler
()
)
if
sg
then
if
sg
then
sg
:
KeepAlive
()
sg
:
KeepAlive
()
e
:
SetLabelObject
(
sg
)
e
:
SetLabelObject
(
sg
)
...
@@ -78,7 +78,7 @@ function s.hspop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -78,7 +78,7 @@ function s.hspop(e,tp,eg,ep,ev,re,r,rp,c)
g
:
DeleteGroup
()
g
:
DeleteGroup
()
end
end
function
s
.
setfilter
(
c
)
function
s
.
setfilter
(
c
)
return
c
:
IsSetCard
(
0x2c9
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsSetCard
(
0x2c9
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
and
c
:
IsCanBeEffectTarget
()
end
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
...
@@ -91,18 +91,17 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -91,18 +91,17 @@ function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
g
:
Filter
(
aux
.
NecroValleyFilter
(
Card
.
IsRelateTo
Effect
),
nil
,
e
)
local
tg
=
g
:
Filter
(
aux
.
NecroValleyFilter
(
Card
.
IsRelateTo
Chain
),
nil
,
e
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
#
tg
==
0
or
ft
<=
0
then
return
end
if
#
tg
==
0
or
ft
<=
0
then
return
end
if
#
tg
>
ft
then
if
#
tg
>
ft
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
SET
)
tg
=
tg
:
Select
(
tp
,
1
,
ft
,
nil
)
tg
=
tg
:
Select
(
tp
,
ft
,
ft
,
nil
)
end
end
Duel
.
SSet
(
tp
,
tg
)
Duel
.
SSet
(
tp
,
tg
)
end
end
function
s
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
re
:
GetHandler
()
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
return
rp
==
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
end
end
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
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