浏览代码

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 年之前
父节点
当前提交
0450caa1a5
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

+ 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));