Core/GameObjects: Fixed gameobject spell casts failing when triggered by SPELL_EFFECT_OPEN_LOCK

Port From (https://github.com/TrinityCore/TrinityCore/commit/3177c410e488866ece2803ddcf9ea09ea4b2b4fb)
This commit is contained in:
Hondacrx
2025-02-23 14:29:53 -05:00
parent 6a24e9ce29
commit 519c642cff
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -1270,7 +1270,7 @@ namespace Game.Spells
}
if (gameObjTarget != null)
gameObjTarget.Use(player);
gameObjTarget.Use(player, true);
else if (itemTarget != null)
{
itemTarget.SetItemFlag(ItemFieldFlags.Unlocked);