Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Dec 11, 2023
1 parent 7cd4832 commit 1fc31ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Unit/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ static float GetArmorReduction(float armor, uint8 attackerLevel)
armor = 0.0f;
}

float armorReduction = 100.f - GetArmorReduction(armor, attacker ? attacker->getLevel() : attackerLevel);
float armorReduction = 100.f - GetArmorReduction(armor, attacker ? attacker->GetLevel() : attackerLevel);
return std::max<uint32>(std::ceil(damage * armorReduction / 100.f), 0);
}

Expand Down

0 comments on commit 1fc31ab

Please sign in to comment.