Fixed more things in npcs AI.

Signed-off-by: Zyk <zyk6870@gmail.com>