Serialize ape when changing armor value

This commit is contained in:
EmosewaMC 2022-04-28 00:13:57 -07:00
parent 16b108f69c
commit 2f598dad09

View File

@ -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<uint32_t>(u"timesStunned", timesStunned + 1);
StunApe(self, false);