Jelajahi Sumber

fix for weaponsAllowed. now if you use a buff and change the weapons, buff is not removed (this fix is specially for Totem's skills and some others).
fixes for #3934

janiii 16 tahun lalu
induk
melakukan
0450caa1a5

+ 3 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

@@ -2271,8 +2271,11 @@ public final class L2PcInstance extends L2Playable
 
         refreshExpertisePenalty();
 
+		/**
+		// remove effects which doesn't match weapon type (but not party buffs)
 		if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)
 			checkIfWeaponIsAllowed();
+		**/
 
 		InventoryUpdate iu = new InventoryUpdate();
 		iu.addItems(Arrays.asList(items));