From 2f526028369f0fb0148ced3d9d6d6b970307421d Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Thu, 4 Jun 2009 22:46:14 +0000 Subject: * 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 --- src/map/map.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/map/map.c') 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); } } -- cgit v1.2.3-70-g09d2