summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 0f69486a9..098c0ca94 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5403,6 +5403,13 @@ int pc_itemheal(struct map_session_data *sd,int itemid, int hp,int sp)
if(bonus != 100)
sp = sp * bonus / 100;
}
+
+ if (sd->sc.count && sd->sc.data[SC_CRITICALWOUND].timer!=-1)
+ {
+ hp -= hp * sd->sc.data[SC_CRITICALWOUND].val2 / 100;
+ sp -= sp * sd->sc.data[SC_CRITICALWOUND].val2 / 100;
+ }
+
return status_heal(&sd->bl, hp, sp, 1);
}