summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-03-19 13:33:42 -0300
committershennetsind <ind@henn.et>2015-03-19 13:33:42 -0300
commit127f9b52a4030a655564584b95b7c10dfdcb04e6 (patch)
treee813554080f4af050abc669854314c291d06fee2 /src/map/battle.c
parent12ce31d68bd5e040feefa5b096b7e30b8abaf88d (diff)
downloadhercules-127f9b52a4030a655564584b95b7c10dfdcb04e6.tar.gz
hercules-127f9b52a4030a655564584b95b7c10dfdcb04e6.tar.bz2
hercules-127f9b52a4030a655564584b95b7c10dfdcb04e6.tar.xz
hercules-127f9b52a4030a655564584b95b7c10dfdcb04e6.zip
Follow up 145a4fe644c4fe856ba6f83086e8ee5075caad99
Thanks to Mordekaiser for pointing this scenario to us. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battle.c')
-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 9def70dd7..e983eebc6 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6516,6 +6516,8 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
) {
if( t_bl->type == BL_PC && (sd->duel_group == ((TBL_PC*)t_bl)->duel_group) )
return (BCT_ENEMY&flag)?1:-1; // Duel targets can ONLY be your enemy, nothing else.
+ else if ( src->type != BL_SKILL || (flag&BCT_ENEMY) )
+ return 0;
}
}
if( map_flag_gvg(m) && !sd->status.guild_id && t_bl->type == BL_MOB && ((TBL_MOB*)t_bl)->class_ == MOBID_EMPERIUM )