From 77459af1d3ce7a57bbd8dd8d79a3d6c02cbf76f8 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 5 Feb 2022 04:07:30 -0800 Subject: [PATCH] Removed AI Stopping after they use a skill (#407) * Removed SkillTime from stopping AI * Reverted Downtime removal --- dGame/dComponents/BaseCombatAIComponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dGame/dComponents/BaseCombatAIComponent.cpp b/dGame/dComponents/BaseCombatAIComponent.cpp index ae929d57..858b129d 100644 --- a/dGame/dComponents/BaseCombatAIComponent.cpp +++ b/dGame/dComponents/BaseCombatAIComponent.cpp @@ -192,7 +192,7 @@ void BaseCombatAIComponent::Update(const float deltaTime) { return; } - if (m_Stunned || m_SkillTime > 0) { + if (m_Stunned) { m_MovementAI->Stop(); return; @@ -358,7 +358,7 @@ void BaseCombatAIComponent::CalculateCombat(const float deltaTime) { return; } - m_Downtime = 0.5f; // TODO: find out if this is necessary + m_Downtime = 0.5f; auto* target = GetTargetEntity();