I would like to know how you detect when an ability is turned off because of lack of mana (base spell immolation). I know how you detect when it is turned off the regular way, so don't tell me to do a trigger with the event: a unit is issued an order with no target, and the condition: issued order equal to unimmolation.
When it's turned off, even automatically, its deactivation order should still be sent. So, assuming you're using immolation, detecting an unimmolation order SHOULD theoretically work.