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
b72e479d
Commit
b72e479d
authored
Mar 04, 2025
by
Amiya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
7dbeacaa
Pipeline
#33431
passed with stages
in 3 minutes and 21 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
58 additions
and
45 deletions
+58
-45
MZTM.cdb
MZTM.cdb
+0
-0
script/c100237001.lua
script/c100237001.lua
+7
-1
script/c100237002.lua
script/c100237002.lua
+13
-13
script/c100237003.lua
script/c100237003.lua
+23
-14
script/c100237004.lua
script/c100237004.lua
+5
-5
script/c100237005.lua
script/c100237005.lua
+4
-4
script/c100237006.lua
script/c100237006.lua
+0
-1
script/c100237007.lua
script/c100237007.lua
+2
-1
script/c100237009.lua
script/c100237009.lua
+2
-5
script/c100237010.lua
script/c100237010.lua
+2
-1
No files found.
MZTM.cdb
View file @
b72e479d
No preview for this file type
script/c100237001.lua
View file @
b72e479d
...
...
@@ -22,6 +22,7 @@ function s.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e3
:
SetCondition
(
s
.
indcon
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
...
...
@@ -32,6 +33,7 @@ function s.initial_effect(c)
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e5
:
SetCondition
(
s
.
indcon
)
e5
:
SetTarget
(
s
.
indtg
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
...
...
@@ -43,12 +45,13 @@ function s.initial_effect(c)
e7
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e7
:
SetCondition
(
s
.
indcon
)
e7
:
SetTarget
(
s
.
indtg2
)
e7
:
SetValue
(
1
)
c
:
RegisterEffect
(
e7
)
end
function
s
.
thfilter
(
c
)
return
(
c
:
IsCode
(
29762407
)
or
aux
.
IsCodeListed
(
c
,
29762407
)
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
(
c
:
IsAbleToHand
()
or
c
:
IsAbleToGrave
())
return
(
c
:
IsCode
(
29762407
)
or
aux
.
IsCodeListed
(
c
,
29762407
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
)
and
(
c
:
IsAbleToHand
()
or
c
:
IsAbleToGrave
())
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -65,6 +68,9 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
end
end
function
s
.
indcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
29762407
)
end
function
s
.
indtg
(
e
,
c
)
return
c
:
IsSetCard
(
0x2c9
)
end
...
...
script/c100237002.lua
View file @
b72e479d
...
...
@@ -26,26 +26,26 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e2
)
--destroy
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e
2
:
SetCategory
(
CATEGORY_DESTROY
)
e
2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
2
:
SetCode
(
EVENT_BATTLE_START
)
e
2
:
SetTarget
(
s
.
destg
)
e
2
:
SetOperation
(
s
.
desop
)
c
:
RegisterEffect
(
e
2
)
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
id
,
2
))
e
3
:
SetCategory
(
CATEGORY_DESTROY
)
e
3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e
3
:
SetCode
(
EVENT_BATTLE_START
)
e
3
:
SetTarget
(
s
.
destg
)
e
3
:
SetOperation
(
s
.
desop
)
c
:
RegisterEffect
(
e
3
)
end
function
s
.
cfilter
(
c
,
tp
)
function
s
.
cfilter
(
c
)
return
c
:
IsAbleToRemove
()
and
c
:
IsLevelAbove
(
10
)
end
function
s
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
c
,
tp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
29762407
)
end
function
s
.
sprtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
c
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tc
=
g
:
SelectUnselect
(
nil
,
tp
,
false
,
true
,
1
,
1
)
if
tc
then
...
...
@@ -58,7 +58,7 @@ function s.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_SPSUMMON
)
end
function
s
.
thfilter
(
c
)
return
(
c
:
IsCode
(
29762407
)
or
aux
.
IsCodeListed
(
c
,
29762407
)
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
return
(
c
:
IsCode
(
29762407
)
or
aux
.
IsCodeListed
(
c
,
29762407
)
and
c
:
IsType
(
TYPE_SPELL
)
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
@@ -81,7 +81,7 @@ end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
e
:
GetLabelObject
()
if
tc
and
tc
:
IsRelateToBattle
()
and
tc
:
IsControler
(
1
-
tp
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
if
tc
and
tc
:
IsRelateToBattle
()
and
tc
:
Is
Type
(
TYPE_MONSTER
)
and
tc
:
Is
Controler
(
1
-
tp
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
atk
=
tc
:
GetTextAttack
()
if
atk
<
0
then
atk
=
0
end
...
...
script/c100237003.lua
View file @
b72e479d
...
...
@@ -25,18 +25,18 @@ function s.initial_effect(c)
e2
:
SetOperation
(
s
.
thop
)
c
:
RegisterEffect
(
e2
)
--spsummon
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e
1
:
SetCategory
(
CATEGORY_DESTROY
)
e
1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e
1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetCode
(
EVENT_DESTROYED
)
e
2
:
SetCountLimit
(
1
,
id
+
o
)
e
1
:
SetCondition
(
s
.
descon
)
e
1
:
SetTarget
(
s
.
destg
)
e
1
:
SetOperation
(
s
.
desop
)
c
:
RegisterEffect
(
e
1
)
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e
3
:
SetCategory
(
CATEGORY_DESTROY
)
e
3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e
3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e
3
:
SetRange
(
LOCATION_MZONE
)
e
3
:
SetCode
(
EVENT_DESTROYED
)
e
3
:
SetCountLimit
(
1
,
id
+
o
)
e
3
:
SetCondition
(
s
.
descon
)
e
3
:
SetTarget
(
s
.
destg
)
e
3
:
SetOperation
(
s
.
desop
)
c
:
RegisterEffect
(
e
3
)
end
function
s
.
sprfilter
(
c
)
return
(
c
:
IsCode
(
29762407
)
or
c
:
IsType
(
TYPE_TRAP
))
and
c
:
IsAbleToDeckAsCost
()
...
...
@@ -61,11 +61,19 @@ end
function
s
.
sprop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
e
:
GetLabelObject
()
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_SPSUMMON
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKTOP
,
REASON_SPSUMMON
)
local
og
=
Duel
.
GetOperatedGroup
()
local
ct
=
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
if
ct
==
0
then
return
end
Duel
.
SortDecktop
(
tp
,
tp
,
ct
)
for
i
=
1
,
ct
do
local
mg
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
1
)
end
g
:
DeleteGroup
()
end
function
s
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
and
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
s
.
thfilter
(
c
)
...
...
@@ -86,6 +94,7 @@ end
function
s
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetPreviousTypeOnField
()
&
TYPE_SPELL
+
TYPE_TRAP
~=
0
end
function
s
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
,
tp
)
...
...
script/c100237004.lua
View file @
b72e479d
...
...
@@ -81,17 +81,17 @@ function s.setfilter(c)
return
c
:
IsSetCard
(
0x2c9
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
ft
=
math.min
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)),
3
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
ft
>
0
and
g
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
EQUIP
)
if
chk
c
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
setfilter
(
chkc
)
end
if
chk
==
0
then
return
ft
>
0
and
g
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
SET
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
aux
.
dncheck
,
false
,
1
,
ft
)
Duel
.
SetTargetCard
(
sg
)
end
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
tg
=
g
:
Filter
(
aux
.
NecroValleyFilter
(
Card
.
IsRelateToEffect
)
,
nil
,
e
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
#
tg
==
0
or
ft
<=
0
then
return
end
if
#
tg
>
ft
then
...
...
script/c100237005.lua
View file @
b72e479d
...
...
@@ -34,7 +34,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
s
.
atkfilter
(
c
)
return
c
:
IsFaceupEx
()
and
c
:
IsAbleToRemove
()
return
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
FaceupEx
()
and
c
:
IsAbleToRemove
()
end
function
s
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
...
...
@@ -42,12 +42,12 @@ function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
1
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
s
.
atkfilter
,
tp
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
1
,
1
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
REMOVE
,
g
,
1
,
0
,
0
)
end
function
s
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
>
0
if
tc
and
aux
.
NecroValleyFilter
()(
tc
)
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
>
0
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
upval
=
tc
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -59,5 +59,5 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
eacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceupEx
,
Card
.
IsLevelAbove
),
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
10
)
return
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceupEx
,
Card
.
IsLevelAbove
),
e
:
GetHandlerPlayer
()
,
LOCATION_REMOVED
,
0
,
1
,
nil
,
10
)
end
\ No newline at end of file
script/c100237006.lua
View file @
b72e479d
...
...
@@ -29,7 +29,6 @@ end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SSet
(
tp
,
sg
)
...
...
script/c100237007.lua
View file @
b72e479d
--Defense of the Temple
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
29762407
)
aux
.
AddCodeList
(
c
,
29762407
,
100237008
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
...
...
@@ -17,6 +17,7 @@ function s.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetCondition
(
s
.
thcon
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
s
.
thtg
)
e2
:
SetOperation
(
s
.
thop
)
...
...
script/c100237009.lua
View file @
b72e479d
...
...
@@ -14,11 +14,8 @@ function s.initial_effect(c)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
s
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsSetCard
(
0x27
)
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
(),
TYPE_SPELL
+
TYPE_TRAP
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_ONFIELD
,
0
,
3
,
e
:
GetHandler
(),
TYPE_SPELL
+
TYPE_TRAP
)
and
rp
==
1
-
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -27,7 +24,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
~=
0
then
local
sg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
#
sg
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsCode
),
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
29762407
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
...
...
script/c100237010.lua
View file @
b72e479d
--Apophis the Serpent
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
28649820
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -36,7 +37,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
TYPES_NORMAL_TRAP_MONSTER
,
1600
,
1800
,
4
,
RACE_REPTILE
,
ATTRIBUTE_EARTH
)
then
return
end
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TRAP
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
and
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
and
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
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