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,6 +789,8 @@ namespace Game.Entities
|
|||||||
m_usetimes = 0;
|
m_usetimes = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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);
|
SetGoState(GameObjectState.Ready);
|
||||||
|
|
||||||
//any return here in case Battleground traps
|
//any return here in case Battleground traps
|
||||||
|
|||||||
Reference in New Issue
Block a user