So as the title suggest i've had trouble of making AI cast custom spells.The custom spell im using for my map is "Ancestral Spirit".Pretty much the shame thing just a diffrent name and less mana cost,so if anyone knows how to make the AI cast it using triggers i could use some help,this is as far as i got but it doesn't work:
Events
Unit-A unit dies
Conditions
(Unit type of(Dying unit)) equal to tauren
Action
Unit-Order (Random unit from (Units owned by player 9 (Gray))) to Orc spirit walker - Ancestral Spirit
Events
Unit-A unit dies
Conditions
(Unit type of(Dying unit)) equal to tauren
Action
Unit-Order (Random unit from (Units owned by player 9 (Gray))) to Orc spirit walker - Ancestral Spirit