function SetPlayerAllianceBJ takes player sourcePlayer, alliancetype whichAllianceSetting, boolean value, player otherPlayer returns nothing
// Prevent players from attempting to ally with themselves.
if (sourcePlayer == otherPlayer) then
return
endif
call SetPlayerAlliance(sourcePlayer, otherPlayer, whichAllianceSetting, value)
endfunction