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
cd1255c2
Commit
cd1255c2
authored
Dec 10, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atd/def use int32
parent
d2168a8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
processor.cpp
processor.cpp
+6
-6
No files found.
processor.cpp
View file @
cd1255c2
...
...
@@ -3324,12 +3324,12 @@ int32 field::process_damage_step(uint16 step, uint32 new_attack) {
return TRUE;
}
void field::calculate_battle_damage(effect** pdamchange, card** preason_card, uint8* battle_destroyed) {
u
int32 aa = core.attacker->get_battle_attack(), ad = core.attacker->get_battle_defense();
uint32 da = 0, dd = 0, attacker_value = aa, defender_value
;
uint8 pa = core.attacker->current.controler, pd;
int32 aa = core.attacker->get_battle_attack(), ad = core.attacker->get_battle_defense();
int32 da = 0, dd = 0, attacker_value = aa, defender_value = 0
;
uint8 pa = core.attacker->current.controler, pd
= PLAYER_NONE
;
uint8 damp = 0;
effect* damchange =
0
;
card* reason_card =
0
;
effect* damchange =
nullptr
;
card* reason_card =
nullptr
;
uint8 bd[2] = {FALSE, FALSE};
bool pierce = false;
core.battle_damage[0] = core.battle_damage[1] = 0;
...
...
@@ -3625,7 +3625,7 @@ void field::calculate_battle_damage(effect** pdamchange, card** preason_card, ui
core.battle_damage[1 - damp] = 0;
}
if(!core.battle_damage[damp] && !core.battle_damage[1 - damp])
reason_card =
0
;
reason_card =
nullptr
;
if(pdamchange)
*pdamchange = damchange;
if(preason_card)
...
...
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