diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java index f2f69bae0c..59d33bd87c 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -572,7 +572,11 @@ public abstract class Inventory extends ItemContainer continue; } - player.removeSkill(itemSkill, false, itemSkill.isPassive()); + // Update if a skill has been removed. + if (player.removeSkill(itemSkill, false, itemSkill.isPassive()) != null) + { + update = true; + } } } diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 2d39842af0..88575164db 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -596,7 +596,11 @@ public abstract class Inventory extends ItemContainer continue; } - player.removeSkill(itemSkill, false, itemSkill.isPassive()); + // Update if a skill has been removed. + if (player.removeSkill(itemSkill, false, itemSkill.isPassive()) != null) + { + update = true; + } } } diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 2d39842af0..88575164db 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -596,7 +596,11 @@ public abstract class Inventory extends ItemContainer continue; } - player.removeSkill(itemSkill, false, itemSkill.isPassive()); + // Update if a skill has been removed. + if (player.removeSkill(itemSkill, false, itemSkill.isPassive()) != null) + { + update = true; + } } } diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java index 2d39842af0..88575164db 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/itemcontainer/Inventory.java @@ -596,7 +596,11 @@ public abstract class Inventory extends ItemContainer continue; } - player.removeSkill(itemSkill, false, itemSkill.isPassive()); + // Update if a skill has been removed. + if (player.removeSkill(itemSkill, false, itemSkill.isPassive()) != null) + { + update = true; + } } }