summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-13 12:17:13 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-13 12:17:13 +0000
commitb078b121c921a81258796a082453acc52a76a81f (patch)
tree4b72ca1fed63936417918444026b8b65ddb8838d /src/map/mob.c
parentf27609e2376719e9033e1d42fb36336731414af4 (diff)
downloadhercules-b078b121c921a81258796a082453acc52a76a81f.tar.gz
hercules-b078b121c921a81258796a082453acc52a76a81f.tar.bz2
hercules-b078b121c921a81258796a082453acc52a76a81f.tar.xz
hercules-b078b121c921a81258796a082453acc52a76a81f.zip
Minor adjustment that makes clones die in a smoother manner (rather than standing still after death and disappearing in a small delay they now display a dead sprite and disappear a few seconds afterwards)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16629 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 154c841df..18b514616 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2602,7 +2602,9 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
if( !rebirth ) {
- 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.
+ /* first we set them dead, then we delay the outsight effect */
+ clif_clearunit_area(&md->bl,CLR_DEAD);
clif_clearunit_delayed(&md->bl, CLR_OUTSIGHT,tick+3000);
} else
/**
@@ -2610,7 +2612,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
* 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.