From 53061e455e74e680e35ba6d3d78bc79cb48a2e07 Mon Sep 17 00:00:00 2001 From: NotAdam Date: Sun, 20 Jan 2019 19:14:35 +1100 Subject: [PATCH] fix dead mobs following you around and beating you to death --- src/world/Actor/BNpc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/world/Actor/BNpc.cpp b/src/world/Actor/BNpc.cpp index b8966bf4..86b5f402 100644 --- a/src/world/Actor/BNpc.cpp +++ b/src/world/Actor/BNpc.cpp @@ -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: