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
c877962a
Commit
c877962a
authored
May 15, 2018
by
mercury233
Committed by
nanahira
May 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change announcecard behavior (#156)
parent
26bc4737
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
playerop.cpp
playerop.cpp
+12
-8
processor.cpp
processor.cpp
+2
-1
No files found.
playerop.cpp
View file @
c877962a
...
...
@@ -1010,23 +1010,27 @@ int32 field::announce_card(int16 step, uint8 playerid, uint32 ttype) {
return
FALSE
;
}
else
{
int32
code
=
returns
.
ivalue
[
0
];
bool
retry
=
false
;
card_data
data
;
read_card
(
code
,
&
data
);
if
(
!
data
.
code
)
{
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
}
if
(
core
.
select_options
.
size
()
==
0
)
{
retry
=
true
;
}
else
if
(
core
.
select_options
.
size
()
==
0
)
{
if
(
!
(
data
.
type
&
ttype
))
{
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
retry
=
true
;
}
}
else
{
if
(
!
is_declarable
(
data
,
core
.
select_options
))
{
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
retry
=
true
;
}
}
if
(
retry
)
{
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_MESSAGE
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer32
(
1421
);
return
announce_card
(
0
,
playerid
,
ttype
);
}
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_CODE
);
pduel
->
write_buffer8
(
playerid
);
...
...
processor.cpp
View file @
c877962a
...
...
@@ -601,7 +601,8 @@ int32 field::process() {
pduel->lua->add_param(returns.ivalue[0], PARAM_TYPE_INT);
core.units.pop_front();
} else {
it->step++;
if(it->step == 0)
it->step++;
}
return PROCESSOR_WAITING + pduel->bufferlen;
}
...
...
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