소스 검색

minor performance improvement for users with battle_config.ksprotection disabled.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15855 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 년 전
부모
커밋
6b4d673359
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/map/battle.c

+ 1 - 1
src/map/battle.c

@@ -333,7 +333,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damag
 
 	if( !damage )
 		return 0;
-	if( mob_ksprotected(src, bl) )
+	if( battle_config.ksprotection && mob_ksprotected(src, bl) )
 		return 0;
 
 	if (bl->type == BL_PC) {