summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 02:51:50 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 02:51:50 +0000
commit1300e71f7b19b820dae2a984c9f59ac32c13d6c7 (patch)
tree94040e5740015eaab38f16a7fcd29700ae12f1b2 /src/map/mob.c
parent7bfe279684f65846e4c2255b5ee55551d2ab0656 (diff)
downloadhercules-1300e71f7b19b820dae2a984c9f59ac32c13d6c7.tar.gz
hercules-1300e71f7b19b820dae2a984c9f59ac32c13d6c7.tar.bz2
hercules-1300e71f7b19b820dae2a984c9f59ac32c13d6c7.tar.xz
hercules-1300e71f7b19b820dae2a984c9f59ac32c13d6c7.zip
* [Improved]:
- mob_dead not to remove script controlled monsters with player sprites. (can be removed later using removemob command, it can be resurrected too :D) * [Added]: - buildin_mobdeadsit :D git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7024 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index ab25d1779..8e23f9f78 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2125,16 +2125,20 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
delete_timer(md->deletetimer,mob_timer_delete);
md->deletetimer=-1;
}
- if(pcdb_checkid(md->vd->class_)) //Player mobs are not removed automatically by the client.
- clif_clearchar_delay(tick+3000,&md->bl,0);
mob_deleteslave(md);
md->last_deadtime=tick;
map_freeblock_unlock();
+ if(pcdb_checkid(md->vd->class_)) //Player mobs are not removed automatically by the client.
+ if(md->nd)
+ return 1; // Let the dead body stay there.. we have something to do with it :D
+ else
+ clif_clearchar_delay(tick+3000,&md->bl,0);
+
if(!md->spawn) //Tell status_damage to remove it from memory.
- return 5;
+ return 5; // Note: Actually, it's 4. Oh well...
mob_setdelayspawn(md); //Set respawning.
return 3; //Remove from map.