summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-29 20:51:38 +0000
committerrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-29 20:51:38 +0000
commit2eec605a3bbdf6ec0292e97692b2ffb8790ab227 (patch)
tree158e232a33c696d0008b91a0e1fbf0329f531be8 /src/map/pc.c
parent6bd3d89c6e4cda9aba52ec2c6774a2e90f9d47f4 (diff)
downloadhercules-2eec605a3bbdf6ec0292e97692b2ffb8790ab227.tar.gz
hercules-2eec605a3bbdf6ec0292e97692b2ffb8790ab227.tar.bz2
hercules-2eec605a3bbdf6ec0292e97692b2ffb8790ab227.tar.xz
hercules-2eec605a3bbdf6ec0292e97692b2ffb8790ab227.zip
Fixed bugreport:6074 updated Renewal Def and MDef damage reduction formula. Special thanks to KyleZ.
Fixed bugreport:7028 where damage bonus of SR_GATEOFHELL has interchange with normal damage bonus. Fixed bugreport:6946 where CH_PALMSTRIKE causes damage when caster hides after casting. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17062 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 1f7697b0d..c7c9d7114 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2057,8 +2057,12 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
break;
case SP_BASE_ATK:
if(sd->state.lr_flag != 2) {
+//#ifdef RENEWAL
+// sd->bonus.eatk += val;
+//#else
bonus = status->batk + val;
status->batk = cap_value(bonus, 0, USHRT_MAX);
+//#endif
}
break;
case SP_DEF1:
@@ -2592,7 +2596,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
if(sd->state.lr_flag != 2)
sd->bonus.itemhealrate2 += val;
break;
- case SP_EMATK:
+ case SP_EMATK:
if(sd->state.lr_flag != 2)
sd->bonus.ematk += val;
break;