Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3422,7 +3422,7 @@
return;
}
} else if (!player->canDoAction()) {
uint32_t delay = player->getNextActionTime() - OTSYS_TIME();
uint32_t delay = player->getNextActionTime();
if (delay > 0) {
const auto &task = createPlayerTask(
delay,
Expand Down Expand Up @@ -6760,7 +6760,7 @@
// Skill dodge (ruse)
if (targetPlayer) {
auto chance = targetPlayer->getDodgeChance();
if (chance > 0 && uniform_random(0, 10000) < chance || damage.hazardDodge) {

Check warning on line 6763 in src/game/game.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-24.04-linux-debug

suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]

Check warning on line 6763 in src/game/game.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-22.04-linux-debug

suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
InternalGame::sendBlockEffect(BLOCK_DODGE, damage.primary.type, target->getPosition(), attacker);
targetPlayer->sendTextMessage(MESSAGE_ATTENTION, "You dodged an attack.");
return true;
Expand Down Expand Up @@ -7403,7 +7403,7 @@
} else if (attackerPlayer && targetMonster) {
handleHazardSystemAttack(damage, attackerPlayer, targetMonster, true);

if (damage.primary.value == 0 && damage.secondary.value == 0 || damage.hazardDodge) {

Check warning on line 7406 in src/game/game.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-24.04-linux-debug

suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]

Check warning on line 7406 in src/game/game.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-22.04-linux-debug

suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
notifySpectators(spectators.data(), targetPos, attackerPlayer, targetMonster);
return true;
}
Expand Down
Loading