mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-05 23:08:31 +00:00
move IsDead to the DestroyableComponent
This commit is contained in:
@@ -16,7 +16,7 @@ void BaseEnemyApe::OnStartup(Entity* self) {
|
||||
|
||||
void BaseEnemyApe::OnDie(Entity* self, Entity* killer) {
|
||||
auto* anchor = Game::entityManager->GetEntity(self->GetVar<LWOOBJID>(u"QB"));
|
||||
if (anchor != nullptr && !anchor->GetIsDead()) {
|
||||
if (anchor != nullptr && !anchor->GetComponent<DestroyableComponent>()->GetIsDead()) {
|
||||
anchor->Smash(self->GetObjectID(), eKillType::SILENT);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user