There's currently a bug with improved abilities, but other than that, it should be figuring out what are the X most expensive powers from among the list it's allowed to discount, and applying the discount to those powers. I figured that would be easier than making users manually select the X powers that are most expensive.