summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-16 14:44:27 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-16 14:44:27 +0000
commitd4e1028f77e7b03023901c16f6329414a8a3c24c (patch)
tree3774fe0e35508141be8b8c1cf5d2bee5940c1d9b /src/map/status.c
parent8ff8d0f9ee285452ba7820c3fb333eddb042272b (diff)
downloadhercules-d4e1028f77e7b03023901c16f6329414a8a3c24c.tar.gz
hercules-d4e1028f77e7b03023901c16f6329414a8a3c24c.tar.bz2
hercules-d4e1028f77e7b03023901c16f6329414a8a3c24c.tar.xz
hercules-d4e1028f77e7b03023901c16f6329414a8a3c24c.zip
- Implemented Intravision as it should be. Thanks to HelloKitty2 for the captured packets.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9659 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index b8572c0bf..4194b0c6b 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -417,7 +417,8 @@ void initChangeTables(void) {
StatusIconChangeTable[SC_SPEEDUP1] = SI_SPEEDPOTION2;
StatusIconChangeTable[SC_INCSTR] = SI_INCSTR;
StatusIconChangeTable[SC_MIRACLE] = SI_SPIRIT;
-
+ StatusIconChangeTable[SC_INTRAVISION] = SI_INTRAVISION;
+
//Other SC which are not necessarily associated to skills.
StatusChangeFlagTable[SC_ASPDPOTION0] = SCB_ASPD;
StatusChangeFlagTable[SC_ASPDPOTION1] = SCB_ASPD;
@@ -1606,6 +1607,9 @@ int status_calc_pc(struct map_session_data* sd,int first)
memset (&sd->right_weapon.overrefine, 0, sizeof(sd->right_weapon) - sizeof(sd->right_weapon.atkmods));
memset (&sd->left_weapon.overrefine, 0, sizeof(sd->left_weapon) - sizeof(sd->left_weapon.atkmods));
+ if (sd->special_state.intravision) //Clear status change.
+ clif_status_load(&sd->bl, SI_INTRAVISION, 0);
+
memset(&sd->special_state,0,sizeof(sd->special_state));
memset(&status->max_hp, 0, sizeof(struct status_data)-(sizeof(status->hp)+sizeof(status->sp)+sizeof(status->lhw)));
memset(status->lhw, 0, sizeof(struct weapon_atk));
@@ -5695,7 +5699,6 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
val3 = BF_LONG; //Range
val4 = BF_WEAPON|BF_MISC; //Type
break;
- case SC_INTRAVISION:
case SC_ARMOR_ELEMENT:
//Place here SCs that have no SCB_* data, no skill associated, no ICON
//associated, and yet are not wrong/unknown. [Skotlex]
@@ -5704,7 +5707,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
if (calc_flag == SCB_NONE &&
StatusSkillChangeTable[type]==0 &&
StatusIconChangeTable[type]==0)
- { //Status change with no calc, and no skill associated...? unknown?
+ { //Status change with no calc, no icon, and no skill associated...?
if(battle_config.error_log)
ShowError("UnknownStatusChange [%d]\n", type);
return 0;