I like this very very much. keep the cool spells rolling...
For each (Interger i) from 1 to 18, do (Actions)
You put 17. And in the removing part of the trigger
Unit - Remove unit[i]
You left it as 5 for some reason. Thx though, I'm still trying to work out why the bug appears.
Unit - Create 1 Portal for Player 1 (Red) at ((Position of target) offset by 500.00 towards 0.00 degrees) facing (Position of target)
Set unit[1] = (Last created unit)
Unit - Order unit[1] to Neutral - Firebolt target
Wait 0.01 seconds
So many times do this(first make an integer global,"i" for instance):
For each (Integer i) from 1 to 17, do (Actions)
Loop - Actions
Unit - Create 1 Portal for Player 1 (Red) at ((Position of target) offset by 500.00 towards ((360.00 / (Real(18))) x (Real(i))) degrees) facing (Position of target)
Set unit[i] = (Last created unit)
Unit - Order unit[i] to Neutral - Firebolt target
Wait 0.00 seconds
Wait 0.83 seconds
For each (Integer i) from 1 to 17, do (Actions)
Loop - Actions
Unit - Remove unit[5] from the game
Wait 0.00 seconds