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:
parent
c181e6de23
commit
53061e455e
1 changed files with 3 additions and 0 deletions
|
@ -301,6 +301,9 @@ void Sapphire::Entity::BNpc::update( int64_t currTime )
|
||||||
const uint8_t aggroRange = 8;
|
const uint8_t aggroRange = 8;
|
||||||
const uint8_t maxDistanceToOrigin = 30;
|
const uint8_t maxDistanceToOrigin = 30;
|
||||||
|
|
||||||
|
if( m_status == ActorStatus::Dead )
|
||||||
|
return;
|
||||||
|
|
||||||
switch( m_state )
|
switch( m_state )
|
||||||
{
|
{
|
||||||
case BNpcState::Retreat:
|
case BNpcState::Retreat:
|
||||||
|
|
Loading…
Add table
Reference in a new issue