fully separate player and npc section in dsentry_task_attack

with <util,,,,,,is_valid> checks for each section.