refactor(Scripts/BloodFurnace): Clean up instance script (#21207)
This commit is contained in:
parent
9c43adc445
commit
b238daa7a8
7 changed files with 34 additions and 139 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue