diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-31 07:51:16 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-31 07:51:16 +0000 |
commit | a37268844bb8cdf219389806f3365cf0633cc134 (patch) | |
tree | 1e78c4dbdef1c0a873a7041b88ae730b66634c8a /src | |
parent | 01d490868bbe9e3690f543aa82aa4e50d605e8ad (diff) | |
download | hercules-a37268844bb8cdf219389806f3365cf0633cc134.tar.gz hercules-a37268844bb8cdf219389806f3365cf0633cc134.tar.bz2 hercules-a37268844bb8cdf219389806f3365cf0633cc134.tar.xz hercules-a37268844bb8cdf219389806f3365cf0633cc134.zip |
Fixed bugreport:5791 mob rebirth skill shall now function properly on newer clients
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16179 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/mob.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index b1deb5b81..51f283fde 100644 --- a/src/map/mob.c +++ b/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... |