Skip to content

Commit

Permalink
Make sure items are saved after being unlocked.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb authored and Benjaminmnoer committed Dec 18, 2023
1 parent bee652b commit 691405c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/Spells/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2893,7 +2893,10 @@ void Spell::EffectOpenLock(SpellEffectIndex effIdx)

// mark item as unlocked
if (itemTarget)
{
itemTarget->SetFlag(ITEM_FIELD_FLAGS, ITEM_DYNFLAG_UNLOCKED);
itemTarget->SetState(ITEM_CHANGED);
}

SendLoot(guid, LOOT_SKINNING, LockType(m_spellInfo->EffectMiscValue[effIdx]));

Expand Down

0 comments on commit 691405c

Please sign in to comment.