AnyPlayerAttack
- comment
- bug
Leaks handle
hall: In Jass you must set local variables that hold handles (or any child type) tonullat the end of functions to avoid leaks.- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
function AnyPlayerAttack takes nothing returns nothing local unit hall set hall = GetEnemyExpansion() if hall == null then call StartGetEnemyBase() loop exitwhen not WaitGetEnemyBase() call SuicideSleep(1) endloop set hall = GetEnemyBase() endif call SetAllianceTarget(hall) call FormGroup(3,true) call AttackMoveKillA(hall) endfunction