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
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
MyCard
ygopro-scripts
Commits
2a0a0c6a
Commit
2a0a0c6a
authored
Apr 20, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1d541812
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
utility.lua
utility.lua
+9
-9
No files found.
utility.lua
View file @
2a0a0c6a
...
@@ -1657,17 +1657,17 @@ function Auxiliary.GetLinkCount(c)
...
@@ -1657,17 +1657,17 @@ function Auxiliary.GetLinkCount(c)
return
1
+
0x10000
*
c
:
GetLink
()
return
1
+
0x10000
*
c
:
GetLink
()
else
return
1
end
else
return
1
end
end
end
function
Auxiliary
.
LCheckRecursive
(
c
,
tp
,
sg
,
mg
,
l
k
,
ct
,
minc
,
maxc
)
function
Auxiliary
.
LCheckRecursive
(
c
,
tp
,
sg
,
mg
,
l
c
,
ct
,
minc
,
maxc
)
sg
:
AddCard
(
c
)
sg
:
AddCard
(
c
)
ct
=
ct
+
1
ct
=
ct
+
1
local
res
=
(
ct
<
maxc
and
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
sg
,
tp
,
sg
,
mg
,
l
k
,
ct
,
minc
,
maxc
))
local
res
=
(
ct
<
maxc
and
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
sg
,
tp
,
sg
,
mg
,
l
c
,
ct
,
minc
,
maxc
))
or
(
ct
>=
minc
and
Auxiliary
.
LCheckGoal
(
tp
,
sg
,
l
k
,
ct
))
or
(
ct
>=
minc
and
Auxiliary
.
LCheckGoal
(
tp
,
sg
,
l
c
,
ct
))
sg
:
RemoveCard
(
c
)
sg
:
RemoveCard
(
c
)
ct
=
ct
-
1
ct
=
ct
-
1
return
res
return
res
end
end
function
Auxiliary
.
LCheckGoal
(
tp
,
sg
,
l
k
,
ct
)
function
Auxiliary
.
LCheckGoal
(
tp
,
sg
,
l
c
,
ct
)
return
sg
:
CheckWithSumEqual
(
Auxiliary
.
GetLinkCount
,
l
k
,
ct
,
ct
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
)
>
0
return
sg
:
CheckWithSumEqual
(
Auxiliary
.
GetLinkCount
,
l
c
:
GetLink
(),
ct
,
ct
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
lc
)
>
0
end
end
function
Auxiliary
.
LinkCondition
(
f
,
minc
,
maxc
)
function
Auxiliary
.
LinkCondition
(
f
,
minc
,
maxc
)
return
function
(
e
,
c
)
return
function
(
e
,
c
)
...
@@ -1676,7 +1676,7 @@ function Auxiliary.LinkCondition(f,minc,maxc)
...
@@ -1676,7 +1676,7 @@ function Auxiliary.LinkCondition(f,minc,maxc)
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
)
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
return
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
nil
,
tp
,
sg
,
mg
,
c
:
GetLink
()
,
0
,
minc
,
maxc
)
return
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
nil
,
tp
,
sg
,
mg
,
c
,
0
,
minc
,
maxc
)
end
end
end
end
function
Auxiliary
.
LinkOperation
(
f
,
minc
,
maxc
)
function
Auxiliary
.
LinkOperation
(
f
,
minc
,
maxc
)
...
@@ -1684,10 +1684,10 @@ function Auxiliary.LinkOperation(f,minc,maxc)
...
@@ -1684,10 +1684,10 @@ function Auxiliary.LinkOperation(f,minc,maxc)
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
)
local
mg
=
Duel
.
GetMatchingGroup
(
Auxiliary
.
LConditionFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
f
)
local
sg
=
Group
.
CreateGroup
()
local
sg
=
Group
.
CreateGroup
()
for
i
=
1
,
maxc
do
for
i
=
1
,
maxc
do
local
g
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
LCheckRecursive
,
1
,
1
,
sg
,
tp
,
sg
,
mg
,
c
:
GetLink
()
,
i
-
1
,
minc
,
maxc
)
local
g
=
mg
:
FilterSelect
(
tp
,
Auxiliary
.
LCheckRecursive
,
1
,
1
,
sg
,
tp
,
sg
,
mg
,
c
,
i
-
1
,
minc
,
maxc
)
sg
:
Merge
(
g
)
sg
:
Merge
(
g
)
if
i
>=
minc
and
i
<
maxc
and
Auxiliary
.
LCheckGoal
(
tp
,
sg
,
c
:
GetLink
()
,
i
)
if
i
>=
minc
and
i
<
maxc
and
Auxiliary
.
LCheckGoal
(
tp
,
sg
,
c
,
i
)
and
(
not
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
sg
,
tp
,
sg
,
mg
,
c
:
GetLink
()
,
i
,
minc
,
maxc
)
and
(
not
mg
:
IsExists
(
Auxiliary
.
LCheckRecursive
,
1
,
sg
,
tp
,
sg
,
mg
,
c
,
i
,
minc
,
maxc
)
or
not
Duel
.
SelectYesNo
(
tp
,
210
))
then
break
end
or
not
Duel
.
SelectYesNo
(
tp
,
210
))
then
break
end
end
end
c
:
SetMaterial
(
sg
)
c
:
SetMaterial
(
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