summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-23 10:55:01 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-23 10:55:01 +0000
commit3a783a8bdd6f2c3e59ce900ef36af7e8e79a2f5b (patch)
treec615fe4ba739c2879d590dfc6698e867fcb22360 /src/map/status.c
parentd5c10b3c0b55a63c7bd89e43dc7a79c977bd259e (diff)
downloadhercules-3a783a8bdd6f2c3e59ce900ef36af7e8e79a2f5b.tar.gz
hercules-3a783a8bdd6f2c3e59ce900ef36af7e8e79a2f5b.tar.bz2
hercules-3a783a8bdd6f2c3e59ce900ef36af7e8e79a2f5b.tar.xz
hercules-3a783a8bdd6f2c3e59ce900ef36af7e8e79a2f5b.zip
Fixed bugreport:1551 causing coma on monsters now grants you your-fully-deserved exp.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15783 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 37d4fe4f1..aa3ab0a29 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6885,6 +6885,11 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
}
case SC_COMA: //Coma. Sends a char to 1HP. If val2, do not zap sp
+ if( val3 && bl->type == BL_MOB ) {
+ struct block_list* src = map_id2bl(val3);
+ if( src )
+ mob_log_damage((TBL_MOB*)bl,src,status->hp - 1);
+ }
status_zap(bl, status->hp-1, val2?0:status->sp);
return 1;
break;