fix bug of npc not affected by fighting with pc