瀏覽代碼

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;