Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Mar 12, 2024
1 parent 8803caf commit bd84ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/weapons/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ int32_t WeaponWand::getWeaponDamage(std::shared_ptr<Player> player, std::shared_
auto totalAttackValue = magLevel + attackValue;

// Check if magLevel is greater than zero before performing division
auto magicLevelDivision = magLevel > 0 ? totalAttackValue / 3.0 : 0.0;
auto magicLevelDivision = totalAttackValue > 0 ? totalAttackValue / 3.0 : 0.0;

double min = levelDivision + magicLevelDivision;
double max = levelDivision + totalAttackValue;
Expand Down

0 comments on commit bd84ffd

Please sign in to comment.