|
@@ -2131,11 +2131,13 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
|
|
|
|
|
|
map_freeblock_unlock();
|
|
map_freeblock_unlock();
|
|
|
|
|
|
- if(pcdb_checkid(md->vd->class_)) //Player mobs are not removed automatically by the client.
|
|
|
|
|
|
+ if(pcdb_checkid(md->vd->class_))
|
|
|
|
+ { //Player mobs are not removed automatically by the client.
|
|
if(md->nd)
|
|
if(md->nd)
|
|
return 1; // Let the dead body stay there.. we have something to do with it :D
|
|
return 1; // Let the dead body stay there.. we have something to do with it :D
|
|
else
|
|
else
|
|
clif_clearchar_delay(tick+3000,&md->bl,0);
|
|
clif_clearchar_delay(tick+3000,&md->bl,0);
|
|
|
|
+ }
|
|
|
|
|
|
if(!md->spawn) //Tell status_damage to remove it from memory.
|
|
if(!md->spawn) //Tell status_damage to remove it from memory.
|
|
return 5; // Note: Actually, it's 4. Oh well...
|
|
return 5; // Note: Actually, it's 4. Oh well...
|