...Yeah, I've looked into that, too. ^^; The Demilich is explicitly described as using its Harm SLA to heal itself in its entry.  The most commonly-agreed-upon solution I've found from looking around is that Magic Immunity is intended to work like Spell Resistance in at least one way:<br/><br/><div class="quoteheader"><div class="topslice_quote">Quote</div></div><blockquote class="bbc_standard_quote">A creature’s spell resistance never interferes with its own spells, items, or abilities.</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div><br/>Otherwise, Demilich would also be immune to her own Phylactery Transference and Damage Reduction abilities, too.  And that would just be silly.