Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
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
HiiragiGuardians
windbot
Commits
776abbd6
Commit
776abbd6
authored
Sep 07, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:moecube/windbot
parents
fce2d82b
769c7107
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
Game/AI/Zones.cs
Game/AI/Zones.cs
+2
-0
Game/GameBehavior.cs
Game/GameBehavior.cs
+16
-3
No files found.
Game/AI/Zones.cs
View file @
776abbd6
...
...
@@ -10,6 +10,8 @@
z5
=
0x20
,
z6
=
0x40
,
FieldZone
=
0x20
,
MonsterZones
=
0x7f
,
MainMonsterZones
=
0x1f
,
ExtraMonsterZones
=
0x60
,
...
...
Game/GameBehavior.cs
View file @
776abbd6
...
...
@@ -1332,6 +1332,12 @@ namespace WindBot.Game
location
=
CardLocation
.
SpellZone
;
filter
=
(
field
>>
8
)
&
Zones
.
SpellZones
;
}
else
if
((
field
&
0x2000
)
!=
0
)
{
player
=
0
;
location
=
CardLocation
.
FieldZone
;
filter
=
Zones
.
FieldZone
;
}
else
if
((
field
&
0xc000
)
!=
0
)
{
player
=
0
;
...
...
@@ -1350,6 +1356,12 @@ namespace WindBot.Game
location
=
CardLocation
.
SpellZone
;
filter
=
(
field
>>
24
)
&
Zones
.
SpellZones
;
}
else
if
((
field
&
0x20000000
)
!=
0
)
{
player
=
1
;
location
=
CardLocation
.
FieldZone
;
filter
=
Zones
.
FieldZone
;
}
else
{
player
=
1
;
...
...
@@ -1363,7 +1375,7 @@ namespace WindBot.Game
byte
[]
resp
=
new
byte
[
3
];
resp
[
0
]
=
(
byte
)
GetLocalPlayer
(
player
);
if
(
location
!=
CardLocation
.
PendulumZone
)
if
(
location
!=
CardLocation
.
PendulumZone
&&
location
!=
CardLocation
.
FieldZone
)
{
resp
[
1
]
=
(
byte
)
location
;
if
((
selected
&
filter
)
>
0
)
...
...
@@ -1383,8 +1395,9 @@ namespace WindBot.Game
if
((
selected
&
filter
)
>
0
)
filter
&=
selected
;
if
((
filter
&
Zones
.
z0
)
!=
0
)
resp
[
2
]
=
6
;
if
((
filter
&
Zones
.
z1
)
!=
0
)
resp
[
2
]
=
7
;
if
((
filter
&
Zones
.
FieldZone
)
!=
0
)
resp
[
2
]
=
5
;
if
((
filter
&
Zones
.
z0
)
!=
0
)
resp
[
2
]
=
6
;
// left pendulum zone
if
((
filter
&
Zones
.
z1
)
!=
0
)
resp
[
2
]
=
7
;
// right pendulum zone
}
BinaryWriter
reply
=
GamePacketFactory
.
Create
(
CtosMessage
.
Response
);
...
...
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