summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-17 06:01:15 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-17 06:01:15 +0000
commit8fd9120aab67440bc7148646ae064354c1067d35 (patch)
treeb9ad8a03cd78a8d97d79846523f3026e70eb801d /src/map/pc.c
parent3089bee74700694461fdc50bf9e9aa01fe589730 (diff)
downloadhercules-8fd9120aab67440bc7148646ae064354c1067d35.tar.gz
hercules-8fd9120aab67440bc7148646ae064354c1067d35.tar.bz2
hercules-8fd9120aab67440bc7148646ae064354c1067d35.tar.xz
hercules-8fd9120aab67440bc7148646ae064354c1067d35.zip
Fixed bugreport:5757 Added missing Sorcerer Insignias, Credits to brAthena
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16115 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a16befff0..a9597b11e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6758,17 +6758,21 @@ 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 ) {
+ if ( sd->sc.data[SC_CRITICALWOUND] ) {
+ hp -= hp * sd->sc.data[SC_CRITICALWOUND]->val2 / 100;
+ sp -= sp * sd->sc.data[SC_CRITICALWOUND]->val2 / 100;
+ }
- if (sd->sc.data[SC_CRITICALWOUND])
- {
- 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;
+ if ( sd->sc.data[SC_DEATHHURT] ) {
+ hp -= hp * 20 / 100;
+ sp -= sp * 20 / 100;
+ }
+
+ if( sd->sc.data[SC_WATER_INSIGNIA] && sd->sc.data[SC_WATER_INSIGNIA]->val1 == 2 ) {
+ hp += hp / 10;
+ sp += sp / 10;
+ }
}
return status_heal(&sd->bl, hp, sp, 1);