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
八宫一月
ygopro-scripts
Commits
7c45873b
Commit
7c45873b
authored
Dec 17, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3360bf34
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 @
7c45873b
...
@@ -395,7 +395,7 @@ function Auxiliary.FConditionCode2(code1,code2,sub,insf)
...
@@ -395,7 +395,7 @@ function Auxiliary.FConditionCode2(code1,code2,sub,insf)
if
sub
and
gc
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
)
then
bw
=
1
end
if
sub
and
gc
:
IsHasEffect
(
EFFECT_FUSION_SUBSTITUTE
)
then
bw
=
1
end
if
b1
+
b2
+
bw
==
0
then
return
false
end
if
b1
+
b2
+
bw
==
0
then
return
false
end
if
b1
+
b2
+
bw
==
1
then
b1
=
b1
*
2
b2
=
b2
*
2
bw
=
bw
*
2
end
if
b1
+
b2
+
bw
==
1
then
b1
=
b1
*
2
b2
=
b2
*
2
bw
=
bw
*
2
end
if
chkf
~=
PLAYER_NONE
and
Auxiliary
.
FConditionCheckF
(
gc
,
chkf
)
then
if
chkf
~=
PLAYER_NONE
and
not
Auxiliary
.
FConditionCheckF
(
gc
,
chkf
)
then
mg
=
mg
:
Filter
(
Auxiliary
.
FConditionCheckF
,
nil
,
chkf
)
mg
=
mg
:
Filter
(
Auxiliary
.
FConditionCheckF
,
nil
,
chkf
)
end
end
if
b1
==
2
then
if
b1
==
2
then
...
@@ -419,7 +419,7 @@ function Auxiliary.FConditionCode2(code1,code2,sub,insf)
...
@@ -419,7 +419,7 @@ function Auxiliary.FConditionCode2(code1,code2,sub,insf)
if
c1
+
c2
+
cw
>
0
then
if
c1
+
c2
+
cw
>
0
then
if
Auxiliary
.
FConditionCheckF
(
tc
,
chkf
)
then
fs
=
true
end
if
Auxiliary
.
FConditionCheckF
(
tc
,
chkf
)
then
fs
=
true
end
if
c1
+
c2
+
cw
>
1
then
b1
=
b1
+
c1
b2
=
b2
+
c2
bw
=
bw
+
cw
if
c1
+
c2
+
cw
>
1
then
b1
=
b1
+
c1
b2
=
b2
+
c2
bw
=
bw
+
cw
else
if
c1
+
c2
+
cw
==
1
then
b1
=
b1
+
c1
*
2
b2
=
b2
+
c2
*
2
bw
=
bw
+
cw
*
2
else
b1
=
b1
+
c1
*
2
b2
=
b2
+
c2
*
2
bw
=
bw
+
cw
*
2
end
end
end
end
tc
=
mg
:
GetNext
()
tc
=
mg
:
GetNext
()
...
@@ -437,7 +437,7 @@ function Auxiliary.FOperationCode2(code1,code2,sub,insf)
...
@@ -437,7 +437,7 @@ function Auxiliary.FOperationCode2(code1,code2,sub,insf)
local
tc
=
gc
local
tc
=
gc
local
g1
=
nil
local
g1
=
nil
if
gc
then
if
gc
then
if
chkf
~=
PLAYER_NONE
and
Auxiliary
.
FConditionCheckF
(
gc
,
chkf
)
then
if
chkf
~=
PLAYER_NONE
and
not
Auxiliary
.
FConditionCheckF
(
gc
,
chkf
)
then
g
=
g
:
Filter
(
Auxiliary
.
FConditionCheckF
,
nil
,
chkf
)
g
=
g
:
Filter
(
Auxiliary
.
FConditionCheckF
,
nil
,
chkf
)
end
end
else
else
...
...
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