Browse Source

Fix for recharge shot on shield change.

JIV 15 years ago
parent
commit
a56c02cffe

+ 2 - 2
L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

@@ -2483,7 +2483,7 @@ public final class L2PcInstance extends L2Playable
 		final boolean isEquiped = item.isEquipped();
 		final int oldInvLimit = getInventoryLimit();
 		SystemMessage sm = null;
-		if ((item.getItem().getBodyPart() & L2Item.SLOT_MULTI_ALLHAND) != 0)
+		if ((item.getItem().getBodyPart() & L2Item.SLOT_MULTI_ALLWEAPON) != 0)
 		{
 			L2ItemInstance old = getInventory().getPaperdollItem(Inventory.PAPERDOLL_LRHAND);
 			if (old == null)
@@ -2562,7 +2562,7 @@ public final class L2PcInstance extends L2Playable
 			// Consume mana - will start a task if required; returns if item is not a shadow item
 			item.decreaseMana(false);
 			
-			if ((item.getItem().getBodyPart() & L2Item.SLOT_MULTI_ALLHAND) != 0)
+			if ((item.getItem().getBodyPart() & L2Item.SLOT_MULTI_ALLWEAPON) != 0)
 			{
 				rechargeAutoSoulShot(true, true, false);
 			}

+ 1 - 1
L2_GameServer/java/com/l2jserver/gameserver/templates/item/L2Item.java

@@ -96,7 +96,7 @@ public abstract class L2Item
 	public static final int SLOT_BABYPET = -103;
 	public static final int SLOT_GREATWOLF = -104;
 	
-	public static final int SLOT_MULTI_ALLHAND = SLOT_L_HAND | SLOT_LR_HAND | SLOT_R_HAND;
+	public static final int SLOT_MULTI_ALLWEAPON = SLOT_LR_HAND | SLOT_R_HAND;
 	
 	public static final int MATERIAL_STEEL = 0x00; // ??
 	public static final int MATERIAL_FINE_STEEL = 0x01; // ??