Mobs with no respawn information which don't have a master will not get unloaded by the dynamic mobs system.
This prevents script-spawned mobs (bio MVPs, Emperium/Guardians, ...) and dead-branched mobs from disappearing (bugreport:1246). git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12424 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
42b5164970
commit
71ce130467
@ -1981,6 +1981,9 @@ int map_removemobs_sub(struct block_list *bl, va_list ap)
|
||||
nullpo_retr(0, md);
|
||||
|
||||
//When not to remove:
|
||||
//Mob doesn't respawn and is not a slave
|
||||
if( !md->spawn && !md->master_id )
|
||||
return 0;
|
||||
//Mob respawn data is not in cache
|
||||
if( md->spawn && !md->spawn->state.dynamic )
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user