From 50c5d30d13fe12af2a2028baf845fb6eab329a57 Mon Sep 17 00:00:00 2001 From: Wyrserth Date: Wed, 26 Jun 2019 22:02:27 +0200 Subject: Core/GameObject: restore old behavior for non-consumable chests with restock timer (make them despawn). --- src/server/game/Entities/GameObject/GameObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index 6ae18712ca6..6c4e52d2e7a 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -772,7 +772,7 @@ void GameObject::Update(uint32 diff) bool isPermanentSpawn = m_respawnDelayTime == 0; if (!GetGOInfo()->IsDespawnAtAction() && ((GetGoType() == GAMEOBJECT_TYPE_GOOBER && (!isSummonedAndExpired || isPermanentSpawn)) || - (GetGoType() == GAMEOBJECT_TYPE_CHEST && !isSummonedAndExpired))) // ToDo: chests with data2 (chestRestockTime) > 0 and data3 (consumable) = 0 should not despawn on loot + (GetGoType() == GAMEOBJECT_TYPE_CHEST && !isSummonedAndExpired && GetGOInfo()->chest.chestRestockTime == 0))) // ToDo: chests with data2 (chestRestockTime) > 0 and data3 (consumable) = 0 should not despawn on loot { SetLootState(GO_READY); UpdateObjectVisibility(); -- cgit v1.2.3