function GroupRemoveGroup takes group sourceGroup,group destGroup returns nothing
local boolean wantDestroy = bj_wantDestroyGroup
set bj_wantDestroyGroup = false
set bj_groupRemoveGroupDest = destGroup
call ForGroup(sourceGroup, function GroupRemoveGroupEnum)
if (wantDestroy) then
call DestroyGroup(sourceGroup)
endif
endfunction
function GroupRemoveGroupEnum takes nothing returns nothing
call GroupRemoveUnit(bj_groupRemoveGroupDest, GetEnumUnit())
endfunction