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
d0ec12fa
Commit
d0ec12fa
authored
Dec 10, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
24089d2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utility.lua
utility.lua
+3
-3
No files found.
utility.lua
View file @
d0ec12fa
...
...
@@ -1041,12 +1041,12 @@ function Auxiliary.FConditionCodeRep(code,cc,sub,insf)
return
(
gc
:
IsFusionCode
(
code
)
or
gc
:
CheckFusionSubstitute
(
e
:
GetHandler
()))
and
mg
:
IsExists
(
Card
.
IsFusionCode
,
cc
-
1
,
gc
,
code
)
end
local
g1
=
mg
:
Filter
(
Card
.
IsFusionCode
,
nil
,
code
)
if
not
sub
then
if
chkf
~=
PLAYER_NONE
then
return
g1
:
GetCount
()
>=
cc
and
g1
:
FilterCount
(
Card
.
IsOnField
,
nil
)
~=
0
if
chkf
~=
PLAYER_NONE
then
return
g1
:
GetCount
()
>=
cc
and
g1
:
FilterCount
(
Auxiliary
.
FConditionCheckF
,
nil
,
chkf
)
~=
0
else
return
g1
:
GetCount
()
>=
cc
end
end
local
g2
=
mg
:
Filter
(
Card
.
CheckFusionSubstitute
,
nil
,
e
:
GetHandler
())
if
chkf
~=
PLAYER_NONE
then
return
(
g1
:
FilterCount
(
Card
.
IsOnField
,
nil
)
~=
0
or
g2
:
FilterCount
(
Card
.
IsOnField
,
nil
)
~=
0
)
return
(
g1
:
FilterCount
(
Auxiliary
.
FConditionCheckF
,
nil
,
chkf
)
~=
0
or
g2
:
FilterCount
(
Auxiliary
.
FConditionCheckF
,
nil
,
chkf
)
~=
0
)
and
g1
:
GetCount
()
>=
cc
-
1
and
g1
:
GetCount
()
+
g2
:
GetCount
()
>=
cc
else
return
g1
:
GetCount
()
>=
cc
-
1
and
g1
:
GetCount
()
+
g2
:
GetCount
()
>=
cc
end
end
...
...
@@ -1100,7 +1100,7 @@ function Auxiliary.FConditionFunRep(f,cc,insf)
return
f
(
gc
)
and
mg
:
IsExists
(
f
,
cc
-
1
,
gc
)
end
local
g1
=
mg
:
Filter
(
f
,
nil
)
if
chkf
~=
PLAYER_NONE
then
return
g1
:
FilterCount
(
Card
.
IsOnField
,
nil
)
~=
0
and
g1
:
GetCount
()
>=
cc
return
g1
:
FilterCount
(
Auxiliary
.
FConditionCheckF
,
nil
,
chkf
)
~=
0
and
g1
:
GetCount
()
>=
cc
else
return
g1
:
GetCount
()
>=
cc
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