afisakov
You can change this now in User CP.
- Reaction score
- 37
would calling unit u cause a leak that needs to be cleaned up?
Tried to only include the relevant code.
Also, does the wait create a risk of desync?
Code:
function CD_atk takes unit u returns nothing
call GroupAddUnitSimple(u, udg_CoolingDown)
call PolledWait(0.3)
call GroupRemoveUnitSimple(u, udg_CoolingDown)
endfunction
...
call CD_atk(GetAttacker())
Also, does the wait create a risk of desync?