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
734157c2
Commit
734157c2
authored
Jul 28, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix The League of Uniform Nomenclature Strikes
parent
c1be5c58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
19 deletions
+10
-19
script/c101205086.lua
script/c101205086.lua
+10
-19
No files found.
script/c101205086.lua
View file @
734157c2
...
@@ -14,10 +14,10 @@ function s.initial_effect(c)
...
@@ -14,10 +14,10 @@ function s.initial_effect(c)
end
end
function
s
.
filter
(
c
,
tp
)
function
s
.
filter
(
c
,
tp
)
local
code
=
c
:
GetOriginalCode
()
local
code
=
c
:
GetOriginalCode
()
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
s
.
eqfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
2
,
nil
,
code
)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
s
.
eqfilter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_HAND
,
0
,
2
,
nil
,
code
,
tp
)
end
end
function
s
.
eqfilter
(
c
,
code
)
function
s
.
eqfilter
(
c
,
code
,
tp
)
return
c
:
IsOriginalCodeRule
(
code
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
return
c
:
IsOriginalCodeRule
(
code
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
filter
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
filter
(
chkc
,
tp
)
end
...
@@ -32,15 +32,17 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -32,15 +32,17 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
code
=
tc
:
GetOriginalCode
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
1
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
1
and
Duel
.
GetMatchingGroupCount
(
aux
.
NecroValleyFilter
(
s
.
eqfilter
),
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
nil
,
tc
:
GetOriginalCode
()
)
>
1
then
and
Duel
.
GetMatchingGroupCount
(
aux
.
NecroValleyFilter
(
s
.
eqfilter
),
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
nil
,
code
,
tp
)
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
eqfilter
),
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
,
tc
:
GetOriginalCode
()
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
s
.
eqfilter
),
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
2
,
2
,
nil
,
code
,
tp
)
if
#
g
<
2
then
return
end
if
#
g
<
2
then
return
end
local
ec
=
g
:
GetFirst
()
local
ec
=
g
:
GetFirst
()
while
ec
do
while
ec
do
if
Duel
.
Equip
(
tp
,
ec
,
tc
)
then
if
Duel
.
Equip
(
tp
,
ec
,
tc
)
then
--equip limit
--equip limit
ec
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
,
id
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
...
@@ -49,13 +51,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,13 +51,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
s
.
eqlimit
)
e1
:
SetValue
(
s
.
eqlimit
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
ec
:
RegisterEffect
(
e1
)
ec
:
RegisterEffect
(
e1
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
0
,
0
,
1
)
local
e4
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetOperation
(
s
.
desop
)
e4
:
SetReset
(
RESET_EVENT
+
RESET_OVERLAY
+
RESET_TOFIELD
)
ec
:
RegisterEffect
(
e4
)
end
end
ec
=
g
:
GetNext
()
ec
=
g
:
GetNext
()
end
end
...
@@ -86,13 +81,9 @@ end
...
@@ -86,13 +81,9 @@ end
function
s
.
splimit
(
e
,
c
)
function
s
.
splimit
(
e
,
c
)
return
c
:
GetOriginalRace
()
&
e
:
GetLabel
()
==
0
return
c
:
GetOriginalRace
()
&
e
:
GetLabel
()
==
0
end
end
function
s
.
chkcon
(
e
,
c
)
function
s
.
chkcon
(
e
)
local
tp
=
e
:
GetOwner
():
GetControler
()
local
c
=
e
:
GetHandler
()
return
Duel
.
GetFlagEffect
(
tp
,
id
)
==
2
return
c
:
GetEquipGroup
():
Filter
(
Card
.
GetFlagEffect
,
nil
,
id
):
GetCount
()
>=
2
end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
Reset
()
Duel
.
ResetFlagEffect
(
tp
,
id
)
end
end
function
s
.
eqlimit
(
e
,
c
)
function
s
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
return
c
==
e
:
GetLabelObject
()
...
...
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