Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
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
fallenstardust
YGOProUnity_V2
Commits
911a9fc2
Commit
911a9fc2
authored
Feb 08, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
3849739e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
47 deletions
+46
-47
Assets/SibylSystem/Ocgcore/Ocgcore.cs
Assets/SibylSystem/Ocgcore/Ocgcore.cs
+46
-47
No files found.
Assets/SibylSystem/Ocgcore/Ocgcore.cs
View file @
911a9fc2
...
...
@@ -3974,74 +3974,73 @@ public class Ocgcore : ServantWithCardDescription
uint
_field
=
~
r
.
ReadUInt32
();
if
(
Program
.
I
().
setting
.
setting
.
hand
.
value
==
true
||
Program
.
I
().
setting
.
setting
.
handm
.
value
==
true
||
(
GameMessage
)
p
.
Fuction
==
GameMessage
.
SelectDisfield
)
{
ES_min
=
min
;
for
(
int
i
=
0
;
i
<
min
;
i
++)
{
byte
[]
resp
=
new
byte
[
3
];
uint
filter
;
for (int j=0; j<2; j++)
{
resp = new byte[3];
filter = 0;
uint field;
if (j==0)
{
resp[0] = (byte)player;
field = _field & 0xffff;
}
else
for
(
int
j
=
0
;
j
<
2
;
j
++)
{
resp
[0] = (byte)(1 - player)
;
fi
eld = _field >> 16
;
}
resp
=
new
byte
[
3
]
;
fi
lter
=
0
;
uint
field
;
if ((field & 0x7f) != 0)
{
resp[1] = (byte)CardLocation.MonsterZone;
filter = field & 0x7f;
for (int k = 0; k < 6; k++)
if
(
j
==
0
)
{
if ((filter & (1u << k)) != 0)
{
resp[2] = (byte)k;
createPlaceSelector(resp);
}
resp
[
0
]
=
(
byte
)
player
;
field
=
_field
&
0xffff
;
}
}
if ((field & 0x1f00) != 0)
{
resp[1] = (byte)CardLocation.SpellZone;
filter = (field >> 8) & 0x1f;
for (int k = 0; k < 5; k++)
else
{
resp
[
0
]
=
(
byte
)(
1
-
player
);
field
=
_field
>>
16
;
}
if
((
field
&
0x7f
)
!=
0
)
{
if ((filter & (1u << k)) != 0)
resp
[
1
]
=
(
byte
)
CardLocation
.
MonsterZone
;
filter
=
field
&
0x7f
;
for
(
int
k
=
0
;
k
<
6
;
k
++)
{
resp[2] = (byte)k;
createPlaceSelector(resp);
if
((
filter
&
(
1u
<<
k
))
!=
0
)
{
resp
[
2
]
=
(
byte
)
k
;
createPlaceSelector
(
resp
);
}
}
}
}
if ((field & 0xc000) != 0)
{
resp[1] = (byte)CardLocation.SpellZone;
filter = (field >> 14) & 0x3;
if ((filter & 0x2) != 0)
if
((
field
&
0x1f00
)
!=
0
)
{
resp[2] = 7;
createPlaceSelector(resp);
resp
[
1
]
=
(
byte
)
CardLocation
.
SpellZone
;
filter
=
(
field
>>
8
)
&
0x1f
;
for
(
int
k
=
0
;
k
<
5
;
k
++)
{
if
((
filter
&
(
1u
<<
k
))
!=
0
)
{
resp
[
2
]
=
(
byte
)
k
;
createPlaceSelector
(
resp
);
}
}
}
if ((fi
lter & 0x1
) != 0)
if
((
fi
eld
&
0xc000
)
!=
0
)
{
resp[2] = 6;
createPlaceSelector(resp);
resp
[
1
]
=
(
byte
)
CardLocation
.
SpellZone
;
filter
=
(
field
>>
14
)
&
0x3
;
if
((
filter
&
0x2
)
!=
0
)
{
resp
[
2
]
=
7
;
createPlaceSelector
(
resp
);
}
if
((
filter
&
0x1
)
!=
0
)
{
resp
[
2
]
=
6
;
createPlaceSelector
(
resp
);
}
}
}
}
}
if
((
GameMessage
)
p
.
Fuction
==
GameMessage
.
SelectPlace
)
{
if
(
Es_selectMSGHintType
==
3
)
...
...
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