mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-07 19:27:45 +00:00
stop ticking status if dead
This commit is contained in:
parent
249194630c
commit
0a4bd0dee4
1 changed files with 8 additions and 5 deletions
|
@ -354,6 +354,8 @@ bool Sapphire::Entity::Chara::checkAction()
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sapphire::Entity::Chara::update( uint64_t tickCount )
|
void Sapphire::Entity::Chara::update( uint64_t tickCount )
|
||||||
|
{
|
||||||
|
if( isAlive() )
|
||||||
{
|
{
|
||||||
updateStatusEffects();
|
updateStatusEffects();
|
||||||
|
|
||||||
|
@ -363,6 +365,7 @@ void Sapphire::Entity::Chara::update( uint64_t tickCount )
|
||||||
|
|
||||||
m_lastTickTime = static_cast< time_t >( tickCount );
|
m_lastTickTime = static_cast< time_t >( tickCount );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_lastUpdate = static_cast< time_t >( tickCount );
|
m_lastUpdate = static_cast< time_t >( tickCount );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue