mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user