Core/GameObjects: goober gameobjects may reset only if they have a lock id or a reset time specified

Port From (https://github.com/TrinityCore/TrinityCore/commit/09fe78dd59095fa31b83a846d5fcbb53dd3afb1b)
This commit is contained in:
hondacrx
2021-12-16 12:38:00 -05:00
parent cf3bc71a74
commit 85359b129f
@@ -789,7 +789,9 @@ namespace Game.Entities
m_usetimes = 0;
}
SetGoState(GameObjectState.Ready);
// Only goobers with a lock id or a reset time may reset their go state
if (GetGoInfo().GetLockId() != 0 || GetGoInfo().GetAutoCloseTime() != 0)
SetGoState(GameObjectState.Ready);
//any return here in case Battleground traps
GameObjectOverride goOverride = GetGameObjectOverride();