summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-25 21:42:53 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-25 21:42:53 +0000
commitff9b3bdbd02a62bfa4769586fb436af53d9710f3 (patch)
tree596ab5bcce03717cba4d48ff7ac3f0ad83174da0 /src/map/status.c
parent5993e7df4c3ad138ce6e2c891624581412d51bc8 (diff)
downloadhercules-ff9b3bdbd02a62bfa4769586fb436af53d9710f3.tar.gz
hercules-ff9b3bdbd02a62bfa4769586fb436af53d9710f3.tar.bz2
hercules-ff9b3bdbd02a62bfa4769586fb436af53d9710f3.tar.xz
hercules-ff9b3bdbd02a62bfa4769586fb436af53d9710f3.zip
- Coma now reduces SP to 0 (with the exception of Dark Blessing)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10069 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 04cc07144..a2a0ad8f7 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4434,6 +4434,10 @@ int status_get_sc_def(struct block_list *bl, int type)
else
sc_def = 300 +100*status->luk;
break;
+ case SC_COMA:
+ //TODO: Need actual data on rate reductions.
+ sc_def = 100*status->luk;
+ break;
case SC_BLIND: //TODO: These 50/50 factors are guessed. Need to find actual value.
sc_def = 300 +50*status->vit +50*status->int_;
break;
@@ -5505,8 +5509,8 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
break;
}
- case SC_COMA: //Coma. Sends a char to 1HP
- status_zap(bl, status_get_hp(bl)-1, 0);
+ case SC_COMA: //Coma. Sends a char to 1HP. If val2, do not zap sp
+ status_zap(bl, status->hp-1, val2?0:status->sp);
return 1;
case SC_CLOSECONFINE2: