Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
Reinen
ygopro-scripts
Commits
1e1e94c3
Commit
1e1e94c3
authored
Oct 24, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
89f0cbaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
c97489701.lua
c97489701.lua
+1
-1
utility.lua
utility.lua
+6
-4
No files found.
c97489701.lua
View file @
1e1e94c3
--スカーレッド・ノヴァ・ドラゴン
function
c97489701
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroMixProcedure
(
c
,
aux
.
Tuner
(
nil
),
aux
.
Tuner
(
nil
),
nil
,
aux
.
NonTuner
(
Card
.
IsCode
,
70902743
),
1
,
1
)
aux
.
AddSynchroMixProcedure
(
c
,
aux
.
Tuner
(
nil
),
aux
.
Tuner
(
nil
),
nil
,
aux
.
FilterBoolFunction
(
Card
.
IsCode
,
44508094
),
1
,
1
)
c
:
EnableReviveLimit
()
--atk
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
utility.lua
View file @
1e1e94c3
...
...
@@ -283,6 +283,7 @@ function Auxiliary.SynMixCondition(f1,f2,f3,f4,minc,maxc)
else
mg
=
Auxiliary
.
GetSynMaterials
(
tp
,
c
)
end
if
smat
~=
nil
then
mg
:
AddCard
(
smat
)
end
return
mg
:
IsExists
(
Auxiliary
.
SynMixFilter1
,
1
,
nil
,
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
)
end
end
...
...
@@ -295,6 +296,7 @@ function Auxiliary.SynMixTarget(f1,f2,f3,f4,minc,maxc)
else
mg
=
Auxiliary
.
GetSynMaterials
(
tp
,
c
)
end
if
smat
~=
nil
then
mg
:
AddCard
(
smat
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SMATERIAL
)
local
c1
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
SynMixFilter1
,
1
,
1
,
nil
,
f1
,
f2
,
f3
,
f4
,
minc
,
maxc
,
c
,
mg
,
smat
):
GetFirst
()
g
:
AddCard
(
c1
)
...
...
@@ -415,7 +417,7 @@ function Auxiliary.SynMixCheckGoal(tp,sg,minc,ct,syncard,sg1,smat)
if
he
then
found
=
true
if
hf
and
hg
:
IsExists
(
Auxiliary
.
SynLimitFilter
,
1
,
c
,
hf
,
he
)
then
return
false
end
if
(
hmin
and
ct
<
hmin
)
or
(
hmax
and
ct
>
hmax
)
then
return
false
end
if
(
hmin
and
hct
<
hmin
)
or
(
hmax
and
h
ct
>
hmax
)
then
return
false
end
end
end
if
not
found
then
return
false
end
...
...
@@ -423,13 +425,13 @@ function Auxiliary.SynMixCheckGoal(tp,sg,minc,ct,syncard,sg1,smat)
for
c
in
aux
.
Next
(
g
)
do
local
le
,
lf
,
lloc
,
lmin
,
lmax
=
c
:
GetTunerLimit
()
if
le
then
local
ct
=
g
:
GetCount
()
-
1
local
l
ct
=
g
:
GetCount
()
-
1
if
lloc
then
local
lg
=
g
:
Filter
(
Card
.
IsLocation
,
c
,
lloc
)
if
lg
:
GetCount
()
~=
ct
then
return
false
end
if
lg
:
GetCount
()
~=
l
ct
then
return
false
end
end
if
lf
and
g
:
IsExists
(
Auxiliary
.
SynLimitFilter
,
1
,
c
,
lf
,
le
)
then
return
false
end
if
(
lmin
and
ct
<
lmin
)
or
(
lmax
and
ct
>
lmax
)
then
return
false
end
if
(
lmin
and
lct
<
lmin
)
or
(
lmax
and
l
ct
>
lmax
)
then
return
false
end
end
end
return
true
...
...
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