diff options
Diffstat (limited to 'npc')
-rwxr-xr-x | npc/functions/default_npc_checks.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/default_npc_checks.txt b/npc/functions/default_npc_checks.txt index 594f56af..4dc1c1f5 100755 --- a/npc/functions/default_npc_checks.txt +++ b/npc/functions/default_npc_checks.txt @@ -5,7 +5,7 @@ function script PCtoNPCRange { if(@npc_distance < 0) set @npc_distance, ATTACKRANGE; .@x=getvariableofnpc(.x, strnpcinfo(0)); .@y=getvariableofnpc(.y, strnpcinfo(0)); - if (!isin(getmap(), .@x, .@y, @npc_distance)) + if (isin(getmap(), .@x, .@y, @npc_distance)) goto L_Return; @npc_check = 1; if(@distance_handler) goto L_Return; |