event: a unit finishes the effect of an ability
conditon ability being cast = to (ability name)
actions Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Triggering unit) has buff (buff)) Equal to True) and (((Owner of (Matching unit)) is an ally of (Owner of (Triggering unit))) Equal to False))) and do (Actions)
Loop - Actions
For each (Integer A) from 1 to 1000, do (Actions)
Loop - Actions
Visibility - Disable (Last created visibility modifier)
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Position of (Picked unit)) to a radius of 700.00
Wait 0.01 seconds