Skip to content

Commit

Permalink
fix: remove duplicate "update impact tracker" for elemental damage (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Nov 20, 2024
1 parent 729387b commit 854f60c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7428,10 +7428,6 @@ bool Game::combatChangeHealth(const std::shared_ptr<Creature> &attacker, const s

target->drainHealth(attacker, realDamage);
if (realDamage > 0 && targetMonster) {
if (attackerPlayer && attackerPlayer->getPlayer()) {
attackerPlayer->updateImpactTracker(damage.secondary.type, damage.secondary.value);
}

if (targetMonster->israndomStepping()) {
targetMonster->setIgnoreFieldDamage(true);
}
Expand Down

0 comments on commit 854f60c

Please sign in to comment.