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
Crescent/毛虫
pre-release-database-cdb
Commits
bcb98c8f
Commit
bcb98c8f
authored
Jun 14, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
da2bb4b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
script/c101206007.lua
script/c101206007.lua
+1
-2
script/c101206008.lua
script/c101206008.lua
+5
-5
script/c101206071.lua
script/c101206071.lua
+4
-3
No files found.
script/c101206007.lua
View file @
bcb98c8f
...
...
@@ -60,8 +60,7 @@ end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
c
:
IsAbleToDeck
()
end
and
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c101206008.lua
View file @
bcb98c8f
...
...
@@ -38,8 +38,7 @@ end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
c
:
IsAbleToDeck
()
end
and
Duel
.
IsExistingMatchingCard
(
s
.
setfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
function
s
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -58,17 +57,18 @@ function s.lvcon(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
racetg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATTRIBUT
E
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
RAC
E
)
local
race
=
Duel
.
AnnounceRace
(
tp
,
1
,
RACE_ALL
&~
e
:
GetHandler
():
GetRace
())
e
:
SetLabel
(
race
)
end
function
s
.
raceop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
race
=
e
:
GetLabel
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
bit
.
band
(
c
:
GetRace
(),
race
)
==
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_RACE
)
e1
:
SetValue
(
e
:
GetLabel
()
)
e1
:
SetValue
(
race
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
c
:
RegisterEffect
(
e1
)
end
...
...
script/c101206071.lua
View file @
bcb98c8f
...
...
@@ -21,7 +21,7 @@ function s.filter1(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
,
1
,
c
:
GetLevel
(),
c
:
GetRace
(),
c
:
GetAttribute
())
end
function
s
.
filter2
(
c
,
e
,
tp
,
ft
,
lv
,
race
,
att
)
return
not
c
:
IsSummonableCard
()
and
aux
.
IsCodeListed
(
c
,
101206071
)
return
not
c
:
IsSummonableCard
()
and
aux
.
IsCodeListed
(
c
,
101206071
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
(
not
c
:
IsLocation
(
LOCATION_DECK
+
LOCATION_HAND
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
,
POS_FACEUP
)
or
c
.
Metallization_material
and
c
.
Metallization_material
(
ft
,
lv
,
race
,
att
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
true
,
POS_FACEUP
))
end
...
...
@@ -44,10 +44,11 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
filter2
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
e
:
GetLabel
()):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
filter2
)
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
e
:
GetLabel
()):
GetFirst
()
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
>
0
then
tc
:
CompleteProcedure
()
if
c
:
IsOnField
()
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
2
))
then
Duel
.
BreakEffect
()
c
:
CancelToGrave
(
true
)
if
Duel
.
Equip
(
tp
,
c
,
tc
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
tc
)
...
...
@@ -87,7 +88,7 @@ function s.eqlimit(e,c)
return
e
:
GetOwner
()
==
c
end
function
s
.
tgval
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
+
TYPE_SPELL
)
return
re
:
IsActiveType
(
TYPE_MONSTER
+
TYPE_SPELL
)
and
rp
==
1
-
e
:
GetHandlerPlayer
()
end
function
s
.
efilter
(
e
,
re
)
return
re
:
IsActiveType
(
TYPE_MONSTER
+
TYPE_SPELL
)
...
...
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