Merge remote-tracking branch 'origin/fixes'

feature/prepare-cross-merge
Nuno 4 years ago committed by kaetemi
parent 8d180bd38b
commit 5761a4a638
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -4412,7 +4412,8 @@ uint16 CGameItem::getClientEnchantValue() const
} }
if ( sabrinaValue != 0) if ( sabrinaValue != 0)
{ {
return uint8( 1 + sapLoad / (uint32)(sabrinaValue * sabrinaRelativeValue) ); // client side value is limited to 10bits
return std::min(uint(999), uint(1 + sapLoad / (uint32)(sabrinaValue * sabrinaRelativeValue)));
} }
else else
{ {

Loading…
Cancel
Save