From 5b5afa7bb6cad66880bbbeee26d0851f25f85d45 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 29 Mar 2007 21:28:35 +0000 Subject: - Corrected a pretty serious typo in script.c - Corrected the change that made Coma not be reduced by mdef making Stone, Freeze and Decrease Agi be reduced by luck rather than mdef. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10090 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 4 ++-- src/map/skill.c | 2 +- src/map/status.c | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/map/script.c b/src/map/script.c index c20278dc2..55a0eb23e 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -10735,10 +10735,10 @@ BUILDIN_FUNC(jump_zero) sel=script_getnum(st,2); if(!sel) { int pos; - if( !data_islabel(script_getdata(st,2)) ){ + if( !data_islabel(script_getdata(st,3)) ){ ShowError("script: jump_zero: not label !\n"); st->state=END; - return 0; + return 1; } pos=script_getnum(st,3); diff --git a/src/map/skill.c b/src/map/skill.c index 65cc19bcf..1aaecb778 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1072,7 +1072,7 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int status_change_start(bl, SC_COMA, rate, 0, 0, 0, 0, 0, 0); } } - + if (sc) { // Enchant Poison gives a chance to poison attacked enemies if(sc->data[SC_ENCPOISON].timer != -1) //Don't use sc_start since chance comes in 1/10000 rate. diff --git a/src/map/status.c b/src/map/status.c index 993be24ea..58d6190b7 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4425,6 +4425,8 @@ int status_get_sc_def(struct block_list *bl, int type) case SC_STONE: case SC_FREEZE: case SC_DECREASEAGI: + sc_def = 300 +100*status->mdef; + break; case SC_CURSE: if (status->luk > status_get_lv(bl)) return 10000; //Special property: inmunity when luk is greater than level -- cgit v1.2.3-60-g2f50