summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-04 05:46:00 +0000
committerxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-04 05:46:00 +0000
commitca6e392f184c64701f6b1d99f5a47cf6c3d81a22 (patch)
tree098b03abb777e816028c9e1e2270a392e6c33c9a /src/map/pc.c
parent87cd1ffa303774588be237e68f82b43532452ec2 (diff)
downloadhercules-ca6e392f184c64701f6b1d99f5a47cf6c3d81a22.tar.gz
hercules-ca6e392f184c64701f6b1d99f5a47cf6c3d81a22.tar.bz2
hercules-ca6e392f184c64701f6b1d99f5a47cf6c3d81a22.tar.xz
hercules-ca6e392f184c64701f6b1d99f5a47cf6c3d81a22.zip
` Fixed Guillotine Cross Poisons (bugreport:5275)
-- Paralyze decreases attack speed, flee, and movement speed -- Death Hurt decreases the effectiveness of recovery -- Venom Bleed reduces max HP -- Oblivion Curse blocks natural SP recovery and skill use is denied ` Updated const.txt with the latest (renewal) statuses (SC_) values git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15539 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index abdaf6671..bbd6c3da9 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6570,6 +6570,12 @@ int pc_itemheal(struct map_session_data *sd,int itemid, int hp,int sp)
hp -= hp * sd->sc.data[SC_CRITICALWOUND]->val2 / 100;
sp -= sp * sd->sc.data[SC_CRITICALWOUND]->val2 / 100;
}
+
+ if (sd->sc.data[SC_DEATHHURT])
+ {
+ hp -= hp * 20 / 100;
+ sp -= sp * 20 / 100;
+ }
return status_heal(&sd->bl, hp, sp, 1);
}