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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user