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:
@@ -193,7 +193,7 @@ void BaseCombatAIComponent::Update(const float deltaTime) {
|
||||
m_SoftTimer -= deltaTime;
|
||||
}
|
||||
|
||||
if (m_Disabled || m_Parent->GetIsDead())
|
||||
if (m_Disabled || m_Parent->GetComponent<DestroyableComponent>()->GetIsDead())
|
||||
return;
|
||||
bool stunnedThisFrame = m_Stunned;
|
||||
CalculateCombat(deltaTime); // Putting this here for now
|
||||
|
Reference in New Issue
Block a user