My AI still sees my other AI despite the AI being behind a wall? Help

So I’m making a stealth game where you can stealth knock out people, And I made it so that if another AI saw the other knocked out AI it’ll print string saying “It saw it“ or something like that.

And It’s working well. But here’s where the issue comes in. When I drag the other AI behind like a wall in another room behind a blind spot, the other AI still somehow sees the knocked-out AI, despite It being in a whole different room, behind like a corner which shouldn’t be able to be spotted.

Here’s some screenshots of the room and the code: