Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
ed120ae8
Commit
ed120ae8
authored
Aug 19, 2024
by
GuGu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c999510.lua
parent
54eacd14
Pipeline
#29290
passed with stage
in 18 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
script/c999510.lua
script/c999510.lua
+18
-2
No files found.
script/c999510.lua
View file @
ed120ae8
...
@@ -42,6 +42,9 @@ end
...
@@ -42,6 +42,9 @@ end
function
M
.
synfilter
(
c
,
syncard
,
tuner
,
f
)
function
M
.
synfilter
(
c
,
syncard
,
tuner
,
f
)
return
c
:
IsFaceup
()
and
c
:
IsNotTuner
(
syncard
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
,
tuner
)
and
(
f
==
nil
or
f
(
c
))
return
c
:
IsFaceup
()
and
c
:
IsNotTuner
(
syncard
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
,
tuner
)
and
(
f
==
nil
or
f
(
c
))
end
end
function
M
.
synfilter2
(
c
,
syncard
,
tuner
,
f
)
return
c
:
IsNotTuner
(
syncard
)
and
c
:
IsCanBeSynchroMaterial
(
syncard
,
tuner
)
and
(
f
==
nil
or
f
(
c
))
end
function
M
.
matfilter
(
c
,
mg
,
tp
,
lv
,
sync
,
addlv
,
flag
)
function
M
.
matfilter
(
c
,
mg
,
tp
,
lv
,
sync
,
addlv
,
flag
)
if
flag
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
TYPE_SYNCHRO
)
<
1
then
return
false
end
if
flag
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
TYPE_SYNCHRO
)
<
1
then
return
false
end
...
@@ -62,7 +65,14 @@ function M.syntg(e, syncard, f, minc, maxc)
...
@@ -62,7 +65,14 @@ function M.syntg(e, syncard, f, minc, maxc)
if
lv
<=
0
then
return
false
end
if
lv
<=
0
then
return
false
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
flag
=
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
TYPE_SYNCHRO
)
<
1
local
flag
=
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
TYPE_SYNCHRO
)
<
1
local
mg
=
Duel
.
GetMatchingGroup
(
M
.
synfilter
,
syncard
:
GetControler
(),
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
--local mg = Duel.GetMatchingGroup(M.synfilter, syncard:GetControler(), LOCATION_MZONE, LOCATION_MZONE, c, syncard, c, f)
local
mg
=
Duel
.
GetSynchroMaterial
(
syncard
:
GetControler
()):
Filter
(
M
.
synfilter
,
c
,
syncard
,
c
,
f
)
if
mg
:
IsExists
(
Card
.
GetHandSynchro
,
1
,
nil
)
then
local
mg2
=
Duel
.
GetMatchingGroup
(
M
.
synfilter2
,
tp
,
LOCATION_HAND
,
0
,
c
,
syncard
,
c
,
f
)
if
mg2
:
GetCount
()
>
0
then
mg
:
Merge
(
mg2
)
end
end
local
addlv
=
c
:
GetLevel
()
local
addlv
=
c
:
GetLevel
()
return
mg
:
IsExists
(
M
.
matfilter
,
1
,
c
,
mg
,
tp
,
lv
,
syncard
,
addlv
,
flag
)
return
mg
:
IsExists
(
M
.
matfilter
,
1
,
c
,
mg
,
tp
,
lv
,
syncard
,
addlv
,
flag
)
end
end
...
@@ -70,7 +80,13 @@ end
...
@@ -70,7 +80,13 @@ end
function
M
.
synop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
syncard
,
f
,
minc
,
maxc
)
function
M
.
synop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
syncard
,
f
,
minc
,
maxc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
g
=
Duel
.
GetMatchingGroup
(
M
.
synfilter
,
syncard
:
GetControler
(),
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
syncard
,
c
,
f
)
--local g = Duel.GetMatchingGroup(M.synfilter, syncard:GetControler(), LOCATION_MZONE, LOCATION_MZONE, c, syncard, c, f)
local
g
=
Duel
.
GetSynchroMaterial
(
syncard
:
GetControler
()):
Filter
(
M
.
synfilter
,
c
,
syncard
,
c
,
f
)
if
g
:
IsExists
(
Card
.
GetHandSynchro
,
1
,
nil
)
then
local
g2
=
Duel
.
GetMatchingGroup
(
M
.
synfilter2
,
tp
,
LOCATION_HAND
,
0
,
c
,
syncard
,
c
,
f
)
if
g2
:
GetCount
()
>
0
then
g
:
Merge
(
g2
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
lv
=
syncard
:
GetLevel
()
-
c
:
GetSynchroLevel
(
syncard
)
local
lv
=
syncard
:
GetLevel
()
-
c
:
GetSynchroLevel
(
syncard
)
...
...
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