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
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
nanahira
ygopro-core
Commits
0794b234
Commit
0794b234
authored
Dec 04, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
76e26b16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
operations.cpp
operations.cpp
+5
-10
processor.cpp
processor.cpp
+2
-2
No files found.
operations.cpp
View file @
0794b234
...
...
@@ -316,9 +316,8 @@ int32 field::draw(uint16 step, effect* reason_effect, uint32 reason, uint8 reaso
core
.
overdraw
[
playerid
]
=
TRUE
;
break
;
}
bool
is_public
=
false
;
drawed
++
;
pcard
=
*
(
player
[
playerid
].
list_main
.
rbegin
()
);
pcard
=
player
[
playerid
].
list_main
.
back
(
);
pcard
->
enable_field_effect
(
FALSE
);
pcard
->
cancel_field_effect
();
player
[
playerid
].
list_main
.
pop_back
();
...
...
@@ -331,16 +330,12 @@ int32 field::draw(uint16 step, effect* reason_effect, uint32 reason, uint8 reaso
pcard
->
current
.
reason_player
=
reason_player
;
pcard
->
current
.
reason
=
reason
|
REASON_DRAW
;
pcard
->
current
.
location
=
0
;
if
(
pcard
->
current
.
position
==
POS_FACEUP_ATTACK
)
is_public
=
true
;
add_card
(
playerid
,
pcard
,
LOCATION_HAND
,
0
);
pcard
->
enable_field_effect
(
TRUE
);
if
(
pcard
->
is_affected_by_effect
(
EFFECT_PUBLIC
))
is_public
=
true
;
if
(
is_public
)
{
effect
*
pub
=
pcard
->
is_affected_by_effect
(
EFFECT_PUBLIC
);
if
(
pub
||
pcard
->
current
.
position
==
POS_FACEUP_ATTACK
)
public_count
++
;
pcard
->
current
.
position
=
POS_FACEUP
;
}
pcard
->
current
.
position
=
pub
?
POS_FACEUP
:
POS_FACEDOWN
;
cv
.
push_back
(
pcard
);
pcard
->
reset
(
RESET_TOHAND
,
RESET_EVENT
);
}
...
...
@@ -353,7 +348,7 @@ int32 field::draw(uint16 step, effect* reason_effect, uint32 reason, uint8 reaso
if
(
drawed
)
{
if
(
core
.
global_flag
&
GLOBALFLAG_DECK_REVERSE_CHECK
)
{
if
(
player
[
playerid
].
list_main
.
size
())
{
card
*
ptop
=
*
player
[
playerid
].
list_main
.
rbegin
();
card
*
ptop
=
player
[
playerid
].
list_main
.
back
();
if
(
core
.
deck_reversed
||
(
ptop
->
current
.
position
==
POS_FACEUP_DEFENCE
))
{
pduel
->
write_buffer8
(
MSG_DECK_TOP
);
pduel
->
write_buffer8
(
playerid
);
...
...
processor.cpp
View file @
0794b234
...
...
@@ -5219,14 +5219,14 @@ int32 field::adjust_step(uint16 step) {
//shuffle check
for
(
uint32
i
=
0
;
i
<
player
[
0
].
list_hand
.
size
();
++
i
)
{
card
*
pcard
=
player
[
0
].
list_hand
[
i
];
int32
pub
=
pcard
->
is_affected_by_effect
(
EFFECT_PUBLIC
)
?
TRUE
:
FALSE
;
effect
*
pub
=
pcard
->
is_affected_by_effect
(
EFFECT_PUBLIC
)
;
if
(
!
pub
&&
pcard
->
is_position
(
POS_FACEUP
))
core
.
shuffle_hand_check
[
0
]
=
TRUE
;
pcard
->
current
.
position
=
pub
?
POS_FACEUP
:
POS_FACEDOWN
;
}
for
(
uint32
i
=
0
;
i
<
player
[
1
].
list_hand
.
size
();
++
i
)
{
card
*
pcard
=
player
[
1
].
list_hand
[
i
];
int32
pub
=
pcard
->
is_affected_by_effect
(
EFFECT_PUBLIC
)
?
TRUE
:
FALSE
;
effect
*
pub
=
pcard
->
is_affected_by_effect
(
EFFECT_PUBLIC
)
;
if
(
!
pub
&&
pcard
->
is_position
(
POS_FACEUP
))
core
.
shuffle_hand_check
[
1
]
=
TRUE
;
pcard
->
current
.
position
=
pub
?
POS_FACEUP
:
POS_FACEDOWN
;
...
...
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