Skip to content

Commit

Permalink
fix: imbuement elemental damage only to physical damage (opentibiabr#…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospess0a authored May 8, 2024
1 parent 231b3c8 commit 62991d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/creatures/combat/combat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,10 @@ CombatDamage Combat::applyImbuementElementalDamage(std::shared_ptr<Player> attac
continue;
}

if (damage.primary.type != COMBAT_PHYSICALDAMAGE) {
break;
}

float damagePercent = imbuementInfo.imbuement->elementDamage / 100.0;

damage.secondary.type = imbuementInfo.imbuement->combatType;
Expand Down

0 comments on commit 62991d4

Please sign in to comment.