@Uncle
I was testing this a lot last night, here is my report.
For whatever reason, at first it did not work despite I payed high attention to adjust your trigger with every detail needed (my spell, unit, etc). And I did check it multiple times.
Or there was something missing, or I missed something which would be no suprise as I'm still novice.
Than, I created new trigger, using parts of yours, which is, lets say lot more simplified. This may be far from perfect but I will tell you how I did it. As Event it starts as "unit attacked owned by player (me)".
Than there is number of conditions where I used a lot from your trigger, in addition to some of my (I also solved that she is not casting it over and over to attacked unit, with check does attacked unit already have Frost Armor buff). It ends with only one Action, and that is same as in your trigger - Order "my specific unit" to use Frost Armor on attacked unit.
And it worked. Soon I add mentined check does attacked unit already have buff, check mana of caster. Than I started playing with aquistion range, range, spell cast range (frost armor) and distance range set in trigger to check for attacked unit. Playing with that I managed to make it working pretty well.
Now she is definitely covering army around with frost armor wayyyyyyyy better than it was with normal auto-cast (which is limited for some AI reason to I think around 600).
Only bad thing is this, once she cast by this trigger Frost Armor, her previous attack move with group is canceled. And it have logic, it would be same for any unit, if you manually (and by trigger, it is actually manually cast, not auto-cast) cast spell like that, unit would stop previous movement. This is not perfect thing as if group is ordered into some area, she will stop and stay behind. I have no idea was this solved in your trigger, as I could not make your trigger to work.
Also I have to report. Trigger to toggle with "frostarmoron and frostarmoroff" works without issue. It is Lich Frost Armor Advanced trigger one which I could not get to work.
Another thing to report, about conditions in your trigger (I moved them to my), is check CurrentOrder of "my unit" Not Equal to Order(move), (smart), (patrol).
Move works fine, if she is ordered to move she will ignore all of that and won't cast frost armor.
I have no idea what "smart" order is ???
Patrol doesn't work (but it is not problem) simply. If she is on patrol, it is same as if she is on Attack move to some point around - she will cast Frost Armor (if needed).
If you think we need to check your trigger, or one which I created later which works for me (if anything like her resuming previous attack move command could really work), let me know. We can check it together and I would test it further.
----------------------------------
I was working on this whole night, it took time really until I get some good results which works. But today, I see that strings in my custom campaign (which include lot of maps) are lost and become TRIGSTR_(whatever number). It did not effect any text in quest, hint etc messages in triggers, but affected every custom unit, spell, buff, upgrade, anything I modified. And I did a lot (only for units I have exactly 70 custom spells). This is very custmised campaign. Well not everything is lost, I can manually rewrite all it again, at cost of one day or even two.
I did take a look around and found also some other users run into this problem, but I did not found that anyone have ultimate solution, nor anyone knows what is exact reason to cause this. People say backup, and probably that is best advice for me from now on. For backup, is it enough to copy/paste my campaign to some other place on PC ? It it is, that it would be ok for me, as when I work I work for long, so I would rather copy paste 15 times instead of working ton of work again because of not regulary updated backup.
Just to ask for any case? Could this playing with trigger caused this? As I remember, when I worked on it yesteday, I was looking also at custom abilities and there was no TRIGSTR_. It seems to appeared today. So I doubt it have anything with trigger, but let me know if you suspect it, I need to know in case I make some mistake, so I can avoid it in future.
Also, I was notified today that update for WC3R is needed, and I did it. It solved nothing about this. I suspect also that update maybe, can be reason for this string mess.
Looking forward to your opinion and suggestions. Thx