Переглянути джерело

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

ultramage 17 роки тому
батько
коміт
71ce130467
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      src/map/map.c

+ 3 - 0
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;