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

This commit is contained in:
Treeston
2018-02-13 22:08:49 +01:00
parent 2cd5992f37
commit f071fa9e93
3 changed files with 28 additions and 2 deletions
@@ -1047,7 +1047,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;
}