The search keyword must be a single word (no spaces).
Function IsUnitGroupEmptyBJ
- Line
- 3679
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- group g
- Returns
- boolean
| 3679 | function IsUnitGroupEmptyBJ takes group g returns boolean |
| 3680 | // If the user wants the group destroyed, remember that fact and clear
|
| 3681 | // the flag, in case it is used again in the callback.
|
| 3682 | local boolean wantDestroy = bj_wantDestroyGroup |
| 3683 | set bj_wantDestroyGroup = false |
| 3684 | |
| 3685 | set bj_isUnitGroupEmptyResult = true |
| 3686 | call ForGroup(g, function IsUnitGroupEmptyBJEnum) |
| 3687 | |
| 3688 | // If the user wants the group destroyed, do so now.
|
| 3689 | if (wantDestroy) then |
| 3690 | call DestroyGroup(g) |
| 3691 | endif
|
| 3692 | return bj_isUnitGroupEmptyResult |
| 3693 | endfunction
|