From bd84ffdcf7cfd912811a4e6ff8174528d8838018 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Tue, 12 Mar 2024 10:27:07 -0300 Subject: [PATCH] fix: error --- src/items/weapons/weapons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;