Skip to content

Commit

Permalink
common.j: Fix doc order of SetPlayerAlliance
Browse files Browse the repository at this point in the history
  • Loading branch information
Luashine authored and lep committed Nov 20, 2023
1 parent 3c58e79 commit dd193cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions common.j
Original file line number Diff line number Diff line change
Expand Up @@ -4352,11 +4352,6 @@ native SetPlayerColor takes player whichPlayer, playercolor color retu
/**
Sets the given alliance setting on `sourcePlayer` towards `otherPlayer`.

@param sourcePlayer is the target being changed
@param otherPlayer is the receiver of the effect (beneficiary)
@param whichAllianceSetting handle to alliance type
@param value `true` to share, `false` to stop sharing

Example, make it so red has vision of blue's units:

```{.jass}
Expand All @@ -4375,6 +4370,11 @@ colored in "green-ally" color when hovering over them. The minimap will still co
as enemies (for all ally color modes, see `GetAllyColorFilterState`). Enemy units will attack correctly.

@note See: `ShareEverythingWithTeam` which is a more limited version available from GUI.

@param sourcePlayer is the target being changed
@param otherPlayer is the receiver of the effect (beneficiary)
@param whichAllianceSetting handle to alliance type
@param value `true` to share, `false` to stop sharing
*/
native SetPlayerAlliance takes player sourcePlayer, player otherPlayer, alliancetype whichAllianceSetting, boolean value returns nothing
native SetPlayerTaxRate takes player sourcePlayer, player otherPlayer, playerstate whichResource, integer rate returns nothing
Expand Down

0 comments on commit dd193cb

Please sign in to comment.