From 2f598dad09d30b2ef8c3fe3ed18c7cdcd252232d Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Thu, 28 Apr 2022 00:13:57 -0700 Subject: [PATCH] Serialize ape when changing armor value --- dScripts/BaseEnemyApe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dScripts/BaseEnemyApe.cpp b/dScripts/BaseEnemyApe.cpp index 3419b2c4..9aa391d1 100644 --- a/dScripts/BaseEnemyApe.cpp +++ b/dScripts/BaseEnemyApe.cpp @@ -49,7 +49,7 @@ void BaseEnemyApe::OnTimerDone(Entity *self, std::string timerName) { if (destroyableComponent != nullptr) { destroyableComponent->SetArmor(destroyableComponent->GetMaxArmor() / timesStunned); } - + EntityManager::Instance()->SerializeEntity(self); self->SetVar(u"timesStunned", timesStunned + 1); StunApe(self, false);