summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 4a81fcb05..46f6d265d 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1867,6 +1867,9 @@ int status_check_visibility(struct block_list *src, struct block_list *target) {
if (src->m != target->m || !check_distance_bl(src, target, view_range))
return 0;
+ if( src->type == BL_NPC ) /* NPCs don't care for the rest */
+ return 1;
+
if( ( tsc = status->get_sc(target) ) ) {
struct status_data *st = status->get_status_data(src);