Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 30, 2024
1 parent 5c1262b commit e06a056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7499,7 +7499,7 @@ bool Game::combatChangeHealth(const std::shared_ptr<Creature> &attacker, const s
int32_t adjustedDamage = realDamage;
if (target) {
if (realDamage > targetHealth) {
adjustedDamage = targetHealth > 0 ? targetHealth : realDamage;
adjustedDamage = targetHealth > 0 ? targetHealth : realDamage;
}
}

Expand All @@ -7512,7 +7512,7 @@ bool Game::combatChangeHealth(const std::shared_ptr<Creature> &attacker, const s
targetPlayer,
message,
spectators.data(),
adjustedDamage //realDamage
adjustedDamage // realDamage
);

if (attackerPlayer) {
Expand Down

0 comments on commit e06a056

Please sign in to comment.