added attackpower to check for npcs