mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-15 13:35:08 +00:00
fix(Core/Player) Stop small durability loss from still occuring when DurabilityLoss options in worldserver.conf are set to 0 (#17407)
Fix durability loss even when "DurabilityLoss"-settings in worldserver.conf are zeroed
This commit is contained in:
@@ -4653,7 +4653,7 @@ void Player::DurabilityLossAll(double percent, bool inventory)
|
|||||||
|
|
||||||
void Player::DurabilityLoss(Item* item, double percent)
|
void Player::DurabilityLoss(Item* item, double percent)
|
||||||
{
|
{
|
||||||
if(!item)
|
if(!item || percent == 0.0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint32 pMaxDurability = item ->GetUInt32Value(ITEM_FIELD_MAXDURABILITY);
|
uint32 pMaxDurability = item ->GetUInt32Value(ITEM_FIELD_MAXDURABILITY);
|
||||||
|
|||||||
Reference in New Issue
Block a user