浏览代码

Update battle.c (#1850)

* Fixed Neutral Barrier not checking the target, instead of source, if attacks should hit.
naffej 8 年之前
父节点
当前提交
da526d1982
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/battle.c

+ 1 - 1
src/map/battle.c

@@ -2471,7 +2471,7 @@ static bool is_attack_hitting(struct Damage wd, struct block_list *src, struct b
 	else if (nk&NK_IGNORE_FLEE)
 		return true;
 
-	if( sc && sc->data[SC_NEUTRALBARRIER] && (wd.flag&(BF_LONG|BF_MAGIC)) == BF_LONG )
+	if( tsc && tsc->data[SC_NEUTRALBARRIER] && (wd.flag&(BF_LONG|BF_MAGIC)) == BF_LONG )
 		return false;
 
 	flee = tstatus->flee;