From 127f9b52a4030a655564584b95b7c10dfdcb04e6 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 19 Mar 2015 13:33:42 -0300 Subject: Follow up 145a4fe644c4fe856ba6f83086e8ee5075caad99 Thanks to Mordekaiser for pointing this scenario to us. Signed-off-by: shennetsind --- src/map/battle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/battle.c') 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 ) -- cgit v1.2.3-60-g2f50