1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-07 03:07:45 +00:00

stop ticking status if dead

This commit is contained in:
collett 2023-07-24 07:33:09 +09:00
parent 249194630c
commit 0a4bd0dee4

View file

@ -354,6 +354,8 @@ bool Sapphire::Entity::Chara::checkAction()
}
void Sapphire::Entity::Chara::update( uint64_t tickCount )
{
if( isAlive() )
{
updateStatusEffects();
@ -363,6 +365,7 @@ void Sapphire::Entity::Chara::update( uint64_t tickCount )
m_lastTickTime = static_cast< time_t >( tickCount );
}
}
m_lastUpdate = static_cast< time_t >( tickCount );
}