Code: Select all
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Astral Imprisonment (boss)
Actions
Set Banish_caster = (Casting unit)
Set Banish_target = (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an ally of (Owner of Banish_caster)) Equal to True)))
Unit Group - Pick every unit in Banish_target and do (Actions)
Loop - Actions
Unit - Hide (Picked unit)
Unit - Pause (Picked unit)
Unit - Create 1 Troll Headhunter for (Triggering player) at (Position of (Picked unit)) facing Default building facing degrees
Wait 5.00 seconds
Unit Group - Pick every unit in Banish_target and do (Actions)
Loop - Actions
Unit - Unhide (Picked unit)
Unit - Unpause (Picked unit)
Unit Group - Pick every unit in (Units in (Entire map) matching ((Unit-type of (Matching unit)) Equal to Troll Headhunter)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game