It’s for the king but that guy with his inferiority complex ruined the actual plan by throwing that stone and killing the guard. The drum signals were misted up, the king was probably approaching but because of the commotion the assassins most likely believed the doctor was the target.
Wait, the doctor was the target and not the King? I am confused.