summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-09 17:56:25 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-09 17:56:25 -0600
commit2d8ff1ae3793baa259b907b4a4b86230a725153b (patch)
treed12ed635b40ca7c67a898b29f1ad6f509fa53a5f /src/map/pc.c
parente85c0be8c1b7004c56e40b2ddf10d3717fbbdfa8 (diff)
downloadtmwa-2d8ff1ae3793baa259b907b4a4b86230a725153b.tar.gz
tmwa-2d8ff1ae3793baa259b907b4a4b86230a725153b.tar.bz2
tmwa-2d8ff1ae3793baa259b907b4a4b86230a725153b.tar.xz
tmwa-2d8ff1ae3793baa259b907b4a4b86230a725153b.zip
Add healing effect when under item healing
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 6bc2ddd..afc4a20 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5469,7 +5469,7 @@ int pc_itemheal(struct map_session_data *sd,int hp,int sp)
pc_heal_quick_accumulate(hp,
&sd->quick_regeneration_hp,
sd->status.max_hp - sd->status.hp);
-
+ clif_status_change(&sd->bl, SC_HEALING, 1);
hp = 0;
}
if (sp > 0) {
@@ -7080,10 +7080,10 @@ static int pc_natural_heal_sub(struct map_session_data *sd,va_list ap) {
int hp_bonus = pc_quickregenerate_effect(&sd->quick_regeneration_hp, sd->nhealhp);
int sp_bonus = pc_quickregenerate_effect(&sd->quick_regeneration_sp, sd->nhealsp);
- pc_itemheal_effect(sd,
- hp_bonus,
- sp_bonus);
- }
+ pc_itemheal_effect(sd, hp_bonus, sp_bonus);
+ } else if (!sd->quick_regeneration_hp.amount) {
+ clif_status_change(&sd->bl, SC_HEALING, 0);
+ }
// -- moonsoul (if conditions below altered to disallow natural healing if under berserk status)
if ((sd->sc_data[SC_FLYING_BACKPACK].timer != -1