Modularity is the word of the day IMHO, to that end here was my suggestion (cribbed from earlier postings).
Give certain spells/abilities keywords, like Death, Petrification, etc, those keywords would dictate things like how they interact with certain defenses or how they are recovered from...