From 2ad44c42144601d49d3ba919a5c097aeef25109a Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 22 Mar 2008 11:57:57 +0000 Subject: 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12424 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index 06b39129e..83f6b855e 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -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; -- cgit v1.2.3-60-g2f50