GetPlayerAlliance

Parameters
sourcePlayerplayer
otherPlayerplayer
whichAllianceSettingalliancetype
comment
bug

(v2.0.4.23745) Passing nil as otherPlayer crashes the game (might happen if you try getting the owning player of a unit that doesn't exist). Passing nil as sourcePlayer works.

patch

1.00

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
boolean
Source code
constant native GetPlayerAlliance       takes player sourcePlayer, player otherPlayer, alliancetype whichAllianceSetting returns boolean