GetPlayersAllies

Parameters
whichPlayerplayer
comment
bug

Leaks handle f: In Jass you must set local variables that hold agents (or any child type) to null at the end of functions to avoid reference counter leaks.

note

Creates a new force object and returns it. The caller must remove it on its own after use.

patch

1.00

Source
Blizzard.j (raise an issue to discuss on Github or submit a PR)
return type
force
Source code
function GetPlayersAllies takes player whichPlayer returns force
    local force f = CreateForce()
    call ForceEnumAllies(f, whichPlayer, null)
    return f
endfunction