Warlock skills, switch target after n dots

Is there any way to have this function turned on and have the bot use the mini nukes when attacking a mob stronger than a giant?