mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/InstanceScript: std::chrono-ify DoRespawnGameObject
(cherry picked from commit d7ff8c272a)
This commit is contained in:
@@ -556,7 +556,7 @@ void InstanceScript::DoCloseDoorOrButton(ObjectGuid guid)
|
||||
TC_LOG_DEBUG("scripts", "InstanceScript: DoCloseDoorOrButton failed");
|
||||
}
|
||||
|
||||
void InstanceScript::DoRespawnGameObject(ObjectGuid guid, uint32 timeToDespawn /*= MINUTE*/)
|
||||
void InstanceScript::DoRespawnGameObject(ObjectGuid guid, Seconds timeToDespawn /*= 1min */)
|
||||
{
|
||||
if (GameObject* go = instance->GetGameObject(guid))
|
||||
{
|
||||
@@ -576,7 +576,7 @@ void InstanceScript::DoRespawnGameObject(ObjectGuid guid, uint32 timeToDespawn /
|
||||
if (go->isSpawned())
|
||||
return;
|
||||
|
||||
go->SetRespawnTime(timeToDespawn);
|
||||
go->SetRespawnTime(timeToDespawn.count());
|
||||
}
|
||||
else
|
||||
TC_LOG_DEBUG("scripts", "InstanceScript: DoRespawnGameObject failed");
|
||||
|
||||
Reference in New Issue
Block a user