Entities/GO: GameObjects now support (delayed) despawning in a reasonable manner. Closes #21406.

(cherry picked from commit f071fa9e931533c28e6b9d8b0e38ed8878ce2b45)
This commit is contained in:
Treeston
2021-06-20 21:49:11 +02:00
committed by Shauren
parent bd158f6c29
commit bccd81e12a
3 changed files with 28 additions and 2 deletions
@@ -1058,7 +1058,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
creature->DespawnOrUnsummon(respawnDelay);
}
else if (GameObject* goTarget = target->ToGameObject())
goTarget->SetRespawnTime(respawnDelay);
goTarget->DespawnOrUnsummon(Milliseconds(respawnDelay));
}
break;
}