Core/GameObjects: Allow reset for GAMEOBJECT_TYPE_GOOBER without lockId or autoCloseTime (#31079)

This commit is contained in:
Meji
2025-07-12 22:22:57 +02:00
committed by GitHub
parent cd3dd59b53
commit 32270f1e5e

View File

@@ -1627,9 +1627,7 @@ void GameObject::Update(uint32 diff)
m_usetimes = 0;
}
// Only goobers with a lock id or a reset time may reset their go state
if (GetGOInfo()->GetLockId() || GetGOInfo()->GetAutoCloseTime())
SetGoState(GO_STATE_READY);
SetGoState(GO_STATE_READY);
//any return here in case battleground traps
if (GameObjectOverride const* goOverride = GetGameObjectOverride())