Core/Items: Fixed sending unlocked items by mail

Closes #20976
This commit is contained in:
Shauren
2017-11-26 23:34:20 +01:00
committed by Aokromes
parent eebe6fbdff
commit 088d678a9f
2 changed files with 5 additions and 1 deletions

View File

@@ -1807,7 +1807,10 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
SendLoot(guid, LOOT_SKINNING);
}
else if (itemTarget)
{
itemTarget->SetFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_UNLOCKED);
itemTarget->SetState(ITEM_CHANGED, itemTarget->GetOwner());
}
// not allow use skill grow at item base open
if (!m_CastItem && skillId != SKILL_NONE)