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 committed Nov 15, 2023
1 parent d9138ec commit 61ec2d7
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 61ec2d7

Please sign in to comment.