- Coma now reduces SP to 0 (with the exception of Dark Blessing)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10069 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2007-03-25 21:42:53 +00:00
parent 27ae4f7091
commit e783bbffec
3 changed files with 8 additions and 3 deletions

View File

@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2007/03/26 2007/03/26
* Coma now reduces SP to 0 (with the exception of Dark Blessing) [Skotlex]
* Corrected "format '%lu' expects type 'long unsigned int', but argument 4 * Corrected "format '%lu' expects type 'long unsigned int', but argument 4
has type 'unsigned int'" warning on login.sql [Toms] has type 'unsigned int'" warning on login.sql [Toms]
2007/03/24 2007/03/24

View File

@ -4853,7 +4853,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
case NPC_DARKBLESSING: case NPC_DARKBLESSING:
clif_skill_nodamage(src,bl,skillid,skilllv, clif_skill_nodamage(src,bl,skillid,skilllv,
sc_start(bl,type,(50+skilllv*5),skilllv,skill_get_time2(skillid,skilllv))); sc_start2(bl,type,(50+skilllv*5),skilllv,skilllv,skill_get_time2(skillid,skilllv)));
break; break;
case NPC_LICK: case NPC_LICK:

View File

@ -4434,6 +4434,10 @@ int status_get_sc_def(struct block_list *bl, int type)
else else
sc_def = 300 +100*status->luk; sc_def = 300 +100*status->luk;
break; 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. case SC_BLIND: //TODO: These 50/50 factors are guessed. Need to find actual value.
sc_def = 300 +50*status->vit +50*status->int_; sc_def = 300 +50*status->vit +50*status->int_;
break; break;
@ -5505,8 +5509,8 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
break; break;
} }
case SC_COMA: //Coma. Sends a char to 1HP case SC_COMA: //Coma. Sends a char to 1HP. If val2, do not zap sp
status_zap(bl, status_get_hp(bl)-1, 0); status_zap(bl, status->hp-1, val2?0:status->sp);
return 1; return 1;
case SC_CLOSECONFINE2: case SC_CLOSECONFINE2: