Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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-core
Commits
9a643368
Commit
9a643368
authored
Jul 06, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update move to field
parent
83d1ccf9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
field.cpp
field.cpp
+1
-1
operations.cpp
operations.cpp
+5
-3
No files found.
field.cpp
View file @
9a643368
...
@@ -310,7 +310,7 @@ void field::move_card(uint8 playerid, card* pcard, uint8 location, uint8 sequenc
...
@@ -310,7 +310,7 @@ void field::move_card(uint8 playerid, card* pcard, uint8 location, uint8 sequenc
if
(
playerid
==
preplayer
&&
sequence
==
presequence
)
if
(
playerid
==
preplayer
&&
sequence
==
presequence
)
return
;
return
;
if
((
location
==
LOCATION_MZONE
&&
(
sequence
<
0
||
sequence
>
4
||
player
[
playerid
].
list_mzone
[
sequence
]))
if
((
location
==
LOCATION_MZONE
&&
(
sequence
<
0
||
sequence
>
4
||
player
[
playerid
].
list_mzone
[
sequence
]))
||
(
location
==
LOCATION_SZONE
&&
(
sequence
<
0
||
sequence
>
4
||
player
[
playerid
].
list_szone
[
sequence
])))
||
(
location
==
LOCATION_SZONE
&&
(
sequence
<
0
||
sequence
>
7
||
player
[
playerid
].
list_szone
[
sequence
])))
return
;
return
;
if
(
preplayer
==
playerid
)
{
if
(
preplayer
==
playerid
)
{
pduel
->
write_buffer8
(
MSG_MOVE
);
pduel
->
write_buffer8
(
MSG_MOVE
);
...
...
operations.cpp
View file @
9a643368
...
@@ -3794,12 +3794,14 @@ int32 field::move_to_field(uint16 step, card * target, uint32 enable, uint32 ret
...
@@ -3794,12 +3794,14 @@ int32 field::move_to_field(uint16 step, card * target, uint32 enable, uint32 ret
}
}
}
else
if
(
!
is_equip
&&
location
==
LOCATION_SZONE
&&
(
target
->
data
.
type
&
TYPE_PENDULUM
))
{
}
else
if
(
!
is_equip
&&
location
==
LOCATION_SZONE
&&
(
target
->
data
.
type
&
TYPE_PENDULUM
))
{
uint32
flag
=
0
;
uint32
flag
=
0
;
if
(
!
get_field_card
(
playerid
,
LOCATION_SZONE
,
6
))
if
(
is_location_useable
(
playerid
,
LOCATION_SZONE
,
6
))
flag
|=
1
<<
14
;
flag
|=
1
<<
14
;
if
(
!
get_field_card
(
playerid
,
LOCATION_SZONE
,
7
))
if
(
is_location_useable
(
playerid
,
LOCATION_SZONE
,
7
))
flag
|=
1
<<
15
;
flag
|=
1
<<
15
;
if
(
move_player
!=
playerid
)
flag
=
flag
<<
16
;
pduel
->
write_buffer8
(
MSG_SELECT_PLACE
);
pduel
->
write_buffer8
(
MSG_SELECT_PLACE
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer8
(
move_player
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer8
(
1
);
pduel
->
write_buffer32
(
~
flag
);
pduel
->
write_buffer32
(
~
flag
);
}
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