Core/GameObjects: goobers will no longer reset their go state when they have no lock id or a reset time

This commit is contained in:
Ovahlord
2019-05-20 11:50:03 +02:00
parent ba88928ef9
commit e1a8c04df7

View File

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