1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 16:17:46 +00:00

Fixed mobs not being killable and spawning will use the correct state

This commit is contained in:
Mordred 2019-01-20 00:20:35 +01:00
parent 6b6c400558
commit 092825c42c
2 changed files with 1 additions and 2 deletions

View file

@ -61,6 +61,7 @@ Sapphire::Entity::BNpc::BNpc( uint32_t id, BNpcTemplatePtr pTemplate, float posX
m_pos.z = posZ; m_pos.z = posZ;
m_rot = rot; m_rot = rot;
m_level = level; m_level = level;
m_invincibilityType = InvincibilityNone;
m_pCurrentZone = pZone; m_pCurrentZone = pZone;

View file

@ -75,8 +75,6 @@ namespace Sapphire::Network::Packets::Server
m_data.bNPCBase = bnpc.getBNpcBaseId(); m_data.bNPCBase = bnpc.getBNpcBaseId();
m_data.bNPCName = bnpc.getBNpcNameId(); m_data.bNPCName = bnpc.getBNpcNameId();
m_data.state = 1;
assert( target.getId() != bnpc.getId() ); assert( target.getId() != bnpc.getId() );
m_data.spawnIndex = target.getSpawnIdForActorId( bnpc.getId() ); m_data.spawnIndex = target.getSpawnIdForActorId( bnpc.getId() );