mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-24 05:37:41 +00:00
Merge pull request #525 from EmosewaMC/money-fix
Serialize ape when changing armor value
This commit is contained in:
commit
bbedf5d174
@ -49,7 +49,7 @@ void BaseEnemyApe::OnTimerDone(Entity *self, std::string timerName) {
|
|||||||
if (destroyableComponent != nullptr) {
|
if (destroyableComponent != nullptr) {
|
||||||
destroyableComponent->SetArmor(destroyableComponent->GetMaxArmor() / timesStunned);
|
destroyableComponent->SetArmor(destroyableComponent->GetMaxArmor() / timesStunned);
|
||||||
}
|
}
|
||||||
|
EntityManager::Instance()->SerializeEntity(self);
|
||||||
self->SetVar<uint32_t>(u"timesStunned", timesStunned + 1);
|
self->SetVar<uint32_t>(u"timesStunned", timesStunned + 1);
|
||||||
StunApe(self, false);
|
StunApe(self, false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user