浏览代码

Fixed bugreport:5791 mob rebirth skill shall now function properly on newer clients

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16179 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 年之前
父节点
当前提交
973c89b933
共有 1 个文件被更改,包括 12 次插入9 次删除
  1. 12 9
      src/map/mob.c

+ 12 - 9
src/map/mob.c

@@ -2552,15 +2552,18 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
 	
 	map_freeblock_unlock();
 
-	if(pcdb_checkid(md->vd->class_))
-	{	//Player mobs are not removed automatically by the client.
-		clif_clearunit_delayed(&md->bl, CLR_OUTSIGHT,tick+3000);
-	} else
-		/**
-		 * We give the client some time to breath and this allows it to display anything it'd like with the dead corpose
-		 * For example, this delay allows it to display soul drain effect
-		 **/
-		clif_clearunit_delayed(&md->bl, CLR_DEAD, tick+250);
+	if( !rebirth ) {
+	
+		if(pcdb_checkid(md->vd->class_)) {	//Player mobs are not removed automatically by the client.
+			clif_clearunit_delayed(&md->bl, CLR_OUTSIGHT,tick+3000);
+		} else
+			/**
+			 * We give the client some time to breath and this allows it to display anything it'd like with the dead corpose
+			 * For example, this delay allows it to display soul drain effect
+			 **/
+			clif_clearunit_delayed(&md->bl, CLR_DEAD, tick+250);
+		
+	}
 
 	if(!md->spawn) //Tell status_damage to remove it from memory.
 		return 5; // Note: Actually, it's 4. Oh well...