I've noticed that even when you die, it doesn't really matter that much until the animation finishes. I was still spam clicking fireballs when I died when I heard the fireballs still being shot out. Furthermore I noticed that the unit I was looking at while dieing, would take damage too. I tried this a little bit later into the same game trying this, and indeed you can keep on shooting while your dead until you are moved into rts view. I would assume you can cast spells and roar while your dieing too. A sneaky little trivial bug... :3