diff --git a/src/items/weapons/weapons.cpp b/src/items/weapons/weapons.cpp index d9a9c9d6b4b..6c0d56d882e 100644 --- a/src/items/weapons/weapons.cpp +++ b/src/items/weapons/weapons.cpp @@ -904,7 +904,7 @@ int32_t WeaponWand::getWeaponDamage(std::shared_ptr 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;