summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-25 16:24:25 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-25 16:24:25 +0000
commit685eebb38664db365324b0ab8375b08df4e74c3c (patch)
treeb6a1c57def55f7bcb1cdfc5ef80be460df1e3a18 /src/map/pc.c
parent3b580431e8bd0adec1c8fa87abbc2e3c75f3faca (diff)
downloadhercules-685eebb38664db365324b0ab8375b08df4e74c3c.tar.gz
hercules-685eebb38664db365324b0ab8375b08df4e74c3c.tar.bz2
hercules-685eebb38664db365324b0ab8375b08df4e74c3c.tar.xz
hercules-685eebb38664db365324b0ab8375b08df4e74c3c.zip
Added new bonus for RE cards 'bonus bWeaponMatk,<value>;'
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15269 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 1110aba09..e6aa488bc 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2346,7 +2346,7 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
break;
case SP_ADD_HEAL_RATE:
if(sd->state.lr_flag != 2)
- sd->add_heal_rate += val;
+ sd->sp_weapon_matk += val;
break;
case SP_ADD_HEAL2_RATE:
if(sd->state.lr_flag != 2)
@@ -2356,6 +2356,10 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
if(sd->state.lr_flag != 2)
sd->itemhealrate2 += val;
break;
+ case SP_WEAPON_MATK:
+ if(sd->state.lr_flag != 2)
+ sd->sp_weapon_matk += val;
+ break;
default:
ShowWarning("pc_bonus: unknown type %d %d !\n",type,val);
break;