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
feeaf9b3
Commit
feeaf9b3
authored
May 18, 2023
by
Chen Bill
Committed by
GitHub
May 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Duel.CalculateDamage() (#494)
parent
8aa79c28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
processor.cpp
processor.cpp
+5
-1
No files found.
processor.cpp
View file @
feeaf9b3
...
@@ -3305,8 +3305,12 @@ int32 field::process_damage_step(uint16 step, uint32 new_attack) {
...
@@ -3305,8 +3305,12 @@ int32 field::process_damage_step(uint16 step, uint32 new_attack) {
case
3
:
{
case
3
:
{
core
.
attacker
=
(
card
*
)
core
.
units
.
begin
()
->
peffect
;
core
.
attacker
=
(
card
*
)
core
.
units
.
begin
()
->
peffect
;
core
.
attack_target
=
(
card
*
)
core
.
units
.
begin
()
->
ptarget
;
core
.
attack_target
=
(
card
*
)
core
.
units
.
begin
()
->
ptarget
;
if
(
core
.
attacker
)
if
(
core
.
attacker
)
{
core
.
attacker
->
set_status
(
STATUS_ATTACK_CANCELED
,
TRUE
);
core
.
attacker
->
set_status
(
STATUS_ATTACK_CANCELED
,
TRUE
);
core
.
attacker
->
announce_count
++
;
core
.
attacker
->
announced_cards
.
addcard
(
core
.
attack_target
);
attack_all_target_check
();
}
if
(
core
.
attack_target
)
if
(
core
.
attack_target
)
core
.
attack_target
->
set_status
(
STATUS_ATTACK_CANCELED
,
TRUE
);
core
.
attack_target
->
set_status
(
STATUS_ATTACK_CANCELED
,
TRUE
);
core
.
effect_damage_step
=
0
;
core
.
effect_damage_step
=
0
;
...
...
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