It's a instance based map, as it's a boss that casts this ability, it's supposed to be cast (instant) on a enemy unit (in this case, a player [user]). Sorry, I forgot details![]()
i wouldn't say it's instant...on an enemy unit
shouldn't it be
since the way you do it, you only clear the group assigned to the variable TempGroup but it still stays in the memory as a blank group, so it leaks... you only use clear if you add units to a global group, but your method creates a new group everytime and assigns it to the variable TempGroup, so you need to destroy them after use...
Custom script: call DestroyGroup(udg_TempGroup)