They should drain skills / spells randomly. At the moment they seem to
drain the skill/spell with highest %, and the most expensive one of
those. (Might be they just pick the most expensive one).
Currently one skilldrain can drain easily 20m worth of exp (last 5% of
the most expensive skill you (over)trained). For one spell that can be
cast by a 100k undead, this seems totally too harsh. Especially for
people who don't like to reinc as often as I do.
Also, if the skill is expensive enough, the amount drained shouldn't
ever be more than one. Even partial drains should be considered (4m
skill, skilldrain makes it partially trained, by some random amount
(1d20*100k, or whatever seems suitable).