summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-04 22:46:14 +0000
committerL0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-04 22:46:14 +0000
commit2f526028369f0fb0148ced3d9d6d6b970307421d (patch)
tree15a9ebe54f7f0d8e66f7f677e7626d983272e2d7 /src/map/map.c
parente1ae8412aea23d699a31116f4c677e8053ad03e3 (diff)
downloadhercules-2f526028369f0fb0148ced3d9d6d6b970307421d.tar.gz
hercules-2f526028369f0fb0148ced3d9d6d6b970307421d.tar.bz2
hercules-2f526028369f0fb0148ced3d9d6d6b970307421d.tar.xz
hercules-2f526028369f0fb0148ced3d9d6d6b970307421d.zip
* Updates to ST_PRESERVE and a few other minor details!
- Recasting Preserve no longer toggles the skill off while active. - Preserve is no longer saved on log-out or mapserver changes. * Added SC_CRITICALWOUND and SC_SLOWCAST to negative statuses not saved with battle_config.debuff_on_logout&1 * Implemented the skills NPC_HELLPOWER and NPC_WIDEHELLDIGNITY, as per my personal experiences with the skill on iRO. * Increased MAX_MOBSKILLS to 50, as Satan Morroc has over 40 active skills now. * Added skill information for NPC_HELLPOWER and NPC_WIDEHELLDIGNITY, and enabled skills in mob_skill_db. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13843 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index acf203615..65e22fe48 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1559,6 +1559,11 @@ int map_quit(struct map_session_data *sd)
//TO-DO Probably there are way more NPC_type negative status that are removed
if(sd->sc.data[SC_CHANGEUNDEAD])
status_change_end(&sd->bl,SC_CHANGEUNDEAD,-1);
+ // Both these statuses are removed on logout. [L0ne_W0lf]
+ if(sd->sc.data[SC_SLOWCAST])
+ status_change_end(&sd->bl,SC_SLOWCAST,-1);
+ if(sd->sc.data[SC_CRITICALWOUND])
+ status_change_end(&sd->bl,SC_CRITICALWOUND,-1);
}
if (battle_config.debuff_on_logout&2)
{
@@ -1568,6 +1573,8 @@ int map_quit(struct map_session_data *sd)
status_change_end(&sd->bl,SC_MAXOVERTHRUST,-1);
if(sd->sc.data[SC_STEELBODY])
status_change_end(&sd->bl,SC_STEELBODY,-1);
+ if(sd->sc.data[SC_PRESERVE])
+ status_change_end(&sd->bl,SC_PRESERVE,-1);
}
}