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:
parent
6b6c400558
commit
092825c42c
2 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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() );
|
||||||
|
|
Loading…
Add table
Reference in a new issue