From 43cccc015d08cd4dfbb3f8e227281660e2790021 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 11 Oct 2017 14:03:06 +0000 Subject: [PATCH] Inventory update for skill been removed. Contributed by gigilo1968. --- .../l2jmobius/gameserver/model/itemcontainer/Inventory.java | 6 +++++- .../l2jmobius/gameserver/model/itemcontainer/Inventory.java | 6 +++++- .../l2jmobius/gameserver/model/itemcontainer/Inventory.java | 6 +++++- .../l2jmobius/gameserver/model/itemcontainer/Inventory.java | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) 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; + } } }