Tom_Kazansky
--- wraith it ! ---
- Reaction score
- 157
JASS:
set tl = GetUnitLoc(c)
set i = 1
loop
exitwhen i > 3
set p = GetNearestUnit(tl, boolexpr ,aoe)
set d = CreateUnitAtLoc( GetOwningPlayer(c), 039;h006039;, tl, 0)
call UnitApplyTimedLife( d, 039;BTLF039;, 10)
call UnitAddAbility(d,039;A01T039;
call UnitAddAbility(d,039;Amrf039;)
call UnitRemoveAbility(d,039;Amrf039;)
call SetUnitFlyHeight(d,143,0)
call IssueTargetOrder( d, "acidbomb", p )
call Knife(d,p,dam,039;BNab039;)
set i = i + 1
endloop
call RemoveLocation(tl)
call DestroyGroup(g)
i set location tl on top of this loop and remove it after using in that loop
will this location leaks ?