Explorar el Código

Fixed bug with incorrect applying attribute on enchant if item not equipped, thanks lion for reporting.

_DS_ hace 16 años
padre
commit
3af6329550

+ 2 - 1
L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestExEnchantItemAttribute.java

@@ -178,7 +178,8 @@ public class RequestExEnchantItemAttribute extends L2GameClientPacket
 			}
 			player.sendPacket(sm);
 			item.setElementAttr(elementToAdd, newPower);
-			item.updateElementAttrBonus(player); 
+			if (item.isEquipped())
+				item.updateElementAttrBonus(player); 
 
 			// send packets
 			InventoryUpdate iu = new InventoryUpdate();