summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-15 19:48:00 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-15 19:48:00 +0000
commit6fdd12e9c652fd800ad40d91f5f32553814aa65e (patch)
treee2f3bac6db9c875cd81bc86888e15d73f8d67690 /src/map/status.c
parentf70901acd8144f851b033852ab3ff086edf30497 (diff)
downloadhercules-6fdd12e9c652fd800ad40d91f5f32553814aa65e.tar.gz
hercules-6fdd12e9c652fd800ad40d91f5f32553814aa65e.tar.bz2
hercules-6fdd12e9c652fd800ad40d91f5f32553814aa65e.tar.xz
hercules-6fdd12e9c652fd800ad40d91f5f32553814aa65e.zip
- Reverted the Summon Flora change where all plants were being summoned in one go.
- Removed some redundant code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8772 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 6f17719a8..c314c824b 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2067,7 +2067,6 @@ int status_calc_pc(struct map_session_data* sd,int first)
if(status->speed < battle_config.max_walk_speed)
status->speed = battle_config.max_walk_speed;
-
// ----- HIT CALCULATION -----
// Absolute modifiers from passive skills
@@ -3030,16 +3029,12 @@ void status_calc_bl(struct block_list *bl, unsigned long flag)
if(flag&SCB_MAXHP) {
status->max_hp = status_calc_maxhp(bl, sc, b_status->max_hp);
- if (status->max_hp < 1)
- status->max_hp = 1;
if (status->hp > status->max_hp) //FIXME: Should perhaps a status_zap should be issued?
status->hp = status->max_hp;
}
if(flag&SCB_MAXSP) {
status->max_sp = status_calc_maxsp(bl, sc, b_status->max_sp);
- if (status->max_sp < 1)
- status->max_sp = 1;
if (status->sp > status->max_sp)
status->sp = status->max_sp;
}