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:
parent
39bad395c2
commit
5bf64a164a
1 changed files with 1 additions and 1 deletions
|
|
@ -4653,7 +4653,7 @@ void Player::DurabilityLossAll(double percent, bool inventory)
|
|||
|
||||
void Player::DurabilityLoss(Item* item, double percent)
|
||||
{
|
||||
if(!item)
|
||||
if(!item || percent == 0.0)
|
||||
return;
|
||||
|
||||
uint32 pMaxDurability = item ->GetUInt32Value(ITEM_FIELD_MAXDURABILITY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue