diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-22 19:14:42 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-22 19:14:42 +0000 |
commit | 1f9c70b90fa41a531dd1dfbd386c3b576d770e97 (patch) | |
tree | d8e3f198e67500d1a7bbf56e4825e34adc1fe692 /src/map/unit.c | |
parent | e828c8642a637a3e3f63450b75ebc93f2bd4bce4 (diff) | |
download | hercules-1f9c70b90fa41a531dd1dfbd386c3b576d770e97.tar.gz hercules-1f9c70b90fa41a531dd1dfbd386c3b576d770e97.tar.bz2 hercules-1f9c70b90fa41a531dd1dfbd386c3b576d770e97.tar.xz hercules-1f9c70b90fa41a531dd1dfbd386c3b576d770e97.zip |
- Removed the include of features.h from the console.c plugin. It is apparently not needed (and it was preventing compilation on FreeBSD)
- Fixed bug which totally broke item group bonuses.
- Added warnings when setting a pvp/gvg flag removes the other flags on the same map (gvg and pvp can't coexist on the same map)
- Optimized the unequip loop when changing sex.
- Removed the check that prevented you from casting soul-collect when you already have 5 spirits.
- Corrected Magic Rod so it doesn't displays any skill-use animation until it triggers.
- Debuff on logout&2 is again set to default, instead of removing food bonuses now it removes Maximize Power, Maximum Overthrust and Steel Body.
- Corrected Steel Body's icon (it actually belongs to AutoBerserk)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10317 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 1e152b24a..182133f9b 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1787,28 +1787,12 @@ int unit_free(struct block_list *bl, int clrtype) { } if (battle_config.debuff_on_logout&2) { //Food items are removed on logout. - if(sd->sc.data[SC_STRFOOD].timer!=-1) - status_change_end(bl,SC_STRFOOD,-1); - if(sd->sc.data[SC_AGIFOOD].timer!=-1) - status_change_end(bl,SC_AGIFOOD,-1); - if(sd->sc.data[SC_VITFOOD].timer!=-1) - status_change_end(bl,SC_VITFOOD,-1); - if(sd->sc.data[SC_INTFOOD].timer!=-1) - status_change_end(bl,SC_INTFOOD,-1); - if(sd->sc.data[SC_DEXFOOD].timer!=-1) - status_change_end(bl,SC_DEXFOOD,-1); - if(sd->sc.data[SC_LUKFOOD].timer!=-1) - status_change_end(bl,SC_LUKFOOD,-1); - if(sd->sc.data[SC_HITFOOD].timer!=-1) - status_change_end(bl,SC_HITFOOD,-1); - if(sd->sc.data[SC_FLEEFOOD].timer!=-1) - status_change_end(bl,SC_FLEEFOOD,-1); - if(sd->sc.data[SC_BATKFOOD].timer!=-1) - status_change_end(bl,SC_BATKFOOD,-1); - if(sd->sc.data[SC_WATKFOOD].timer!=-1) - status_change_end(bl,SC_WATKFOOD,-1); - if(sd->sc.data[SC_MATKFOOD].timer!=-1) - status_change_end(bl,SC_MATKFOOD,-1); + if(sd->sc.data[SC_MAXIMIZEPOWER].timer!=-1) + status_change_end(bl,SC_MAXIMIZEPOWER,-1); + if(sd->sc.data[SC_MAXOVERTHRUST].timer!=-1) + status_change_end(bl,SC_MAXOVERTHRUST,-1); + if(sd->sc.data[SC_STEELBODY].timer!=-1) + status_change_end(bl,SC_STEELBODY,-1); } } if (sd->followtimer != -1) |