summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-02 00:06:58 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-02 00:06:58 +0000
commitc638f42f8e80a980c21e210c6ce149731dd53b17 (patch)
tree6bf9674cded19cfc613502938493cfc6a2ad9ea1 /src/map/status.c
parent1bf878b4c845d29f13a370b0aa3e18f434b57bb5 (diff)
downloadhercules-c638f42f8e80a980c21e210c6ce149731dd53b17.tar.gz
hercules-c638f42f8e80a980c21e210c6ce149731dd53b17.tar.bz2
hercules-c638f42f8e80a980c21e210c6ce149731dd53b17.tar.xz
hercules-c638f42f8e80a980c21e210c6ce149731dd53b17.zip
- Removed OPTION_XMAS, it seems to not exist....
- Added SC_SMA to handle "ready to use SMA" status (rather than SC_COMBO) since it has a visual effect to use. - Corrected the value of OPTION_FLYING - Using SG_FUSION ends Soul Linked effect. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6438 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/map/status.c b/src/map/status.c
index f77f2a917..d2a744504 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -267,6 +267,7 @@ void initChangeTables(void) {
set_sc(SL_SWOO, SC_SWOO, SI_BLANK);
set_sc(SL_SKE, SC_SKE, SI_BLANK);
set_sc(SL_SKA, SC_SKA, SI_BLANK);
+ set_sc(SL_SMA, SC_SMA, SI_SMA);
set_sc(ST_PRESERVE, SC_PRESERVE, SI_PRESERVE);
set_sc(PF_DOUBLECASTING, SC_DOUBLECAST, SI_DOUBLECAST);
set_sc(HW_GRAVITATION, SC_GRAVITATION, SI_BLANK);
@@ -3332,12 +3333,8 @@ void status_set_viewdata(struct block_list *bl, int class_)
}
if (sd->vd.class_ == JOB_WEDDING)
sd->sc.option&=~OPTION_WEDDING;
- if (sd->vd.class_ == JOB_XMAS)
- sd->sc.option&=~OPTION_XMAS;
if (class_ == JOB_WEDDING)
sd->sc.option|=OPTION_WEDDING;
- if (class_ == JOB_XMAS)
- sd->sc.option|=OPTION_XMAS;
sd->vd.class_ = class_;
clif_get_weapon_view(sd, &sd->vd.weapon, &sd->vd.shield);
sd->vd.head_top = sd->status.head_top;
@@ -3871,6 +3868,9 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
status_change_end(bl,SC_DECREASEAGI,-1);
return 0;
}
+ case SC_FUSION:
+ if(sc->data[SC_SPIRIT].timer!=-1 )
+ status_change_end(bl,SC_SPIRIT,-1);
break;
}
//Check for overlapping fails
@@ -4577,6 +4577,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
case SC_SILENCE: /* 沈?(レックスデビ?ナ) */
case SC_ASSUMPTIO: /* アスムプティオ */
case SC_SLEEP:
+ case SC_SMA:
break;
// gs_something1 [Vicious]
case SC_MADNESSCANCEL:
@@ -4741,9 +4742,6 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
case SC_SIGHTTRASHER:
sc->option |= OPTION_SIGHTTRASHER;
break;
- case SC_XMAS: // Xmas Suit [Valaris]
- sc->option |= OPTION_XMAS;
- break;
case SC_FUSION:
sc->option |= OPTION_FLYING;
break;
@@ -5255,10 +5253,6 @@ int status_change_end( struct block_list* bl , int type,int tid )
sc->option &= ~OPTION_SIGHTTRASHER;
opt_flag = 1;
break;
- case SC_XMAS: // Xmas Suit [Valaris]
- sc->option &= ~OPTION_XMAS;
- opt_flag = 1;
- break;
case SC_FUSION:
sc->option &= ~OPTION_FLYING;
opt_flag = 1;
@@ -5817,6 +5811,7 @@ int status_change_clear_buffs (struct block_list *bl, int type)
case SC_WEIGHT50:
case SC_WEIGHT90:
case SC_COMBO:
+ case SC_SMA:
case SC_DANCING:
case SC_GUILDAURA:
case SC_SAFETYWALL: