Destroy N permanents (r19700)

I've added a common routine for AI and Human to gather all permenents before actually destroying them.
Previously it started a loop from 1 to amount and sac'd units inside that loop. Now there are separate loops for selection and execution.
So I've some questions about selecting permanents:
* Are undestructable permanents valid targets for 'destroy' api?
* Should sacrifice targets be selected when "opponent's abilities cannot make you sac permanents" is in effect?
Also open for comments and opinions on that revision.
Previously it started a loop from 1 to amount and sac'd units inside that loop. Now there are separate loops for selection and execution.
So I've some questions about selecting permanents:
* Are undestructable permanents valid targets for 'destroy' api?
* Should sacrifice targets be selected when "opponent's abilities cannot make you sac permanents" is in effect?
Also open for comments and opinions on that revision.