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