summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authormarkzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-20 01:03:42 +0000
committermarkzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-12-20 01:03:42 +0000
commit300f20998ac8012373024b3a3d7d88b80de7e040 (patch)
treee9a1df823b3fe142cb158f64ee4d68b9f416915c /src/map/pc.c
parent6b5b18378c89aa875c98e8323082856ec49c127f (diff)
downloadhercules-300f20998ac8012373024b3a3d7d88b80de7e040.tar.gz
hercules-300f20998ac8012373024b3a3d7d88b80de7e040.tar.bz2
hercules-300f20998ac8012373024b3a3d7d88b80de7e040.tar.xz
hercules-300f20998ac8012373024b3a3d7d88b80de7e040.zip
* Follow up r16676
1. Fixed a behavior which allowed devotion to be bypassed when the caster was under Reflect Damage Buff. 2. Fixed the reflected magic damage to always hit the target and not the paladin when it's not reflected by kaite. - Implemented bonus2 bMagicAtkEle which increases/decreases the caster magic damage based on its element.(bugreport:6943) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17030 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a4796e347..cf62c7dc8 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2700,6 +2700,10 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val)
if(sd->state.lr_flag != 2)
sd->magic_addsize[type2]+=val;
break;
+ case SP_MAGIC_ATK_ELE:
+ if(sd->state.lr_flag != 2)
+ sd->magic_atk_ele[type2]+=val;
+ break;
case SP_ADD_DAMAGE_CLASS:
switch (sd->state.lr_flag) {
case 0: //Right hand