Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
2d9232a4
Commit
2d9232a4
authored
Feb 19, 2024
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c33731002.lua
fix
parent
a6d86e6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
27 deletions
+23
-27
expansions/script/c33731002.lua
expansions/script/c33731002.lua
+23
-27
No files found.
expansions/script/c33731002.lua
View file @
2d9232a4
...
@@ -37,39 +37,42 @@ end
...
@@ -37,39 +37,42 @@ end
function
s
.
synfilter
(
c
,
e
,
tp
,
lv
)
function
s
.
synfilter
(
c
,
e
,
tp
,
lv
)
return
c
:
IsSetCard
(
0x442
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsLevel
(
lv
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x442
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsLevel
(
lv
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
s
.
syncheck
(
g
,
e
,
tp
)
function
s
.
syncheck
(
ct
)
return
Duel
.
IsExistingMatchingCard
(
s
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
:
GetSum
(
Card
.
GetLevel
))
return
function
(
g
,
e
,
tp
)
local
res
=
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
<=
ct
return
res
and
Duel
.
IsExistingMatchingCard
(
s
.
synfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
g
:
GetSum
(
Card
.
GetLevel
)),
not
res
end
end
end
function
s
.
xyzfilter
(
c
,
e
,
tp
)
function
s
.
xyzfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x442
)
and
c
:
IsType
(
TYPE_XYZ
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x442
)
and
c
:
IsType
(
TYPE_XYZ
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
s
.
xyzcheck
(
g
)
function
s
.
xyzcheck
(
ct
)
return
g
:
GetClassCount
(
Card
.
GetLevel
)
==
1
return
function
(
g
)
end
local
res
=
g
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
)
<=
ct
and
g
:
GetClassCount
(
Card
.
GetLevel
)
==
1
function
s
.
tgfilter
(
c
)
return
res
,
not
res
return
c
:
IsSetCard
(
0x442
)
and
c
:
IsAbleToGrave
()
end
end
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
local
b1
=
g
:
CheckSubGroup
(
s
.
syncheck
,
1
,
#
g
,
e
,
tp
)
local
loc
=
ct
>
0
and
LOCATION_DECK
|
LOCATION_HAND
or
LOCATION_HAND
local
b2
=
g
:
CheckSubGroup
(
s
.
xyzcheck
,
2
,
2
)
and
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
loc
,
0
,
nil
)
local
b3
=
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
b1
=
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
1
,
#
g
,
s
.
syncheck
(
ct
),
0
)
local
b2
=
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
2
,
2
,
s
.
xyzcheck
(
ct
),
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
if
chk
==
0
then
if
chk
==
0
then
return
b1
or
b2
or
b3
return
b1
or
b2
end
end
end
end
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_HAND
,
0
,
nil
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
local
b1
=
g
:
CheckSubGroup
(
s
.
syncheck
,
1
,
#
g
,
e
,
tp
)
local
loc
=
ct
>
0
and
LOCATION_DECK
|
LOCATION_HAND
or
LOCATION_HAND
local
b2
=
g
:
CheckSubGroup
(
s
.
xyzcheck
,
2
,
2
)
and
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
loc
,
0
,
nil
)
local
b3
=
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
local
b1
=
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
1
,
#
g
,
s
.
syncheck
(
ct
),
0
)
if
not
b1
and
not
b2
and
not
b3
then
return
end
local
b2
=
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
2
,
2
,
s
.
xyzcheck
(
ct
),
0
)
and
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
local
opt
=
aux
.
Option
(
tp
,
id
,
2
,
b1
,
b2
,
b3
)
if
not
b1
and
not
b2
then
return
end
local
opt
=
aux
.
Option
(
tp
,
id
,
2
,
b1
,
b2
)
if
opt
==
0
then
if
opt
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
s
.
syncheck
,
false
,
1
,
#
g
,
e
,
tp
)
local
tg
=
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
1
,
#
g
,
s
.
syncheck
(
ct
),
1
,
tp
,
HINTMSG_REMOVE
,
nil
,
nil
,
false
)
if
#
tg
>
0
then
if
#
tg
>
0
then
local
lv
=
tg
:
GetSum
(
Card
.
GetLevel
)
local
lv
=
tg
:
GetSum
(
Card
.
GetLevel
)
if
Duel
.
SendtoGrave
(
tg
,
REASON_EFFECT
)
>
0
and
tg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
>
0
then
if
Duel
.
SendtoGrave
(
tg
,
REASON_EFFECT
)
>
0
and
tg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
>
0
then
...
@@ -83,7 +86,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,7 +86,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
elseif
opt
==
1
then
elseif
opt
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
tg
=
g
:
SelectSubGroup
(
tp
,
s
.
xyzcheck
,
false
,
2
,
2
)
local
tg
=
aux
.
SelectUnselectGroup
(
g
,
e
,
tp
,
2
,
2
,
s
.
xyzcheck
(
ct
),
1
,
tp
,
HINTMSG_REMOVE
,
nil
,
nil
,
false
)
if
#
tg
>
0
then
if
#
tg
>
0
then
if
Duel
.
SendtoGrave
(
tg
,
REASON_EFFECT
)
==
2
then
if
Duel
.
SendtoGrave
(
tg
,
REASON_EFFECT
)
==
2
then
local
gg
=
tg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
local
gg
=
tg
:
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
...
@@ -99,13 +102,6 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -99,13 +102,6 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
elseif
opt
==
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
ct
,
nil
)
if
#
g
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
end
end
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