summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-11 20:07:58 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-11 20:07:58 +0000
commit428a700c098bce303bbfe1278ab0802299765c4c (patch)
treeb89db708ee910a3d36c3567025664a8b3913e5e3 /src/map
parent3629f7531140f7819e9327b80c8e70dea0905047 (diff)
downloadhercules-428a700c098bce303bbfe1278ab0802299765c4c.tar.gz
hercules-428a700c098bce303bbfe1278ab0802299765c4c.tar.bz2
hercules-428a700c098bce303bbfe1278ab0802299765c4c.tar.xz
hercules-428a700c098bce303bbfe1278ab0802299765c4c.zip
added drain support to royal guard reflect damage skill, bugreport:5320
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15567 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index ebea3a44f..cbf0610ef 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3733,6 +3733,8 @@ int battle_damage_area( struct block_list *bl, va_list ap) {
return 0;
if( bl != src && battle_check_target(src,bl,BCT_ENEMY) > 0 ) {
map_freeblock_lock();
+ if( src->type == BL_PC )
+ battle_drain((TBL_PC*)src, bl, damage, damage, status_get_race(bl), is_boss(bl));
if( amotion )
battle_delay_damage(tick, amotion,src,bl,0,CR_REFLECTSHIELD,0,damage,ATK_DEF,0);
else