Managed to find an npc where it didn't attack through walls and it's pretty clear how to fix.