- Joined
- Oct 4, 2011
- Messages
- 226
no unitgroup leak, idk what else thanks guys. I thought maybe the Casting unit would leak so i did call RemoveUnit(udg_etc... and realized that removes unit from game so i figured that doesnt leak?
-
Goo and Bugs
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Goo and Bugs (Crypt fiend)
-
Actions
- Set CarrionSwarm_CasterUnit = (Casting unit)
- Set CarrionSwarm_UnitGroup = (Units within 425.00 of (Target point of ability being cast) matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and (((Matching unit) is A structure) Equal to False)))
-
Unit Group - Pick every unit in CarrionSwarm_UnitGroup and do (Actions)
-
Loop - Actions
- Unit - Set (Picked unit) movement speed to ((Default movement speed of (Picked unit)) x 0.20)
-
Loop - Actions
- Wait 3.00 seconds
-
Unit Group - Pick every unit in CarrionSwarm_UnitGroup and do (Actions)
-
Loop - Actions
- Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
- Unit - Cause CarrionSwarm_CasterUnit to damage (Picked unit), dealing 50.00 damage of attack type Spells and damage type Normal
-
Loop - Actions
- Custom script: call DestroyGroup(udg_CarrionSwarm_UnitGroup)
-
Events