diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-01 17:17:09 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-01 17:17:09 +0000 |
commit | 16e98db60869923981239814297888b46a425c7c (patch) | |
tree | 17b9b59715d49068f9eb41e61a31dbc3fad50673 /src/map/script.c | |
parent | e6c88987fb92e83d3dc49d688db9d9723836f4f6 (diff) | |
download | hercules-16e98db60869923981239814297888b46a425c7c.tar.gz hercules-16e98db60869923981239814297888b46a425c7c.tar.bz2 hercules-16e98db60869923981239814297888b46a425c7c.tar.xz hercules-16e98db60869923981239814297888b46a425c7c.zip |
- Fixed a typo bug in SC_STAR_COMFORT handling.
- Fixed a possible crash bug in SC_POISONREACT handling.
- Simplified the skill trigger code for ST_PRESERVE, SG_FUSION, SG_*_COMFORT
- Unified the status change variables into a single structure (sc_count, opt1, opt2, opt3, option, and the array of status change data) which should make it easier to handle sc related stuff.
- TK_DODGE now won't trigger if your opt1 is set ;)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5154 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c index 9a4c9c0e5..e7f5996da 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -4947,7 +4947,7 @@ int buildin_checkoption(struct script_state *st) type=conv_num(st,& (st->stack->stack_data[st->start+2]));
sd=script_rid2sd(st);
- if(sd->status.option & type){
+ if(sd->sc.option & type){
push_val(st->stack,C_INT,1);
} else {
push_val(st->stack,C_INT,0);
@@ -4967,7 +4967,7 @@ int buildin_checkoption1(struct script_state *st) type=conv_num(st,& (st->stack->stack_data[st->start+2]));
sd=script_rid2sd(st);
- if(sd->opt1 & type){
+ if(sd->sc.opt1 & type){
push_val(st->stack,C_INT,1);
} else {
push_val(st->stack,C_INT,0);
@@ -4987,7 +4987,7 @@ int buildin_checkoption2(struct script_state *st) type=conv_num(st,& (st->stack->stack_data[st->start+2]));
sd=script_rid2sd(st);
- if(sd->opt2 & type){
+ if(sd->sc.opt2 & type){
push_val(st->stack,C_INT,1);
} else {
push_val(st->stack,C_INT,0);
|