summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-03 23:02:55 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-03 23:02:55 +0000
commit56d45e029ebc3e406fd1fce37790d2d72dac6536 (patch)
tree9468c27352f73e9186620adbba3e17c07c70f7b1 /src/map/status.c
parentbd3a5a73ae175a4bbb6095b1fda3266433ac5803 (diff)
downloadhercules-56d45e029ebc3e406fd1fce37790d2d72dac6536.tar.gz
hercules-56d45e029ebc3e406fd1fce37790d2d72dac6536.tar.bz2
hercules-56d45e029ebc3e406fd1fce37790d2d72dac6536.tar.xz
hercules-56d45e029ebc3e406fd1fce37790d2d72dac6536.zip
- Made regen work always, like Hp/Sp Loss, it no longer displays healing numbers as well.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11118 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7fe903c2d..226cad91e 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -7133,8 +7133,12 @@ static int status_natural_heal(DBKey key,void * data,va_list ap)
))
flag=0;
- if (sd && (sd->hp_loss.value || sd->sp_loss.value))
+ if (sd) {
+ if (sd->hp_loss.value || sd->sp_loss.value)
pc_bleeding(sd, natural_heal_diff_tick);
+ if (sd->hp_regen.value || sd->sp_regen.value)
+ pc_regen(sd, natural_heal_diff_tick);
+ }
if(flag&(RGN_SHP|RGN_SSP) && regen->ssregen &&
(vd = status_get_viewdata(bl)) && vd->dead_sit == 2)
@@ -7237,10 +7241,6 @@ static int status_natural_heal(DBKey key,void * data,va_list ap)
}
}
- //Bonus skill-like regen
- if (sd && (sd->hp_regen.value || sd->sp_regen.value))
- pc_regen(sd, natural_heal_diff_tick, (flag&RGN_SHP?1:0)|(flag&RGN_SSP?2:0));
-
if (!regen->sregen)
return flag;