The search keyword must be a single word (no spaces).

Function GetRandomSubGroupEnum

Line
4941
Location
blizzard.j
Constant?
no
Type
function
Arguments
nothing
Returns
nothing
4941
function GetRandomSubGroupEnum takes nothing returns nothing
4942
    if (bj_randomSubGroupWant > 0) then
4943
        if (bj_randomSubGroupWant >= bj_randomSubGroupTotal) or (GetRandomReal(0,1) < bj_randomSubGroupChance) then
4944
            // We either need every remaining unit, or the unit passed its chance check.
4945
            call GroupAddUnit(bj_randomSubGroupGroup, GetEnumUnit())
4946
            set bj_randomSubGroupWant = bj_randomSubGroupWant - 1
4947
        endif
4948
    endif
4949
    set bj_randomSubGroupTotal = bj_randomSubGroupTotal - 1
4950
endfunction

Information about GetRandomSubGroupEnum

You must be logged in with a standard account to contribute.