1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

fix dead mobs following you around and beating you to death

This commit is contained in:
NotAdam 2019-01-20 19:14:35 +11:00
parent c181e6de23
commit 53061e455e

View file

@ -301,6 +301,9 @@ void Sapphire::Entity::BNpc::update( int64_t currTime )
const uint8_t aggroRange = 8;
const uint8_t maxDistanceToOrigin = 30;
if( m_status == ActorStatus::Dead )
return;
switch( m_state )
{
case BNpcState::Retreat: