CreepAttackEx
- comment
- bug
Leaks handle
target: In Jass you must set local variables that hold handles (or any child type) tonullat the end of functions to avoid leaks.- patch
1.07
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
function CreepAttackEx takes nothing returns nothing local unit target = GetCreepCamp(min_creeps,max_creeps,allow_air_creeps) call SetAllianceTarget(target) call FormGroup(3,true) call AttackMoveKillA(target) endfunction