Browse Source

Fixed bug with hunter traps working on mobs when cast by other mobs, bugreport:5278

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15559 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 years ago
parent
commit
e6a3ba48be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/battle.c

+ 1 - 1
src/map/battle.c

@@ -4192,7 +4192,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
 			int inf2 = 0;
 			if (!su->group)
 				return 0;
-			if( battle_config.vs_traps_bctall &&
+			if( battle_config.vs_traps_bctall && (target->type&battle_config.vs_traps_bctall) &&
 				(inf2 = skill_get_inf2(su->group->skill_id))&INF2_TRAP &&
 					map_flag_vs(src->m) )
 				return 1;//traps may target everyone