From 6b3533141e0d2d7d3012d9376c6aa1e27d5cca9f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 29 Nov 2017 17:55:59 -0500 Subject: [PATCH] Core/Items: Fixed saving item after unlocking --- Source/Game/Spells/SpellEffects.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 8849571af..c3ebf840e 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -1542,7 +1542,10 @@ namespace Game.Spells if (gameObjTarget != null) SendLoot(guid, LootType.Skinning); else if (itemTarget != null) + { itemTarget.SetFlag(ItemFields.Flags, ItemFieldFlags.Unlocked); + itemTarget.SetState(ItemUpdateState.Changed, itemTarget.GetOwner()); + } // not allow use skill grow at item base open if (m_CastItem == null && skillId != SkillType.None)