refactor(Scripts/BloodFurnace): Clean up instance script (#21207)

This commit is contained in:
Andrew 2025-01-19 16:33:19 -03:00 committed by GitHub
parent 9c43adc445
commit b238daa7a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 34 additions and 139 deletions

View file

@ -612,6 +612,12 @@ void InstanceScript::DoRespawnGameObject(ObjectGuid uiGuid, uint32 uiTimeToDespa
LOG_DEBUG("scripts", "InstanceScript: DoRespawnGameObject failed");
}
void InstanceScript::DoRespawnGameObject(uint32 type)
{
if (GameObject* go = instance->GetGameObject(GetObjectGuid(type)))
go->Respawn();
}
void InstanceScript::DoRespawnCreature(ObjectGuid guid, bool force)
{
if (Creature* creature = instance->GetCreature(guid))