Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
4c57845a
Commit
4c57845a
authored
Mar 14, 2022
by
mercury233
Committed by
GitHub
Mar 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ナンバーズ・エヴァイユ (#1832)
parent
8ecee476
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
22 deletions
+32
-22
c20994205.lua
c20994205.lua
+32
-22
No files found.
c20994205.lua
View file @
4c57845a
...
@@ -18,40 +18,50 @@ function c20994205.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,40 +18,50 @@ function c20994205.condition(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
IsExistingMatchingCard
(
c20994205
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c20994205
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c20994205
.
nofilter
(
c
)
function
c20994205
.
nofilter
(
c
)
return
aux
.
GetXyzNumber
(
c
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x48
)
and
aux
.
GetXyzNumber
(
c
)
end
end
function
c20994205
.
spfilter
(
c
,
e
,
tp
)
function
c20994205
.
spfilter
(
c
,
e
,
tp
)
if
not
c20994205
.
nofilter
(
c
)
then
return
end
return
c20994205
.
nofilter
(
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c20994205
.
nofilter
,
tp
,
LOCATION_EXTRA
,
0
,
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
return
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
g
:
CheckSubGroup
(
c20994205
.
fselect
,
4
,
4
,
c
)
end
end
function
c20994205
.
fselect
(
sg
,
c
)
function
c20994205
.
gselect
(
g
,
spg
)
return
sg
:
GetSum
(
aux
.
GetXyzNumber
)
==
aux
.
GetXyzNumber
(
c
)
and
sg
:
GetClassCount
(
Card
.
GetRank
)
==
4
return
spg
:
IsExists
(
c20994205
.
spnofilter
,
1
,
g
,
g
:
GetSum
(
aux
.
GetXyzNumber
))
and
sg
:
Filter
(
Card
.
IsCanBeXyzMaterial
,
nil
,
c
):
GetCount
()
==
4
end
end
function
c20994205
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20994205
.
spnofilter
(
c
,
sum
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c20994205
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
return
aux
.
GetXyzNumber
(
c
)
==
sum
and
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c20994205
.
gselect
(
sg
,
e
,
tp
)
function
c20994205
.
gcheck
(
max
)
local
g
=
Duel
.
GetMatchingGroup
(
c20994205
.
nofilter
,
tp
,
LOCATION_EXTRA
,
0
,
sg
)
return
function
(
g
)
return
g
:
IsExists
(
c20994205
.
spfilter2
,
1
,
nil
,
sg
,
e
,
tp
)
return
g
:
GetClassCount
(
Card
.
GetRank
)
==#
g
and
g
:
GetSum
(
aux
.
GetXyzNumber
)
<=
max
end
end
end
function
c20994205
.
spfilter2
(
c
,
sg
,
e
,
tp
)
function
c20994205
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
sg
:
GetSum
(
aux
.
GetXyzNumber
)
==
aux
.
GetXyzNumber
(
c
)
and
sg
:
GetClassCount
(
Card
.
GetRank
)
==
4
if
chk
==
0
then
and
sg
:
Filter
(
Card
.
IsCanBeXyzMaterial
,
nil
,
c
):
GetCount
()
==
4
if
not
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
then
return
false
end
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
local
mg
=
Duel
.
GetMatchingGroup
(
c20994205
.
nofilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
spg
=
Duel
.
GetMatchingGroup
(
c20994205
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
if
#
mg
<
5
or
#
spg
==
0
then
return
false
end
local
_
,
max
=
spg
:
GetMaxGroup
(
aux
.
GetXyzNumber
)
aux
.
GCheckAdditional
=
c20994205
.
gcheck
(
max
)
local
res
=
mg
:
CheckSubGroup
(
c20994205
.
gselect
,
4
,
4
,
spg
)
aux
.
GCheckAdditional
=
nil
return
res
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c20994205
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20994205
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
then
return
end
if
not
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_XMATERIAL
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c20994205
.
nofilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
c20994205
.
nofilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
spg
=
Duel
.
GetMatchingGroup
(
c20994205
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
if
#
mg
<
5
or
#
spg
==
0
then
return
end
local
_
,
max
=
spg
:
GetMaxGroup
(
aux
.
GetXyzNumber
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c20994205
.
gselect
,
false
,
4
,
4
,
e
,
tp
)
aux
.
GCheckAdditional
=
c20994205
.
gcheck
(
max
)
local
sg
=
mg
:
SelectSubGroup
(
tp
,
c20994205
.
gselect
,
false
,
4
,
4
,
spg
)
aux
.
GCheckAdditional
=
nil
if
sg
then
if
sg
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
xyz
=
g
:
FilterSelect
(
tp
,
c20994205
.
spfilter2
,
1
,
1
,
sg
,
sg
,
e
,
tp
):
GetFirst
()
local
xyz
=
spg
:
FilterSelect
(
tp
,
c20994205
.
spnofilter
,
1
,
1
,
sg
,
sg
:
GetSum
(
aux
.
GetXyzNumber
)
):
GetFirst
()
Duel
.
SpecialSummon
(
xyz
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
xyz
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
xyz
:
CompleteProcedure
()
xyz
:
CompleteProcedure
()
Duel
.
Overlay
(
xyz
,
sg
)
Duel
.
Overlay
(
xyz
,
sg
)
...
...
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