GetPlayerAlliance
- Parameters
sourcePlayer playerotherPlayer playerwhichAllianceSetting alliancetype- 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 (suggest an edit or discuss on Github)
- return type
boolean- Source code
constant native GetPlayerAlliance takes player sourcePlayer, player otherPlayer, alliancetype whichAllianceSetting returns boolean