Another thing that springs to mind here is the Oangband monster spell "dispel magic", which removes player buffs - haste, blessing, etc. Having diesenchantment preferentially do this, and then move on to player equipment if there were no more buffs, is a possibility. Or do one of those at random.
Or both at once
Or both at once
Comment