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
5a280b99
Commit
5a280b99
authored
Aug 21, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update attack all target check
parent
f16a258d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
libduel.cpp
libduel.cpp
+1
-1
processor.cpp
processor.cpp
+2
-1
No files found.
libduel.cpp
View file @
5a280b99
...
@@ -1417,6 +1417,7 @@ int32 scriptlib::duel_change_attacker(lua_State *L) {
...
@@ -1417,6 +1417,7 @@ int32 scriptlib::duel_change_attacker(lua_State *L) {
card
*
attack_target
=
pduel
->
game_field
->
core
.
attack_target
;
card
*
attack_target
=
pduel
->
game_field
->
core
.
attack_target
;
pduel
->
game_field
->
core
.
attacker
->
announce_count
++
;
pduel
->
game_field
->
core
.
attacker
->
announce_count
++
;
pduel
->
game_field
->
core
.
attacker
->
announced_cards
.
addcard
(
attack_target
);
pduel
->
game_field
->
core
.
attacker
->
announced_cards
.
addcard
(
attack_target
);
pduel
->
game_field
->
attack_all_target_check
();
pduel
->
game_field
->
core
.
attacker
=
attacker
;
pduel
->
game_field
->
core
.
attacker
=
attacker
;
attacker
->
attack_controler
=
attacker
->
current
.
controler
;
attacker
->
attack_controler
=
attacker
->
current
.
controler
;
pduel
->
game_field
->
core
.
pre_field
[
0
]
=
attacker
->
fieldid_r
;
pduel
->
game_field
->
core
.
pre_field
[
0
]
=
attacker
->
fieldid_r
;
...
@@ -1457,7 +1458,6 @@ int32 scriptlib::duel_change_attack_target(lua_State *L) {
...
@@ -1457,7 +1458,6 @@ int32 scriptlib::duel_change_attack_target(lua_State *L) {
if
(
pcard
)
if
(
pcard
)
pduel
->
game_field
->
core
.
opp_mzone
.
insert
(
pcard
->
fieldid_r
);
pduel
->
game_field
->
core
.
opp_mzone
.
insert
(
pcard
->
fieldid_r
);
}
}
pduel
->
game_field
->
attack_all_target_check
();
pduel
->
write_buffer8
(
MSG_ATTACK
);
pduel
->
write_buffer8
(
MSG_ATTACK
);
pduel
->
write_buffer32
(
attacker
->
get_info_location
());
pduel
->
write_buffer32
(
attacker
->
get_info_location
());
if
(
target
)
{
if
(
target
)
{
...
...
processor.cpp
View file @
5a280b99
...
@@ -3066,7 +3066,6 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3066,7 +3066,6 @@ int32 field::process_battle_command(uint16 step) {
return
FALSE
;
return
FALSE
;
}
}
case
8
:
{
case
8
:
{
attack_all_target_check
();
pduel
->
write_buffer8
(
MSG_ATTACK
);
pduel
->
write_buffer8
(
MSG_ATTACK
);
pduel
->
write_buffer32
(
core
.
attacker
->
get_info_location
());
pduel
->
write_buffer32
(
core
.
attacker
->
get_info_location
());
if
(
core
.
attack_target
)
{
if
(
core
.
attack_target
)
{
...
@@ -3170,6 +3169,8 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3170,6 +3169,8 @@ int32 field::process_battle_command(uint16 step) {
case
13
:
{
case
13
:
{
core
.
attacker
->
announce_count
++
;
core
.
attacker
->
announce_count
++
;
core
.
attacker
->
announced_cards
.
addcard
(
core
.
attack_target
);
core
.
attacker
->
announced_cards
.
addcard
(
core
.
attack_target
);
if
(
core
.
attacker
->
fieldid_r
==
core
.
pre_field
[
0
])
attack_all_target_check
();
core
.
chain_attack
=
FALSE
;
core
.
chain_attack
=
FALSE
;
core
.
units
.
begin
()
->
step
=
-
1
;
core
.
units
.
begin
()
->
step
=
-
1
;
reset_phase
(
PHASE_DAMAGE
);
reset_phase
(
PHASE_DAMAGE
);
...
...
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