fix wrong condition for valid target for friend random range
save user's choice for proc order and debug mode