modified the bug if in get attacker input script

now sleeps only if the if tested false