Explorar o código

Update battle.c (#1850)

* Fixed Neutral Barrier not checking the target, instead of source, if attacks should hit.
naffej %!s(int64=8) %!d(string=hai) anos
pai
achega
da526d1982
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;